@@ -52,6 +52,7 @@ export const REMOTE_TUNNEL_CONNECTION_STATE = new RawContextKey<CONTEXT_KEY_STAT
5252const SESSION_ID_STORAGE_KEY = 'remoteTunnelAccountPreference' ;
5353
5454const REMOTE_TUNNEL_USED_STORAGE_KEY = 'remoteTunnelServiceUsed' ;
55+ const REMOTE_TUNNEL_PROMPTED_PREVIEW_STORAGE_KEY = 'remoteTunnelServicePromptedPreview' ;
5556const REMOTE_TUNNEL_EXTENSION_RECOMMENDED_KEY = 'remoteTunnelExtensionRecommended' ;
5657
5758type ExistingSessionItem = { session : AuthenticationSession ; providerId : string ; label : string ; description : string } ;
@@ -487,6 +488,21 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
487488 const clipboardService = accessor . get ( IClipboardService ) ;
488489 const commandService = accessor . get ( ICommandService ) ;
489490 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.' ) ,
497+ primaryButton : localize ( 'enable' , 'Enable' ) ,
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+ }
490506
491507 const connectionInfo = await that . startTunnel ( false ) ;
492508 if ( connectionInfo ) {
@@ -548,7 +564,7 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
548564 constructor ( ) {
549565 super ( {
550566 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' ) ,
552568 category : REMOTE_TUNNEL_CATEGORY ,
553569 menu : [ {
554570 id : MenuId . AccountsContext ,
0 commit comments