Skip to content

Commit

Permalink
fixed event handling interaction with stored problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Gopal committed Jun 20, 2024
1 parent c81e38a commit b19dfcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ext-src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ export function activate(context: vscode.ExtensionContext): void {
if (!e) {
return;
}
const { fileName } = Util.extractMetaDataFromDocument(e.document);
const { filePath, fileName } = Util.extractMetaDataFromDocument(e.document);

if (!filePath) {
return;
}

if (!fileName) {
return;
Expand All @@ -372,7 +376,7 @@ export function activate(context: vscode.ExtensionContext): void {
return;
}

const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, fileName);
const results: Problem[] | undefined = Util.getCurrentEditorProblems(analyzeValue, filePath);
if (!results) {
return;
}
Expand Down

0 comments on commit b19dfcf

Please sign in to comment.