@@ -385,8 +385,11 @@ class OnAutoForwardedAction extends Disposable {
385
385
} ) ;
386
386
}
387
387
388
- private basicMessage ( tunnel : RemoteTunnel ) {
389
- return nls . localize ( 'remote.tunnelsView.automaticForward' , "Your application running on port {0} is available. " ,
388
+ private async basicMessage ( tunnel : RemoteTunnel ) {
389
+ const properties = await this . remoteExplorerService . tunnelModel . getAttributes ( [ { host : tunnel . tunnelRemoteHost , port : tunnel . tunnelRemotePort } ] , false ) ;
390
+ const label = properties ?. get ( tunnel . tunnelRemotePort ) ?. label ;
391
+ return nls . localize ( 'remote.tunnelsView.automaticForward' , "Your application{0} running on port {1} is available. " ,
392
+ label ? ` (${ label } )` : '' ,
390
393
tunnel . tunnelRemotePort ) ;
391
394
}
392
395
@@ -402,7 +405,7 @@ class OnAutoForwardedAction extends Disposable {
402
405
}
403
406
404
407
this . lastNotification ?. close ( ) ;
405
- let message = this . basicMessage ( tunnel ) ;
408
+ let message = await this . basicMessage ( tunnel ) ;
406
409
const choices = [ this . openBrowserChoice ( tunnel ) ] ;
407
410
if ( ! isWeb || openPreviewEnabledContext . getValue ( this . contextKeyService ) ) {
408
411
choices . push ( this . openPreviewChoice ( tunnel ) ) ;
@@ -481,7 +484,7 @@ class OnAutoForwardedAction extends Disposable {
481
484
this . lastNotification ?. close ( ) ;
482
485
this . lastShownPort = newTunnel . tunnelRemotePort ;
483
486
this . lastNotification = this . notificationService . prompt ( Severity . Info ,
484
- this . basicMessage ( newTunnel ) + this . linkMessage ( ) ,
487
+ await this . basicMessage ( newTunnel ) + this . linkMessage ( ) ,
485
488
[ this . openBrowserChoice ( newTunnel ) , this . openPreviewChoice ( tunnel ) ] ,
486
489
{ neverShowAgain : { id : 'remote.tunnelsView.autoForwardNeverShow' , isSecondary : true } } ) ;
487
490
this . lastNotification . onDidClose ( ( ) => {
0 commit comments