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;