mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Only normalize for purposes of assert
This commit is contained in:
parent
606492b677
commit
3a8d66ba29
@ -1673,8 +1673,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] {
|
||||
filesToSearch = map(filesToSearch, normalizePath);
|
||||
Debug.assert(contains(filesToSearch, fileName));
|
||||
Debug.assert(contains(map(filesToSearch, normalizePath), fileName));
|
||||
synchronizeHostData();
|
||||
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
|
||||
const sourceFile = getValidSourceFile(fileName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user