Skip to content

Commit 3a8d66b

Browse files
Only normalize for purposes of assert
1 parent 606492b commit 3a8d66b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/services.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,8 +1673,7 @@ namespace ts {
16731673
}
16741674

16751675
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] {
1676-
filesToSearch = map(filesToSearch, normalizePath);
1677-
Debug.assert(contains(filesToSearch, fileName));
1676+
Debug.assert(contains(map(filesToSearch, normalizePath), fileName));
16781677
synchronizeHostData();
16791678
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
16801679
const sourceFile = getValidSourceFile(fileName);

0 commit comments

Comments
 (0)