mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fix lint error and normalization issue
This commit is contained in:
parent
e9d6f788ca
commit
606492b677
@ -3231,7 +3231,7 @@ Actual: ${stringify(fullActual)}`);
|
||||
|
||||
const availableNames: string[] = [];
|
||||
const result = ts.forEach(this.testData.files, file => {
|
||||
const fn = file.fileName;
|
||||
const fn = ts.normalizePath(file.fileName);
|
||||
if (fn) {
|
||||
if (fn === name) {
|
||||
return file;
|
||||
|
||||
@ -1673,7 +1673,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] {
|
||||
filesToSearch = ts.map(filesToSearch, ts.normalizePath);
|
||||
filesToSearch = map(filesToSearch, normalizePath);
|
||||
Debug.assert(contains(filesToSearch, fileName));
|
||||
synchronizeHostData();
|
||||
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user