File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ export class Remote {
146
146
// watch what's going on!
147
147
if (
148
148
this . storage . workspace . latest_build . status === "pending" ||
149
- this . storage . workspace . latest_build . status === "starting"
149
+ this . storage . workspace . latest_build . status === "starting" ||
150
+ this . storage . workspace . latest_build . status === "stopping"
150
151
) {
151
152
const writeEmitter = new vscode . EventEmitter < string > ( )
152
153
// We use a terminal instead of an output channel because it feels more
@@ -208,6 +209,23 @@ export class Remote {
208
209
if ( buildComplete ) {
209
210
buildComplete ( )
210
211
}
212
+
213
+ if ( this . storage . workspace . latest_build . status === "stopped" ) {
214
+ const result = await this . vscodeProposed . window . showInformationMessage (
215
+ `This workspace is stopped!` ,
216
+ {
217
+ modal : true ,
218
+ detail : `Click below to start and open ${ parts [ 0 ] } /${ parts [ 1 ] } .` ,
219
+ useCustom : true ,
220
+ } ,
221
+ "Start Workspace" ,
222
+ )
223
+ if ( ! result ) {
224
+ await this . closeRemote ( )
225
+ }
226
+ await this . reloadWindow ( )
227
+ return
228
+ }
211
229
}
212
230
213
231
const agents = this . storage . workspace . latest_build . resources . reduce ( ( acc , resource ) => {
You can’t perform that action at this time.
0 commit comments