Skip to content

Crash when formatting template strings #7686

Description

@saschanaz

TypeScript Version: 1.8.4

IDE: VS2015

`${""}`;
`
    ${""}
}`;//Put cursor here and tap enter to see crash

Expected behavior: No crash

Actual behavior:

Error executing script:

Description:
getFormattingEditsAfterKeystroke('...', 29, '
')

Message:


StackTrace:
Error: Debug Failure. False expression:
  at assert(:1676:17)
  at consumeTokenAndAdvanceScanner(:45618:21)
  at processChildNode (:45554:25)
  at processChildNodes (:45601:25)
  at Anonymous function (:45515:21)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions