File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,11 @@ export function activate(context: vscode.ExtensionContext): void {
350
350
if ( ! e ) {
351
351
return ;
352
352
}
353
- const { fileName } = Util . extractMetaDataFromDocument ( e . document ) ;
353
+ const { filePath, fileName } = Util . extractMetaDataFromDocument ( e . document ) ;
354
+
355
+ if ( ! filePath ) {
356
+ return ;
357
+ }
354
358
355
359
if ( ! fileName ) {
356
360
return ;
@@ -372,7 +376,7 @@ export function activate(context: vscode.ExtensionContext): void {
372
376
return ;
373
377
}
374
378
375
- const results : Problem [ ] | undefined = Util . getCurrentEditorProblems ( analyzeValue , fileName ) ;
379
+ const results : Problem [ ] | undefined = Util . getCurrentEditorProblems ( analyzeValue , filePath ) ;
376
380
if ( ! results ) {
377
381
return ;
378
382
}
You can’t perform that action at this time.
0 commit comments