Skip to content

Undo does not work with code actions or rename operations spanning multiple files  #1948

Open
@leungbk

Description

@leungbk

With the TypeScript language server, if I move point to the function arguments here and execute the code action Convert parameters to destructured object, then attempting to M-x undo will undo the edit in that file, but will not undo the corresponding edits previously made in other files. Something similar happens when trying to undo lsp-rename operations.

I guess this should not be a surprise since undo is a buffer-local operation. But I wonder if it might be possible to implement some kind of alternate undo operation that can span multiple files affected by LS-induced changes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions