Skip to content

Commit b19dfcf

Browse files
author
Avi Gopal
committed
fixed event handling interaction with stored problems
1 parent c81e38a commit b19dfcf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext-src/extension.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@ export function activate(context: vscode.ExtensionContext): void {
350350
if (!e) {
351351
return;
352352
}
353-
const { fileName } = Util.extractMetaDataFromDocument(e.document);
353+
const { filePath, fileName } = Util.extractMetaDataFromDocument(e.document);
354+
355+
if (!filePath) {
356+
return;
357+
}
354358

355359
if (!fileName) {
356360
return;
@@ -372,7 +376,7 @@ export function activate(context: vscode.ExtensionContext): void {
372376
return;
373377
}
374378

375-
const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, fileName);
379+
const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, filePath);
376380
if (!results) {
377381
return;
378382
}

0 commit comments

Comments
 (0)