Skip to content

Commit

Permalink
Unexpected link highlighting in search editor (#187091)
Browse files Browse the repository at this point in the history
Fixes #180813
  • Loading branch information
andreamah authored Jul 5, 2023
1 parent 406d3d5 commit b540ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/search-result/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function activate(context: vscode.ExtensionContext) {
const lineResult = parseSearchResults(document, token)[position.line];
if (!lineResult) { return []; }
if (lineResult.type === 'file') {
return lineResult.allLocations;
return lineResult.allLocations.map(l => ({ ...l, originSelectionRange: lineResult.location.originSelectionRange }));
}

const location = lineResult.locations.find(l => l.originSelectionRange.contains(position));
Expand Down

0 comments on commit b540ba7

Please sign in to comment.