Fix lint error and normalization issue

This commit is contained in:
uniqueiniquity 2018-04-16 16:20:12 -07:00
parent e9d6f788ca
commit 606492b677
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View 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)));