From 676983cb3e274870eff0d86d3f0f70121b4fcb4f Mon Sep 17 00:00:00 2001 From: uniqueiniquity Date: Mon, 16 Apr 2018 13:26:21 -0700 Subject: [PATCH] Normalize paths to search for highlights --- src/server/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/session.ts b/src/server/session.ts index 1076d17e11f..ef2c9f92a83 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -793,7 +793,7 @@ namespace ts.server { private getDocumentHighlights(args: protocol.DocumentHighlightsRequestArgs, simplifiedResult: boolean): ReadonlyArray | ReadonlyArray { const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); - const documentHighlights = project.getLanguageService().getDocumentHighlights(file, position, args.filesToSearch); + const documentHighlights = project.getLanguageService().getDocumentHighlights(file, position, map(args.filesToSearch, toNormalizedPath)); if (!documentHighlights) { return emptyArray;