We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81e38a commit b19dfcfCopy full SHA for b19dfcf
ext-src/extension.ts
@@ -350,7 +350,11 @@ export function activate(context: vscode.ExtensionContext): void {
350
if (!e) {
351
return;
352
}
353
- const { fileName } = Util.extractMetaDataFromDocument(e.document);
+ const { filePath, fileName } = Util.extractMetaDataFromDocument(e.document);
354
+
355
+ if (!filePath) {
356
+ return;
357
+ }
358
359
if (!fileName) {
360
@@ -372,7 +376,7 @@ export function activate(context: vscode.ExtensionContext): void {
372
376
373
377
374
378
375
- const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, fileName);
379
+ const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, filePath);
380
if (!results) {
381
382
0 commit comments