Skip to content

Trailing comma after deleting two adjacent nodes in a list #24201

Description

TypeScript Version: 2.9.0-dev.20180516

Code

/// <reference path='fourslash.ts' />////function f(t, u, v) { return t; }verify.codeFixAll({fixId: "unusedIdentifier_delete",fixAllDescription: "Delete all unused declarations",newFileContent:
`function f(t) { return t; }`,});

Expected behavior:

Test passes.

Actual behavior:

 Error: verifyFileContent failed:
Expected:
functionf(t){returnt;}
Actual:
functionf(t,){returnt;}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions