@@ -52,6 +52,7 @@ export const REMOTE_TUNNEL_CONNECTION_STATE = new RawContextKey<CONTEXT_KEY_STAT
52
52
const SESSION_ID_STORAGE_KEY = 'remoteTunnelAccountPreference' ;
53
53
54
54
const REMOTE_TUNNEL_USED_STORAGE_KEY = 'remoteTunnelServiceUsed' ;
55
+ const REMOTE_TUNNEL_PROMPTED_PREVIEW_STORAGE_KEY = 'remoteTunnelServicePromptedPreview' ;
55
56
const REMOTE_TUNNEL_EXTENSION_RECOMMENDED_KEY = 'remoteTunnelExtensionRecommended' ;
56
57
57
58
type ExistingSessionItem = { session : AuthenticationSession ; providerId : string ; label : string ; description : string } ;
@@ -487,6 +488,21 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
487
488
const clipboardService = accessor . get ( IClipboardService ) ;
488
489
const commandService = accessor . get ( ICommandService ) ;
489
490
const storageService = accessor . get ( IStorageService ) ;
491
+ const dialogService = accessor . get ( IDialogService ) ;
492
+
493
+ const didNotifyPreview = storageService . getBoolean ( REMOTE_TUNNEL_PROMPTED_PREVIEW_STORAGE_KEY , StorageScope . APPLICATION , false ) ;
494
+ if ( ! didNotifyPreview ) {
495
+ const result = await dialogService . confirm ( {
496
+ message : localize ( 'tunnel.preview' , 'Remote Tunnels is currently in preview. Please report any problems using the "Help: Report Issue" command, or on Github.' ) ,
497
+ primaryButton : localize ( 'ok' , 'OK' ) ,
498
+ secondaryButton : localize ( 'cancel' , 'Cancel' ) ,
499
+ } ) ;
500
+ if ( ! result . confirmed ) {
501
+ return ;
502
+ }
503
+
504
+ storageService . store ( REMOTE_TUNNEL_PROMPTED_PREVIEW_STORAGE_KEY , true , StorageScope . APPLICATION , StorageTarget . USER ) ;
505
+ }
490
506
491
507
const connectionInfo = await that . startTunnel ( false ) ;
492
508
if ( connectionInfo ) {
@@ -548,7 +564,7 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
548
564
constructor ( ) {
549
565
super ( {
550
566
id : RemoteTunnelCommandIds . connecting ,
551
- title : localize ( 'remoteTunnel.actions.manage.connecting' , 'Remote Tunnel Access in Connecting' ) ,
567
+ title : localize ( 'remoteTunnel.actions.manage.connecting' , 'Remote Tunnel Access is Connecting' ) ,
552
568
category : REMOTE_TUNNEL_CATEGORY ,
553
569
menu : [ {
554
570
id : MenuId . AccountsContext ,
0 commit comments