mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Filter FAR results to initial SourceFile
This commit is contained in:
parent
fee1df34ce
commit
cc386d25a4
@ -119,7 +119,7 @@ namespace ts.OrganizeImports {
|
||||
const entries = FindAllReferences.getReferenceEntriesForNode(identifier.pos, identifier, program, [sourceFile], {
|
||||
isCancellationRequested: () => false,
|
||||
throwIfCancellationRequested: () => { /*noop*/ },
|
||||
});
|
||||
}).filter(e => e.type === "node" && e.node.getSourceFile() === sourceFile);
|
||||
return entries.length > 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user