Skip to content

Salsa formatting gives overlapping edits in this case #6666

Closed
@egamma

Description

@egamma

From @alexandrudima on January 27, 2016 10:57

Testing #2218

function a1() {
        try {
                        throw new Error('x');         } catch(x) {}
}

Right click > Format

Observe in the developer console. This happens when the passed in edits are invalid or overlap (touch):
image

Copied from original issue: microsoft/vscode#2435

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions