File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,12 @@ class MdCompletionItemProvider implements CompletionItemProvider {
123123 const excludePatterns = new Set ( Always_Exclude ) ;
124124
125125 if ( configManager . get ( "completion.respectVscodeSearchExclude" , folder ) ) {
126- const vscodeSearchExclude = configManager . getByAbsolute < object > ( "search.exclude" , folder ) ! ;
126+ // `search.exclude` is currently not implemented in Theia IDE (which is mostly compatible with VSCode extensions)
127+ // fallback to `files.exclude` (in VSCode, `search.exclude` inherits from `files.exclude`) or an empty list
128+ // see https://github.com/eclipse-theia/theia/issues/13823
129+ const vscodeSearchExclude = configManager . getByAbsolute < object > ( "search.exclude" , folder )
130+ ?? configManager . getByAbsolute < object > ( "search.exclude" , folder )
131+ ?? { } ;
127132 for ( const [ pattern , enabled ] of Object . entries ( vscodeSearchExclude ) ) {
128133 if ( enabled ) {
129134 excludePatterns . add ( pattern ) ;
You can’t perform that action at this time.
0 commit comments