Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automatically start workspace if started and not running#583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionsCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionssrc/remote.ts
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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

[8]ページ先頭

©2009-2025 Movatter.jp