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
{{ message }}
Repository navigation
Missing Redo state after Connection.workspace.applyEdit #1668
We are developing a VSCode extension that edits a TextDocument via the LanguageServer using Connection.workspace.applyEdit. Recently we ran into an issue when editing unopened documents, the original TextDocumentEdit works fine, undo also works fine, however there is no redo state to be triggered after the edit has been undone. This also happens if the TextDocument is open but not the active editor and then vscode is closed and reopened.
There is a redo state if the TextDocument is currently open (even if it is not currently the active editor).
Activity
dbaeumer commentedon Aug 12, 2025
Johannes Rieken (@jrieken) is this something that should be supported in VS Code?
jmenzies12 commentedon Aug 20, 2025
Let me know if you need any more information from my side
dbaeumer commentedon Dec 9, 2025
Johannes Rieken (@jrieken) undo / redo should work with workspace edits.
jrieken commentedon Dec 9, 2025
Yeah, it uses the undo/redo service to push operations but I am unsure how the editor/model works when it gets closed/disposed after editing