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

Commit8a47fc1

Browse files
authored
fix: show when a workspace is stopping and prompt to start (#66)
1 parent5d2592b commit8a47fc1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

‎src/remote.ts‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export class Remote {
146146
// watch what's going on!
147147
if(
148148
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"
150151
){
151152
constwriteEmitter=newvscode.EventEmitter<string>()
152153
// We use a terminal instead of an output channel because it feels more
@@ -208,6 +209,23 @@ export class Remote {
208209
if(buildComplete){
209210
buildComplete()
210211
}
212+
213+
if(this.storage.workspace.latest_build.status==="stopped"){
214+
constresult=awaitthis.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+
awaitthis.closeRemote()
225+
}
226+
awaitthis.reloadWindow()
227+
return
228+
}
211229
}
212230

213231
constagents=this.storage.workspace.latest_build.resources.reduce((acc,resource)=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp