Skip to content

Commit 13d3700

Browse files
authored
Fix Attempted Edit Studio Action condition (#810)
1 parent e8d7f78 commit 13d3700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/studio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class StudioActions {
304304
if (actionToProcess && !afterUserAction) {
305305
const answer = await this.processUserAction(actionToProcess);
306306
// call AfterUserAction only if there is a valid answer
307-
if ((action.label = attemptedEditLabel) && answer !== "1") {
307+
if (action.label === attemptedEditLabel && answer !== "1") {
308308
suppressEditListenerMap.set(this.uri.toString(), true);
309309
await vscode.commands.executeCommand("workbench.action.files.revert", this.uri);
310310
}

0 commit comments

Comments
 (0)