microsoft/language-server-protocol

Add "labels" to ApplyWorkspaceEditParams

mickaelistria opened this issue · 3 comments

In order to easily use edits in place of commands here and there, and in order to provide nice labels in the undo/redo stack for operations provided by the LSP, it could be interesting to add an optional "label" field to Workspace and TextEdits.

Makes sense.

Instead of generically naming edits we should add a name to ApplyWorkspaceEditParams. This can then be used to construct a name for the Undo.

Actually this was easy to address. So I added an optional name to the ApplyWorkspaceEditParams.