We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9717427 + ce44d95 commit 7c8da42Copy full SHA for 7c8da42
1 file changed
src/services/shims.ts
@@ -752,7 +752,10 @@ namespace ts {
752
return this.forwardJSONCall(
753
"getDocumentHighlights('" + fileName + "', " + position + ")",
754
() => {
755
- return this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch));
+ var results = this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch));
756
+ // workaround for VS document higlighting issue - keep only items from the initial file
757
+ let normalizedName = normalizeSlashes(fileName).toLowerCase();
758
+ return filter(results, r => normalizeSlashes(r.fileName).toLowerCase() === normalizedName);
759
});
760
}
761
0 commit comments