@@ -40,6 +40,20 @@ interface ICredential {
40
40
password : string ;
41
41
}
42
42
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
+
43
57
function doCreateUri ( path : string , queryValues : Map < string , string > ) : URI {
44
58
let query : string | undefined = undefined ;
45
59
@@ -357,20 +371,7 @@ async function doStart(): Promise<IDisposable> {
357
371
358
372
const subscriptions = new DisposableStore ( ) ;
359
373
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 ( ) ;
374
375
if ( _state as any === 'terminated' ) {
375
376
return Disposable . None ;
376
377
}
@@ -825,6 +826,9 @@ async function doStart(): Promise<IDisposable> {
825
826
urlCallbackProvider : new PollingURLCallbackProvider ( ) ,
826
827
credentialsProvider,
827
828
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' : '' ) ,
828
832
linkProtectionTrustedDomains : [
829
833
...( product . linkProtectionTrustedDomains || [ ] ) ,
830
834
gitpodDomain
0 commit comments