File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ export function activate(context: vsc.ExtensionContext) {
190190
191191 if ( vsc . workspace . rootPath ) {
192192 let resourceJson = path . resolve ( vsc . workspace . rootPath , 'resource.json' ) ;
193+
193194 fs . readFile ( resourceJson , 'utf8' , function ( err : any , data : string ) {
194195 let glob : string ;
195196
@@ -205,15 +206,15 @@ export function activate(context: vsc.ExtensionContext) {
205206 }
206207 } ) ;
207208
208- let fsw = vsc . workspace . createFileSystemWatcher ( glob ) ;
209+ let watcher = vsc . workspace . createFileSystemWatcher ( glob ) ;
209210
210- fsw . onDidCreate ( parse ) ;
211- fsw . onDidChange ( parse ) ;
212- fsw . onDidDelete ( function ( uri : vsc . Uri ) {
211+ watcher . onDidCreate ( parse ) ;
212+ watcher . onDidChange ( parse ) ;
213+ watcher . onDidDelete ( function ( uri : vsc . Uri ) {
213214 delete map [ uri . fsPath ] ;
214215 } ) ;
215216
216- context . subscriptions . push ( fsw ) ;
217+ context . subscriptions . push ( watcher ) ;
217218 } ) ;
218219 }
219220
You can’t perform that action at this time.
0 commit comments