Skip to content

JSON: Sort document does not work #178229

@hediet

Description

@hediet

This error is logged:

 ERR Request json/sort failed with message: Range#create called with invalid arguments[[object Object], [object Object], undefined, undefined]: Error: Request json/sort failed with message: Range#create called with invalid arguments[[object Object], [object Object], undefined, undefined]
    at m.h (c:\Users\hdieterichs\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:98:126151)

This is the JSON document:

{
    "z": true,
    "a": {
        "a": "value",
    }
}

It seems to be caused by the trailing comma after "value"

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugjsonJSON support issuesjson-sorting

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions