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 @@ -1868,10 +1868,15 @@ fn global_search(cx: &mut Context) {
1868
1868
. hidden ( file_picker_config. hidden )
1869
1869
. parents ( file_picker_config. parents )
1870
1870
. ignore ( file_picker_config. ignore )
1871
+ . follow_links ( file_picker_config. follow_symlinks )
1871
1872
. git_ignore ( file_picker_config. git_ignore )
1872
1873
. git_global ( file_picker_config. git_global )
1873
1874
. git_exclude ( file_picker_config. git_exclude )
1874
1875
. max_depth ( file_picker_config. max_depth )
1876
+ // We always want to ignore the .git directory, otherwise if
1877
+ // `ignore` is turned off above, we end up with a lot of noise
1878
+ // in our picker.
1879
+ . filter_entry ( |entry| entry. file_name ( ) != ".git" )
1875
1880
. build_parallel ( )
1876
1881
. run ( || {
1877
1882
let mut searcher = searcher. clone ( ) ;
You can’t perform that action at this time.
0 commit comments