Skip to content

Error in 'consumeTokenAndAdvanceScanner' during 'getCodeFixes' #45744

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: 4.4.2
VSCode version: 1.49.0
Command requested: getCodeFixes
Hitting sessions: 2440
Five line hash: a8b46be7329762e4f02c4625104c5e8a
Stack:

    at consumeTokenAndAdvanceScanner (tsserver.js:140254:30)
    at processChildNodes (tsserver.js:140224:33)
    at <anonymous> (tsserver.js:140116:21)
    at visitNodes (tsserver.js:29475:24)
    at forEachChild (tsserver.js:29615:24)
    at processNode (tsserver.js:140113:20)
    at processChildNode (tsserver.js:140184:21)
    at processChildNodes (tsserver.js:140231:48)
    at <anonymous> (tsserver.js:140116:21)
    at visitNodes (tsserver.js:29475:24)
    at forEachChild (tsserver.js:29622:24)
    at processNode (tsserver.js:140113:20)
    at formatSpanWorker (tsserver.js:139923:17)
    at <anonymous> (tsserver.js:139887:140)
    at getFormattingScanner (tsserver.js:138514:23)
    at formatNodeGivenIndentation (tsserver.js:139887:31)
    at getFormattedTextOfNode (tsserver.js:142190:45)
    at format (tsserver.js:142160:52)
    at computeNewText (tsserver.js:142163:23)
    at <anonymous> (tsserver.js:142127:39)
    at mapDefined (tsserver.js:616:30)
    at <anonymous> (tsserver.js:142125:42)
    at mapDefined (tsserver.js:616:30)
    at getTextChangesFromChanges (tsserver.js:142111:27)
    at ChangeTracker.getChanges (tsserver.js:142079:45)
    at ChangeTracker.with (tsserver.js:141533:32)
    at getCodeActions (tsserver.js:148240:64)
    at <anonymous> (tsserver.js:142718:77)
    at flatMap (tsserver.js:519:25)
    at getFixes (tsserver.js:142718:23)
    at <anonymous> (tsserver.js:157101:35)
    at flatMap (tsserver.js:519:25)
    at getCodeFixesAtPosition (tsserver.js:157099:23)
    at unknown (suppressed.js:144:20)
    at Session.getCodeFixes (tsserver.js:168560:64)
    at _a.<computed> (tsserver.js:167198:61)
    at <anonymous> (tsserver.js:168873:88)
    at Session.executeWithRequestId (tsserver.js:168864:28)
    at Session.executeCommand (tsserver.js:168873:33)
    at Session.onMessage (tsserver.js:168899:35)
    at <anonymous> (tsserver.js:171504:31)
    at unknown (suppressed.js:223:5)
    at unknown (suppressed.js:315:10)
    at unknown (suppressed.js:460:12)
    at unknown (suppressed.js:172:10)
    at unknown (suppressed.js:223:5)
    at unknown (suppressed.js:309:12)
    at unknown (suppressed.js:290:11)
    at unknown (suppressed.js:224:10)
    at unknown (suppressed.js:181:23)

Metadata

Metadata

Assignees

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