Skip to content

Commit

Permalink
fix: document version of code action edit incorrect
Browse files Browse the repository at this point in the history
close #2025
  • Loading branch information
johnsoncodehk committed Oct 22, 2022
1 parent fc5db46 commit 8ffe598
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/typescript/src/services/rename.ts
Expand Up @@ -94,7 +94,10 @@ export function fileTextChangesToWorkspaceEdit(rootUri: URI, changes: readonly t
continue;

const docEdit = vscode.TextDocumentEdit.create(
{ uri: uri, version: doc.version },
{
uri,
version: null, // fix https://github.com/johnsoncodehk/volar/issues/2025
},
[],
);

Expand Down

0 comments on commit 8ffe598

Please sign in to comment.