Skip to content

Commit 606492b

Browse files
Fix lint error and normalization issue
1 parent e9d6f78 commit 606492b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/harness/fourslash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3231,7 +3231,7 @@ Actual: ${stringify(fullActual)}`);
32313231

32323232
const availableNames: string[] = [];
32333233
const result = ts.forEach(this.testData.files, file => {
3234-
const fn = file.fileName;
3234+
const fn = ts.normalizePath(file.fileName);
32353235
if (fn) {
32363236
if (fn === name) {
32373237
return file;

src/services/services.ts

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

16751675
function getDocumentHighlights(fileName: string, position: number, filesToSearch: ReadonlyArray<string>): DocumentHighlights[] {
1676-
filesToSearch = ts.map(filesToSearch, ts.normalizePath);
1676+
filesToSearch = map(filesToSearch, normalizePath);
16771677
Debug.assert(contains(filesToSearch, fileName));
16781678
synchronizeHostData();
16791679
const sourceFilesToSearch = map(filesToSearch, f => Debug.assertDefined(program.getSourceFile(f)));

0 commit comments

Comments
 (0)