@@ -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+
4357function 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