mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Ignore unknown files to search from in document highlights
This commit is contained in:
@@ -1565,7 +1565,7 @@ namespace ts {
|
||||
const normalizedFileName = normalizePath(fileName);
|
||||
Debug.assert(filesToSearch.some(f => normalizePath(f) === normalizedFileName));
|
||||
synchronizeHostData();
|
||||
const sourceFilesToSearch = filesToSearch.map(getValidSourceFile);
|
||||
const sourceFilesToSearch = mapDefined(filesToSearch, fileName => program.getSourceFile(fileName));
|
||||
const sourceFile = getValidSourceFile(fileName);
|
||||
return DocumentHighlights.getDocumentHighlights(program, cancellationToken, sourceFile, position, sourceFilesToSearch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user