From 8ffe59817c4b34bf8cf4fb458d9ba031854ac884 Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Sun, 23 Oct 2022 03:16:35 +0800 Subject: [PATCH] fix: document version of code action edit incorrect close #2025 --- plugins/typescript/src/services/rename.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/typescript/src/services/rename.ts b/plugins/typescript/src/services/rename.ts index 9133dd7fe..c4ffc4078 100644 --- a/plugins/typescript/src/services/rename.ts +++ b/plugins/typescript/src/services/rename.ts @@ -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 + }, [], );