Skip to content

Commit c1a2d52

Browse files
Ecmel ErcanEcmel Ercan
authored andcommitted
Fixes
1 parent 50dbe8b commit c1a2d52

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/extension.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)