Skip to content

Commit 93019e5

Browse files
authored
Add undo to ConnectiosnListStep (#4455)
1 parent abe092f commit 93019e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commands/addMIConnections/ConnectionsListStep.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export class ConnectionsListStep extends AzureWizardPromptStep<AddMIConnectionsC
4141
return !context.connections || context.connections.length === 0;
4242
}
4343

44+
public undo(context: AddMIConnectionsContext): void | Promise<void> {
45+
context.connections = [];
46+
}
47+
4448
private async getPicks(context: AddMIConnectionsContext): Promise<IAzureQuickPickItem<Connection>[]> {
4549
return context.functionapp ? this.getRemoteQuickPicks(context) : this.getLocalQuickPicks(context)
4650
}

0 commit comments

Comments
 (0)