We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68cd382 commit 2c70030Copy full SHA for 2c70030
src/services/services.ts
@@ -1537,7 +1537,8 @@ namespace ts {
1537
}
1538
1539
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] | undefined {
1540
- Debug.assert(filesToSearch.some(f => normalizePath(f) === fileName));
+ const normalizedFileName = normalizePath(fileName);
1541
+ Debug.assert(filesToSearch.some(f => normalizePath(f) === normalizedFileName));
1542
synchronizeHostData();
1543
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
1544
const sourceFile = getValidSourceFile(fileName);
0 commit comments