Skip to content

TSServer slow when editing a webpacked file #24999

@mjbvz

Description

@mjbvz

From microsoft/vscode#51361

TypeScript Version: 3.0.0-dev.20180609

Search Terms:

Code
Open this file in VS Code: index.js.txt

Bug:
Intellisense stops working properly

Possible root cause is a getJSDocTags:

Err 463   [11:54:25.865] Exception on executing command delayed processing of request 15:

    Debug Failure. False expression.

    Error: Debug Failure. False expression.
    at getJSDocTags (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:11705:22)
    at getFirstJSDocTag (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:11712:24)
    at Object.getJSDocType (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:11689:19)
    at getContextualSignature (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:35577:32)
    at checkFunctionExpressionOrObjectLiteralMethod (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:38366:43)
    at checkExpressionWorker (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39292:28)
    at checkExpression (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39225:42)
    at checkBinaryLikeExpression (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:38839:29)
    at checkBinaryExpression (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:38831:20)
    at checkExpressionWorker (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39313:28)
    at checkExpression (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39225:42)
    at checkExpressionCached (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39111:38)
    at getTypeOfExpression (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39207:28)
    at checkDeclarationInitializer (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:39122:24)
    at getTypeForVariableLikeDeclaration (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:26638:28)
    at getWidenedTypeForVariableLikeDeclaration (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:26829:24)
    at getTypeOfVariableOrParameterOrProperty (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:26918:28)
    at getTypeOfSymbol (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:27103:24)
    at checkVariableLikeDeclaration (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:41092:41)
    at checkVariableDeclaration (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:41149:20)
    at checkSourceElement (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42841:28)
    at Object.forEach (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:1541:30)
    at checkVariableStatement (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:41158:16)
    at checkSourceElement (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42810:28)
    at Object.forEach (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:1541:30)
    at checkBlock (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:40853:20)
    at checkSourceElement (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42808:28)
    at checkFunctionExpressionOrObjectLiteralMethodDeferred (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:38409:21)
    at checkDeferredNodes (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42935:25)
    at checkSourceFileWorker (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42977:17)
    at checkSourceFile (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:42949:13)
    at Object.getSuggestionDiagnostics (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:23134:21)
    at /Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:65776:61
    at runWithCancellationToken (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:65732:24)
    at Object.getSuggestionDiagnostics (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:65775:20)
    at Object.computeSuggestionDiagnostics (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:80302:36)
    at Object.getSuggestionDiagnostics (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:90856:23)
    at IOSession.Session.suggestionCheck (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:96975:87)
    at /Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:97020:39
    at MultistepOperation.executeAction (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:96480:25)
    at /Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:96461:100
    at IOSession.Session.executeWithRequestId (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:98117:28)
    at Object.executeWithRequestId (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:96846:87)
    at Immediate.<anonymous> (/Users/matb/Downloads/interface-example/node_modules/typescript/lib/tsserver.js:96461:41)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions