Skip to content

Error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isTypeAliasDeclaration'. in 'Object.cast' during 'getCodeFixes' #38059

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.8.3
VSCode version: 1.44.0
Command requested: getCodeFixes
Hitting sessions: 2055
Five line hash: 9fcefa6328ea3d6f93e6ccd28ffdab8c
Stack:

    at cast (tsserver.js:1371:25)
    at getInfo (tsserver.js:130356:107)
    at getCodeActions (tsserver.js:130337:28)
    at <anonymous> (tsserver.js:124540:77)
    at flatMap (tsserver.js:465:25)
    at getFixes (tsserver.js:124540:23)
    at <anonymous> (tsserver.js:135666:35)
    at flatMap (tsserver.js:465:25)
    at getCodeFixesAtPosition (tsserver.js:135664:23)
    at unknown (suppressed.js)
    at unknown (suppressed.js)
    at Session.getCodeFixes (tsserver.js:145753:64)
    at _a.<computed> (tsserver.js:144510:61)
    at <anonymous> (tsserver.js:146003:88)
    at Session.executeWithRequestId (tsserver.js:145994:28)
    at Session.executeCommand (tsserver.js:146003:33)
    at Session.onMessage (tsserver.js:146027:35)
    at <anonymous> (tsserver.js:147342: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

No one assigned

    Labels

    BugA bug in TypeScriptFixedA 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