File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1872,10 +1872,15 @@ fn global_search(cx: &mut Context) {
1872
1872
. hidden ( file_picker_config. hidden )
1873
1873
. parents ( file_picker_config. parents )
1874
1874
. ignore ( file_picker_config. ignore )
1875
+ . follow_links ( file_picker_config. follow_symlinks )
1875
1876
. git_ignore ( file_picker_config. git_ignore )
1876
1877
. git_global ( file_picker_config. git_global )
1877
1878
. git_exclude ( file_picker_config. git_exclude )
1878
1879
. max_depth ( file_picker_config. max_depth )
1880
+ // We always want to ignore the .git directory, otherwise if
1881
+ // `ignore` is turned off above, we end up with a lot of noise
1882
+ // in our picker.
1883
+ . filter_entry ( |entry| entry. file_name ( ) != ".git" )
1879
1884
. build_parallel ( )
1880
1885
. run ( || {
1881
1886
let mut searcher = searcher. clone ( ) ;
You can’t perform that action at this time.
0 commit comments