Skip to content

Commit aafc2b8

Browse files
committed
Update gitpod-protocol
1 parent 60f0704 commit aafc2b8

14 files changed

+28
-11
lines changed

components/gitpod-protocol/go/gitpod-service.go

+1
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,7 @@ type IDESettings struct {
20582058
UseDesktopIde bool `json:"useDesktopIde,omitempty"`
20592059
DefaultDesktopIde string `json:"defaultDesktopIde,omitempty"`
20602060
UseLatestVersion bool `json:"useLatestVersion"`
2061+
PreferToolbox bool `json:"preferToolbox"`
20612062
}
20622063

20632064
// EmailNotificationSettings is the EmailNotificationSettings message type

components/gitpod-protocol/src/protocol.ts

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export type IDESettings = {
171171
settingVersion?: string;
172172
defaultIde?: string;
173173
useLatestVersion?: boolean;
174+
preferToolbox?: boolean;
174175
// DEPRECATED: Use defaultIde after `settingVersion: 2.0`, no more specialify desktop or browser.
175176
useDesktopIde?: boolean;
176177
// DEPRECATED: Same with useDesktopIde.

components/gitpod-protocol/src/workspace-instance.ts

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export namespace WorkspaceInstanceRepoStatus {
269269
export interface ConfigurationIdeConfig {
270270
useLatest?: boolean;
271271
ide?: string;
272+
preferToolbox?: boolean;
272273
}
273274

274275
export interface IdeSetup {

components/public-api/typescript-common/fixtures/toUser_1.golden

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"editorSettings": {
2929
"name": "code",
30-
"version": "latest"
30+
"version": "latest",
31+
"preferToolbox": true
3132
},
3233
"dotfileRepo": "https://github.com/gitpod-samples/demo-dotfiles-with-gitpod",
3334
"workspaceClass": "XXXL",
@@ -58,7 +59,8 @@
5859
"workspaceClass": "XXXL",
5960
"editorSettings": {
6061
"name": "code",
61-
"version": "stable"
62+
"version": "stable",
63+
"preferToolbox": false
6264
},
6365
"region": ""
6466
}

components/public-api/typescript-common/fixtures/toUser_1.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"ideSettings": {
5151
"settingVersion": "2.0",
5252
"defaultIde": "code",
53-
"useLatestVersion": true
53+
"useLatestVersion": true,
54+
"preferToolbox": true
5455
},
5556
"workspaceAutostartOptions": [
5657
{

components/public-api/typescript-common/fixtures/toWorkspace2_1.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"logUrl": "",
5757
"editor": {
5858
"name": "code",
59-
"version": "latest"
59+
"version": "latest",
60+
"preferToolbox": false
6061
}
6162
},
6263
"status": {

components/public-api/typescript-common/fixtures/toWorkspace2_2.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"logUrl": "",
5252
"editor": {
5353
"name": "code",
54-
"version": "stable"
54+
"version": "stable",
55+
"preferToolbox": false
5556
}
5657
},
5758
"status": {

components/public-api/typescript-common/fixtures/toWorkspace2_3.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"logUrl": "",
5050
"editor": {
5151
"name": "code",
52-
"version": "stable"
52+
"version": "stable",
53+
"preferToolbox": false
5354
}
5455
},
5556
"status": {

components/public-api/typescript-common/fixtures/toWorkspace3_adminPage_1.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"logUrl": "",
6363
"editor": {
6464
"name": "code",
65-
"version": "stable"
65+
"version": "stable",
66+
"preferToolbox": false
6667
}
6768
},
6869
"status": {

components/public-api/typescript-common/fixtures/toWorkspaceSession_1.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"logUrl": "",
5252
"editor": {
5353
"name": "code",
54-
"version": "stable"
54+
"version": "stable",
55+
"preferToolbox": false
5556
}
5657
},
5758
"status": {

components/public-api/typescript-common/fixtures/toWorkspaceSession_2.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"logUrl": "",
5252
"editor": {
5353
"name": "code",
54-
"version": "stable"
54+
"version": "stable",
55+
"preferToolbox": false
5556
}
5657
},
5758
"status": {

components/public-api/typescript-common/fixtures/toWorkspaceSession_3.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"logUrl": "",
5252
"editor": {
5353
"name": "code",
54-
"version": "stable"
54+
"version": "stable",
55+
"preferToolbox": false
5556
}
5657
},
5758
"status": {

components/public-api/typescript-common/fixtures/toWorkspaceSession_4.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"logUrl": "",
5252
"editor": {
5353
"name": "code",
54-
"version": "stable"
54+
"version": "stable",
55+
"preferToolbox": false
5556
}
5657
},
5758
"status": {

components/public-api/typescript-common/src/public-api-converter.ts

+3
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ export class PublicAPIConverter {
449449
const result = new EditorReference();
450450
result.name = ideConfig.ide;
451451
result.version = ideConfig.useLatest ? "latest" : "stable";
452+
result.preferToolbox = ideConfig.preferToolbox ?? false
452453
return result;
453454
}
454455

@@ -1542,6 +1543,7 @@ export class PublicAPIConverter {
15421543
return new EditorReference({
15431544
name: from.defaultIde,
15441545
version: from.useLatestVersion ? "latest" : "stable",
1546+
preferToolbox: from.preferToolbox,
15451547
});
15461548
}
15471549

@@ -1552,6 +1554,7 @@ export class PublicAPIConverter {
15521554
return {
15531555
defaultIde: e.name,
15541556
useLatestVersion: e.version === "latest",
1557+
preferToolbox: e.preferToolbox,
15551558
};
15561559
}
15571560

0 commit comments

Comments
 (0)