Skip to content

TypeError: Cannot read property '0' of undefined in 'getTypeArgumentConstraint' during 'completionInfo' #32874

Closed
@typescript-bot

Description

@typescript-bot

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript version prefix: 3.5.3
VSCode version: 1.36.1
Command requested: completionInfo
Hitting sessions: 141
Five line hash: 2102806d5656b80c3ba01afefeac947e
Stack:

    at getTypeArgumentConstraint (tsserver.js:54599:73)
    at getTypeArgumentConstraint (tsserver.js:31614:32)
    at getStringLiteralCompletionEntries (tsserver.js:98912:104)
    at getStringLiteralCompletions (tsserver.js:98830:59)
    at getCompletionsAtPosition (tsserver.js:99530:67)
    at getCompletionsAtPosition (tsserver.js:122111:35)
    at Session.getCompletions (tsserver.js:131153:64)
    at _a.<computed> (tsserver.js:130103:61)
    at <anonymous> (tsserver.js:131671:88)
    at Session.executeWithRequestId (tsserver.js:131662:28)
    at Session.executeCommand (tsserver.js:131671:33)
    at Session.onMessage (tsserver.js:131693:35)
    at <anonymous> (tsserver.js:132984:27)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at unknown (suppressed.js)

Metadata

Metadata

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issueFixedA PR has been merged for this issueSource: TelemetryThe issue relates to the telemetry in editors

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions