Skip to content

Commit 1845cde

Browse files
committed
Don't issue undo command
This makes invalid assumptions about the source control extension and causes more harm than help.
1 parent 10aa9f8 commit 1845cde

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/commands/studio.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,20 +285,13 @@ class StudioActions {
285285
return actionToProcess;
286286
})
287287
.then((actionToProcess) => {
288-
const attemptedEditLabel = getOtherStudioActionLabel(OtherStudioAction.AttemptedEdit);
289288
if (afterUserAction && actionToProcess.errorText !== "") {
290-
if (action.label === attemptedEditLabel) {
291-
vscode.commands.executeCommand("undo");
292-
}
293289
outputChannel.appendLine(actionToProcess.errorText);
294290
outputChannel.show();
295291
}
296292
actionToProcess &&
297293
!afterUserAction &&
298294
this.processUserAction(actionToProcess).then((answer) => {
299-
if ((action.label = attemptedEditLabel) && answer !== "1") {
300-
vscode.commands.executeCommand("undo");
301-
}
302295
// call AfterUserAction only if there is a valid answer
303296
if (answer) {
304297
answer.msg || answer.msg === ""

0 commit comments

Comments
 (0)