File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 312312 " @semantic-release/github"
313313 ]
314314 },
315- "dependencies" : {},
316315 "optionalDependencies" : {
317316 "vscode-languageclient" : " ^7.0.0" ,
318317 "vscode-languageserver" : " ^7.0.0"
Original file line number Diff line number Diff line change @@ -2100,9 +2100,17 @@ function activate(context) {
21002100 ) ;
21012101
21022102 if ( ! _lspAvailable ) {
2103- // Standalone mode: still watch for file changes to trigger tree refreshes
2103+ // Standalone mode: watch for file changes to trigger keyword index refreshes
21042104 const workspaceWatcher = vscode . workspace . createFileSystemWatcher ( '**/*.{k,key,dyna}' ) ;
21052105 context . subscriptions . push ( workspaceWatcher ) ;
2106+ context . subscriptions . push ( workspaceWatcher . onDidChange ( ( ) => {
2107+ const uri = getActiveUri ( ) ;
2108+ if ( uri ) keywordIndexProvider . refreshFromUriOrDocument ( uri ) ;
2109+ } ) ) ;
2110+ context . subscriptions . push ( workspaceWatcher . onDidCreate ( ( ) => {
2111+ const uri = getActiveUri ( ) ;
2112+ if ( uri ) keywordIndexProvider . refreshFromUriOrDocument ( uri ) ;
2113+ } ) ) ;
21062114 }
21072115
21082116 const initialUri = getActiveUri ( ) ;
You can’t perform that action at this time.
0 commit comments