Skip to content

Debug failure in LS when pasting following code snippet in .tsx file #4511

@DanielRosenwasser

Description

@DanielRosenwasser

Copy/paste the following code snippet into a new tsx file

interface I<T1, T2> {
    next: I</**/
}

Assertion failure:

Description:

getFormattingEditsForRange('C:\Users\drosen\AppData\Local\Temp\~vs62CC.tsx', 0, 42)

StackTrace:

Error: Debug Failure. False expression: 
   at assert (:1558:17)
   at processChildNode (:40970:25)
   at Anonymous function (:40921:21)
   at visitNode (:7169:13)
   at forEachChild (:7314:17)
   at processNode (:40920:17)
   at processChildNode (:40976:21)
   at Anonymous function (:40921:21)
   at visitNode (:7169:13)
   at forEachChild (:7314:17)
   at processNode (:40920:17)
   at processChildNode (:40976:21)
   at Anonymous function (:40921:21)
   at visitNode (:7169:13)
   at forEachChild (:7341:17)
   at processNode (:40920:17)
   at processChildNode (:40976:21)
   at processChildNodes (:41009:25)
   at Anonymous function (:40923:21)
   at visitNodeArray (:7174:13)
   at forEachChild (:7332:17)
   at processNode (:40920:17)
   at formatSpan (:40752:17)
   at formatSelection (:40559:13)
   at getFormattingEditsForRange (:47293:13)
   at Anonymous ......

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions