Skip to content

Commit a8d96b9

Browse files
committed
fix quickfixes for create/rename/delete file operations
1 parent ef2f5d0 commit a8d96b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
329329
}
330330
const codeAction = await client.protocol2CodeConverter.asCodeAction(result, token);
331331
const docEdits = codeAction.edit !== undefined? codeAction.edit.entries() : [];
332-
const newWorkspaceEdit = new WorkspaceEdit();
332+
const newWorkspaceEdit = codeAction.edit;
333333
for (const docEdit of docEdits) {
334334
const uri = docEdit[0];
335335
if (documentUris.includes(uri.toString())) {
@@ -346,9 +346,8 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
346346
editList.push(edit);
347347
}
348348
}
349+
newWorkspaceEdit.set(uri, null);
349350
newWorkspaceEdit.set(uri, editList);
350-
} else {
351-
newWorkspaceEdit.set(uri, docEdit[1]);
352351
}
353352
}
354353
codeAction.edit = newWorkspaceEdit;

0 commit comments

Comments
 (0)