Skip to content

Commit 2c70030

Browse files
committed
Compare normalized fileNames
1 parent 68cd382 commit 2c70030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/services.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,8 @@ namespace ts {
15371537
}
15381538

15391539
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] | undefined {
1540-
Debug.assert(filesToSearch.some(f => normalizePath(f) === fileName));
1540+
const normalizedFileName = normalizePath(fileName);
1541+
Debug.assert(filesToSearch.some(f => normalizePath(f) === normalizedFileName));
15411542
synchronizeHostData();
15421543
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
15431544
const sourceFile = getValidSourceFile(fileName);

0 commit comments

Comments
 (0)