Fix getOccurances not picking up hte right file because of casing

This commit is contained in:
Mohamed Hegazy 2016-05-17 17:15:31 -07:00
parent 02f0065c95
commit 08fed17053

View file

@ -4942,8 +4942,7 @@ namespace ts {
function getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] {
synchronizeHostData();
filesToSearch = map(filesToSearch, normalizeSlashes);
const sourceFilesToSearch = filter(program.getSourceFiles(), f => contains(filesToSearch, f.fileName));
const sourceFilesToSearch = map(filesToSearch, f => program.getSourceFile(f));
const sourceFile = getValidSourceFile(fileName);
const node = getTouchingWord(sourceFile, position);