mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Merge pull request #8210 from Microsoft/Fix8162
Fix #8162 and #8173: Add root symbols to search in find all referecnes
This commit is contained in:
commit
d0cfe43d88
6 files changed
+103
-7
No files matched your search
@@ -6286,7 +6286,7 @@ namespace ts {
|
||||
if (type) {
|
||||
const propertySymbol = typeChecker.getPropertyOfType(type, propertyName);
|
||||
if (propertySymbol) {
|
||||
result.push(propertySymbol);
|
||||
result.push(...typeChecker.getRootSymbols(propertySymbol));
|
||||
}
|
||||
|
||||
// Visit the typeReference as well to see if it directly or indirectly use that property
|
||||
|
||||
Reference in new issue
Block a user