Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changed

- Always enable verbose (`-v`) flag when a log directory is configured (`coder.proxyLogDir`).
- Automatically start a workspace if it is opened but not running.

### Added

Expand Down
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