We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f6bc6 commit a816079Copy full SHA for a816079
src/services/refactors/extractMethod.ts
@@ -1042,6 +1042,9 @@ namespace ts.refactor.extractMethod {
1042
}
1043
1044
function recordTypeParameterUsages(type: Type) {
1045
+ // PERF: This is potentially very expensive. `type` could be a library type with
1046
+ // a lot of properties, each of which the walker will visit. Unfortunately, the
1047
+ // solution isn't as trivial as filtering to user types because of (e.g.) Array.
1048
const symbolWalker = checker.getSymbolWalker();
1049
const {visitedTypes} = symbolWalker.walkType(type);
1050
0 commit comments