Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ export class Remote {
private readonly mode: vscode.ExtensionMode,
) {}

private async confirmStart(workspaceName: string): Promise<boolean> {
const action = await this.vscodeProposed.window.showInformationMessage(
`Unable to connect to the workspace ${workspaceName} because it is not running. Start the workspace?`,
{
useCustom: true,
modal: true,
},
"Start",
);
return action === "Start";
}

/**
* Try to get the workspace running. Return undefined if the user canceled.
*/
Expand Down Expand Up @@ -132,9 +120,6 @@ export class Remote {
);
break;
case "stopped":
if (!(await this.confirmStart(workspaceName))) {
return undefined;
}
writeEmitter = initWriteEmitterAndTerminal();
this.storage.output.info(`Starting ${workspaceName}...`);
workspace = await startWorkspaceIfStoppedOrFailed(
Expand All @@ -150,9 +135,6 @@ export class Remote {
// On a first attempt, we will try starting a failed workspace
// (for example canceling a start seems to cause this state).
if (attempts === 1) {
if (!(await this.confirmStart(workspaceName))) {
return undefined;
}
writeEmitter = initWriteEmitterAndTerminal();
this.storage.output.info(`Starting ${workspaceName}...`);
workspace = await startWorkspaceIfStoppedOrFailed(
Expand Down