Skip to content

Commit 5d36ad3

Browse files
committed
Signal insiders version in product name
1 parent 09da4db commit 5d36ad3

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/vs/gitpod/browser/workbench/workbench.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ interface ICredential {
4040
password: string;
4141
}
4242

43+
interface WorkspaceInfoResponse {
44+
workspaceId: string
45+
instanceId: string
46+
checkoutLocation: string
47+
workspaceLocationFile?: string
48+
workspaceLocationFolder?: string
49+
userHome: string
50+
gitpodHost: string
51+
gitpodApi: { host: string }
52+
workspaceContextUrl: string
53+
workspaceClusterHost: string
54+
ideAlias: string
55+
}
56+
4357
function doCreateUri(path: string, queryValues: Map<string, string>): URI {
4458
let query: string | undefined = undefined;
4559

@@ -357,20 +371,7 @@ async function doStart(): Promise<IDisposable> {
357371

358372
const subscriptions = new DisposableStore();
359373

360-
const info: {
361-
workspaceId: string
362-
instanceId: string
363-
checkoutLocation: string
364-
workspaceLocationFile?: string
365-
workspaceLocationFolder?: string
366-
userHome: string
367-
gitpodHost: string
368-
gitpodApi: {
369-
host: string
370-
}
371-
workspaceContextUrl: string
372-
workspaceClusterHost: string
373-
} = await infoResponse.json();
374+
const info: WorkspaceInfoResponse = await infoResponse.json();
374375
if (_state as any === 'terminated') {
375376
return Disposable.None;
376377
}
@@ -825,6 +826,9 @@ async function doStart(): Promise<IDisposable> {
825826
urlCallbackProvider: new PollingURLCallbackProvider(),
826827
credentialsProvider,
827828
productConfiguration: {
829+
nameShort: product.nameShort + (info.ideAlias === 'code-latest' ? ' - Insiders' : ''),
830+
nameLong: product.nameLong + (info.ideAlias === 'code-latest' ? ' - Insiders' : ''),
831+
version: product.version + (info.ideAlias === 'code-latest' ? '-insider' : ''),
828832
linkProtectionTrustedDomains: [
829833
...(product.linkProtectionTrustedDomains || []),
830834
gitpodDomain

0 commit comments

Comments
 (0)