File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 5
5
### Changed
6
6
7
7
- Always enable verbose (` -v ` ) flag when a log directory is configured (` coder.proxyLogDir ` ).
8
+ - Automatically start a workspace if it is opened but not running.
8
9
9
10
### Added
10
11
Original file line number Diff line number Diff line change @@ -54,18 +54,6 @@ export class Remote {
54
54
private readonly mode : vscode . ExtensionMode ,
55
55
) { }
56
56
57
- private async confirmStart ( workspaceName : string ) : Promise < boolean > {
58
- const action = await this . vscodeProposed . window . showInformationMessage (
59
- `Unable to connect to the workspace ${ workspaceName } because it is not running. Start the workspace?` ,
60
- {
61
- useCustom : true ,
62
- modal : true ,
63
- } ,
64
- "Start" ,
65
- ) ;
66
- return action === "Start" ;
67
- }
68
-
69
57
/**
70
58
* Try to get the workspace running. Return undefined if the user canceled.
71
59
*/
@@ -132,9 +120,6 @@ export class Remote {
132
120
) ;
133
121
break ;
134
122
case "stopped" :
135
- if ( ! ( await this . confirmStart ( workspaceName ) ) ) {
136
- return undefined ;
137
- }
138
123
writeEmitter = initWriteEmitterAndTerminal ( ) ;
139
124
this . storage . output . info ( `Starting ${ workspaceName } ...` ) ;
140
125
workspace = await startWorkspaceIfStoppedOrFailed (
@@ -150,9 +135,6 @@ export class Remote {
150
135
// On a first attempt, we will try starting a failed workspace
151
136
// (for example canceling a start seems to cause this state).
152
137
if ( attempts === 1 ) {
153
- if ( ! ( await this . confirmStart ( workspaceName ) ) ) {
154
- return undefined ;
155
- }
156
138
writeEmitter = initWriteEmitterAndTerminal ( ) ;
157
139
this . storage . output . info ( `Starting ${ workspaceName } ...` ) ;
158
140
workspace = await startWorkspaceIfStoppedOrFailed (
You can’t perform that action at this time.
0 commit comments