You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VSCode, when someone performs an undo operation, it is passed on to other editors as a simple change, and when others perform further undos, it becomes an ‘undo what was undone’ operation.
Ideally, the undo operation should apply to the user's own operations and not those of others.
The text was updated successfully, but these errors were encountered:
Unfortunately, there's little we can do here - we use the vscode.workspace.applyEdits API, which is the only API that allows to perform edits on open text documents. All edits sent to the applyEdits method are automatically pushed to the undo-redo stack. There is no way to change this behavior.
Closing, as it's a technical limitation of the VS Code API.
So, could you use a when expression and define a custom Ctrl+Z command to implement a function that stacks when it receives other people's operations from the server and only undo its own operations that are not received from the server?
In VSCode, when someone performs an undo operation, it is passed on to other editors as a simple change, and when others perform further undos, it becomes an ‘undo what was undone’ operation.
Ideally, the undo operation should apply to the user's own operations and not those of others.
The text was updated successfully, but these errors were encountered: