Fix getOccurances not picking up hte right file because of casing
This commit is contained in:
parent
02f0065c95
commit
08fed17053
|
@ -4942,8 +4942,7 @@ namespace ts {
|
||||||
function getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] {
|
function getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] {
|
||||||
synchronizeHostData();
|
synchronizeHostData();
|
||||||
|
|
||||||
filesToSearch = map(filesToSearch, normalizeSlashes);
|
const sourceFilesToSearch = map(filesToSearch, f => program.getSourceFile(f));
|
||||||
const sourceFilesToSearch = filter(program.getSourceFiles(), f => contains(filesToSearch, f.fileName));
|
|
||||||
const sourceFile = getValidSourceFile(fileName);
|
const sourceFile = getValidSourceFile(fileName);
|
||||||
|
|
||||||
const node = getTouchingWord(sourceFile, position);
|
const node = getTouchingWord(sourceFile, position);
|
||||||
|
|
Loading…
Reference in a new issue