Skip to content

Commit 50dbe8b

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

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS support in HTML documents",
5-
"version": "0.0.16",
5+
"version": "0.0.17",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",

src/extension.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,21 @@ export function activate(context: vsc.ExtensionContext) {
199199
glob = parseResource(JSON.parse(data));
200200
}
201201

202+
vsc.workspace.findFiles(glob, '').then(function (uris: vsc.Uri[]) {
203+
for (let i = 0; i < uris.length; i++) {
204+
parse(uris[i]);
205+
}
206+
});
207+
202208
let fsw = vsc.workspace.createFileSystemWatcher(glob);
209+
203210
fsw.onDidCreate(parse);
204211
fsw.onDidChange(parse);
205212
fsw.onDidDelete(function (uri: vsc.Uri) {
206213
delete map[uri.fsPath];
207214
});
208-
context.subscriptions.push(fsw);
209215

210-
vsc.workspace.findFiles(glob, '').then(function (uris: vsc.Uri[]) {
211-
for (let i = 0; i < uris.length; i++) {
212-
parse(uris[i]);
213-
}
214-
});
216+
context.subscriptions.push(fsw);
215217
});
216218
}
217219

0 commit comments

Comments
 (0)