Skip to content

Missing Redo state after Connection.workspace.applyEdit #1668

@jmenzies12

Description

@jmenzies12

Hey there,

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).

Cheers
Jonathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions