We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1603563 commit 12f6e52Copy full SHA for 12f6e52
src/services/services.ts
@@ -1673,7 +1673,7 @@ namespace ts {
1673
}
1674
1675
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] {
1676
- Debug.assert(contains(map(filesToSearch, normalizePath), fileName));
+ Debug.assert(filesToSearch.some(f => normalizePath(f) === fileName));
1677
synchronizeHostData();
1678
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
1679
const sourceFile = getValidSourceFile(fileName);
0 commit comments