File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
gitpod-protocol/java/src/main/java/io/gitpod/gitpodprotocol/api/entities
ide/jetbrains/gateway-plugin/src/main/kotlin/io/gitpod/jetbrains/gateway Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ public class Workspace {
14
14
15
15
private String creationTime ;
16
16
17
+ private String type ;
18
+
17
19
public String getId () {
18
20
return id ;
19
21
}
@@ -45,4 +47,12 @@ public String getCreationTime() {
45
47
public void setCreationTime (String creationTime ) {
46
48
this .creationTime = creationTime ;
47
49
}
50
+
51
+ public WorkspaceType getType () {
52
+ return WorkspaceType .valueOf (type );
53
+ }
54
+
55
+ public void setType (WorkspaceType type ) {
56
+ this .type = type .toString ();
57
+ }
48
58
}
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ // Licensed under the GNU Affero General Public License (AGPL).
3
+ // See License-AGPL.txt in the project root for license information.
4
+
5
+ package io .gitpod .gitpodprotocol .api .entities ;
6
+
7
+ public enum WorkspaceType {
8
+ regular ,
9
+ prebuild
10
+ }
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import com.jetbrains.rd.util.lifetime.isAlive
28
28
import com.jetbrains.rd.util.lifetime.isNotAlive
29
29
import io.gitpod.gitpodprotocol.api.entities.GetWorkspacesOptions
30
30
import io.gitpod.gitpodprotocol.api.entities.WorkspaceInstance
31
+ import io.gitpod.gitpodprotocol.api.entities.WorkspaceType
31
32
import io.gitpod.jetbrains.auth.GitpodAuthService
32
33
import io.gitpod.jetbrains.icons.GitpodIcons
33
34
import kotlinx.coroutines.GlobalScope
@@ -247,7 +248,7 @@ class GitpodWorkspacesView(
247
248
}
248
249
}
249
250
for (info in sortedInfos) {
250
- if (info.latestInstance == null ) {
251
+ if (info.latestInstance == null || info.workspace.type != WorkspaceType .regular ) {
251
252
continue
252
253
}
253
254
indent {
@@ -341,7 +342,9 @@ class GitpodWorkspacesView(
341
342
thisLogger().error(" $gitpodHost : ${update.workspaceId} : failed to sync" , t)
342
343
continue
343
344
}
344
- workspacesMap[update.workspaceId] = info
345
+ if (info.workspace.type == WorkspaceType .regular) {
346
+ workspacesMap[update.workspaceId] = info
347
+ }
345
348
} else if (WorkspaceInstance .isUpToDate(info.latestInstance, update)) {
346
349
continue
347
350
} else {
You can’t perform that action at this time.
0 commit comments