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 9560895 commit dbfdb96Copy full SHA for dbfdb96
src/services/services.ts
@@ -6050,6 +6050,10 @@ module ts {
6050
if (node && textSpanIntersectsWith(span, node.getFullStart(), node.getFullWidth())) {
6051
if (node.kind === SyntaxKind.Identifier && !nodeIsMissing(node)) {
6052
let identifier = <Identifier>node;
6053
+
6054
+ // Only bother calling into the typechecker if this is an identifier that
6055
+ // could possibly resolve to a type name. This makes classification run
6056
+ // in a third of the time it would normally take.
6057
if (typeNames[identifier.text]) {
6058
let symbol = typeChecker.getSymbolAtLocation(node);
6059
if (symbol) {
0 commit comments