diff --git a/src/vs/gitpod/browser/workbench/workbench.ts b/src/vs/gitpod/browser/workbench/workbench.ts index b8c406cd00ecd..9370eac0417cc 100644 --- a/src/vs/gitpod/browser/workbench/workbench.ts +++ b/src/vs/gitpod/browser/workbench/workbench.ts @@ -40,6 +40,20 @@ interface ICredential { password: string; } +interface WorkspaceInfoResponse { + workspaceId: string + instanceId: string + checkoutLocation: string + workspaceLocationFile?: string + workspaceLocationFolder?: string + userHome: string + gitpodHost: string + gitpodApi: { host: string } + workspaceContextUrl: string + workspaceClusterHost: string + ideAlias: string +} + function doCreateUri(path: string, queryValues: Map): URI { let query: string | undefined = undefined; @@ -357,20 +371,7 @@ async function doStart(): Promise { const subscriptions = new DisposableStore(); - const info: { - workspaceId: string - instanceId: string - checkoutLocation: string - workspaceLocationFile?: string - workspaceLocationFolder?: string - userHome: string - gitpodHost: string - gitpodApi: { - host: string - } - workspaceContextUrl: string - workspaceClusterHost: string - } = await infoResponse.json(); + const info: WorkspaceInfoResponse = await infoResponse.json(); if (_state as any === 'terminated') { return Disposable.None; } @@ -825,6 +826,9 @@ async function doStart(): Promise { urlCallbackProvider: new PollingURLCallbackProvider(), credentialsProvider, productConfiguration: { + nameShort: product.nameShort + (info.ideAlias === 'code-latest' ? ' - Insiders' : ''), + nameLong: product.nameLong + (info.ideAlias === 'code-latest' ? ' - Insiders' : ''), + version: product.version + (info.ideAlias === 'code-latest' ? '-insider' : ''), linkProtectionTrustedDomains: [ ...(product.linkProtectionTrustedDomains || []), gitpodDomain