Skip to content

Commit 676983c

Browse files
Normalize paths to search for highlights
1 parent cae4640 commit 676983c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ namespace ts.server {
793793
private getDocumentHighlights(args: protocol.DocumentHighlightsRequestArgs, simplifiedResult: boolean): ReadonlyArray<protocol.DocumentHighlightsItem> | ReadonlyArray<DocumentHighlights> {
794794
const { file, project } = this.getFileAndProject(args);
795795
const position = this.getPositionInFile(args, file);
796-
const documentHighlights = project.getLanguageService().getDocumentHighlights(file, position, args.filesToSearch);
796+
const documentHighlights = project.getLanguageService().getDocumentHighlights(file, position, map(args.filesToSearch, toNormalizedPath));
797797

798798
if (!documentHighlights) {
799799
return emptyArray;

0 commit comments

Comments
 (0)