Skip to content

Commit

Permalink
Now really fix the problem of Sarif Explorer creating entries with lo…
Browse files Browse the repository at this point in the history
…cations in different workspace roots
  • Loading branch information
jvdprng committed Oct 2, 2024
1 parent 26a7d6c commit d0098e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codeMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
// We do not remove locations; we only add the ones that are missing
for (const loc of entry.locations) {
const idx = e.locations.findIndex((l) => l.path === loc.path && l.startLine === loc.startLine && l.endLine === loc.endLine);
if (idx === -1) {
if (idx === -1 && e.locations[0]?.rootPath === loc.rootPath) {
e.locations.push(loc);
}
}
Expand Down

0 comments on commit d0098e0

Please sign in to comment.