File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 5454 " '"
5555 ],
5656 "scope" : " window"
57+ },
58+ "css.ignoredFolders" : {
59+ "type" : " array" ,
60+ "description" : " A list of folders to exclude from stylesheet parsing." ,
61+ "default" : [
62+ " **/node_modules/**"
63+ ],
64+ "scope" : " window"
5765 }
5866 }
5967 }
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class ClassCompletionItemProvider implements CompletionItemProvider {
197197}
198198
199199export function activate ( context : ExtensionContext ) {
200-
200+
201201 const config = workspace . getConfiguration ( "css" ) ;
202202 const enabledLanguages = config . get < string [ ] > ( "enabledLanguages" , [ "html" ] ) ;
203203 const triggerCharacters = config . get < string [ ] > ( "triggerCharacters" , [ "\"" , "'" ] ) ;
@@ -213,10 +213,9 @@ export function activate(context: ExtensionContext) {
213213 const folders = workspace . workspaceFolders ?. map ( folder => `${ folder . uri . fsPath } /${ glob } ` ) ;
214214
215215 if ( folders ) {
216- const watcher = watch ( folders , {
217- ignoreInitial : false ,
218- ignored : [ "**/node_modules/**" , "**/test*/**" ]
219- } )
216+ const ignored = config . get < string [ ] > ( "ignoredFolders" , [ "**/node_modules/**" ] ) ;
217+
218+ const watcher = watch ( folders , { ignored, ignoreInitial : false } )
220219 . on ( "add" , key => provider . files . add ( key ) )
221220 . on ( "unlink" , key => provider . files . delete ( key ) )
222221 . on ( "change" , key => provider . cache . delete ( key ) ) ;
You can’t perform that action at this time.
0 commit comments