Skip to content

Commit b540ba7

Browse files
authored
Unexpected link highlighting in search editor (microsoft#187091)
Fixes microsoft#180813
1 parent 406d3d5 commit b540ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/search-result/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function activate(context: vscode.ExtensionContext) {
7878
const lineResult = parseSearchResults(document, token)[position.line];
7979
if (!lineResult) { return []; }
8080
if (lineResult.type === 'file') {
81-
return lineResult.allLocations;
81+
return lineResult.allLocations.map(l => ({ ...l, originSelectionRange: lineResult.location.originSelectionRange }));
8282
}
8383

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

0 commit comments

Comments
 (0)