Skip to content

Indentation failure with unclosed JSX element #6281

Open
@DanielRosenwasser

Description

@DanielRosenwasser
var x =
    <div>
        <input type="text" name="name">
    </div>

namespace foo {
/**/

Press enter at /**/.

Description:

getIndentationAtPosition('C:\Users\drosen\AppData\Local\Temp\~vs8E0D.tsx', 94)

StackTrace:

Error: Debug Failure. False expression: 
   at assert (:1645:17)
   at find (:41847:13)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at find (:41843:25)
   at findPrecedingToken (:41808:9)
   at getIndentation (:44508:17)
   at getIndentationAtPosition (:50435:13)
   at Anonymous function (:52193:17)
   at simpleForwardCall (:51951:9)
   at forwardJSONCall (:51967:13)
   at forwardJSONCall (:52013:13)
   at getIndentationAtPosition (:52191:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitter

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions