Skip to content

Commit b075ff1

Browse files
committed
fix: fix all action was applying too early on *Source Action* vscode command
1 parent f0412c1 commit b075ff1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/specialCommands.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,13 @@ export default () => {
372372
if (!fixAllEdits || token.isCancellationRequested) return
373373
const edit = new vscode.WorkspaceEdit()
374374
edit.set(document.uri, tsTextChangesToVscodeTextEdits(document, fixAllEdits))
375-
await vscode.workspace.applyEdit(edit)
376-
return
375+
return [
376+
{
377+
title: '[essentials] Fix all TypeScript',
378+
kind: vscode.CodeActionKind.SourceFixAll,
379+
edit,
380+
},
381+
]
377382
}
378383

379384
if (context.triggerKind !== vscode.CodeActionTriggerKind.Invoke) return

0 commit comments

Comments
 (0)