Skip to content

Error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isTypeParameterDeclaration'. in 'Object.cast' during 'getApplicableRefactors' #32860

@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.37.0
Command requested: getApplicableRefactors
Hitting sessions: 482
Five line hash: b8eef1a30cda4047dd8f5e3f66405455
Stack:

    at cast (tsserver.js:1436:25)
    at visitor (tsserver.js:119460:50)
    at collectTypeParameters (tsserver.js:119454:20)
    at getRangeToExtract (tsserver.js:119441:34)
    at getAvailableActions (tsserver.js:119404:28)
    at <anonymous> (tsserver.js:112896:128)
    at getIterator (tsserver.js:627:23)
    at next (tsserver.js:622:35)
    at arrayFrom (tsserver.js:1255:32)
    at getApplicableRefactors (tsserver.js:112895:23)
    at getApplicableRefactors (tsserver.js:122658:32)
    at Session.getApplicableRefactors (tsserver.js:131427:53)
    at _a.<computed> (tsserver.js:130245: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

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened 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