Skip to content

Commit

Permalink
fix: remove invalid doc edit version
Browse files Browse the repository at this point in the history
close #1490
  • Loading branch information
johnsoncodehk committed Jul 11, 2022
1 parent d4b32f7 commit 6791d8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vue-language-service/src/languageFeatures/rename.ts
Expand Up @@ -251,7 +251,11 @@ export function embeddedEditToSourceEdit(
const sourceMap = vueDocuments.sourceMapFromEmbeddedDocumentUri(tsDocEdit.textDocument.uri);
if (sourceMap) {
vueDocEdit = vscode.TextDocumentEdit.create(
{ uri: sourceMap.sourceDocument.uri, version: sourceMap.sourceDocument.version },
{
uri: sourceMap.sourceDocument.uri,
// version: sourceMap.sourceDocument.version,
version: null, // fix https://github.com/johnsoncodehk/volar/issues/1490
},
[],
);
for (const tsEdit of tsDocEdit.edits) {
Expand Down

0 comments on commit 6791d8b

Please sign in to comment.