@@ -73,7 +73,7 @@ async function cache(): Promise<void> {
7373 } , { concurrency : 30 } ) ;
7474 } catch ( err ) {
7575 notifier . notify ( "alert" , "Failed to cache the CSS classes in the workspace (click for another attempt)" ) ;
76- throw new VError ( err , "Failed to parse the documents" ) ;
76+ throw new VError ( err as any , "Failed to parse the documents" ) ;
7777 }
7878
7979 uniqueDefinitions = _ . uniqBy ( definitions , ( def ) => def . className ) ;
@@ -88,7 +88,7 @@ async function cache(): Promise<void> {
8888 notifier . notify ( "zap" , "CSS classes cached (click to cache again)" ) ;
8989 } catch ( err ) {
9090 notifier . notify ( "alert" , "Failed to cache the CSS classes in the workspace (click for another attempt)" ) ;
91- throw new VError ( err ,
91+ throw new VError ( err as any ,
9292 "Failed to cache the class definitions during the iterations over the documents that were found" ) ;
9393 }
9494}
@@ -217,7 +217,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
217217 registerJavaScriptProviders ( javaScriptDisposables ) ;
218218 }
219219 } catch ( err ) {
220- const newErr = new VError ( err , "Failed to automatically reload the extension after the configuration change" ) ;
220+ const newErr = new VError ( err as any , "Failed to automatically reload the extension after the configuration change" ) ;
221221 console . error ( newErr ) ;
222222 window . showErrorMessage ( newErr . message ) ;
223223 }
@@ -233,7 +233,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
233233 try {
234234 await cache ( ) ;
235235 } catch ( err ) {
236- const newErr = new VError ( err , "Failed to cache the CSS classes in the workspace" ) ;
236+ const newErr = new VError ( err as any , "Failed to cache the CSS classes in the workspace" ) ;
237237 console . error ( newErr ) ;
238238 window . showErrorMessage ( newErr . message ) ;
239239 } finally {
@@ -253,7 +253,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
253253 try {
254254 await cache ( ) ;
255255 } catch ( err ) {
256- const newErr = new VError ( err , "Failed to cache the CSS classes in the workspace for the first time" ) ;
256+ const newErr = new VError ( err as any , "Failed to cache the CSS classes in the workspace for the first time" ) ;
257257 console . error ( newErr ) ;
258258 window . showErrorMessage ( newErr . message ) ;
259259 } finally {
0 commit comments