File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments