diff --git a/src/notebooks/controllers/remoteSwitcher.ts b/src/notebooks/controllers/remoteSwitcher.ts index 1ada3214f26..32636c68671 100644 --- a/src/notebooks/controllers/remoteSwitcher.ts +++ b/src/notebooks/controllers/remoteSwitcher.ts @@ -84,7 +84,7 @@ export class RemoteSwitcher implements IExtensionSyncActivationService { !uri || !uri.isValidated || uri.uri === Settings.JupyterServerLocalLaunch ? DataScience.jupyterNativeNotebookUriStatusLabelForLocal : DataScience.jupyterNativeNotebookUriStatusLabelForRemote; - const tooltipSuffix = uri?.uri === Settings.JupyterServerLocalLaunch ? '' : ` (${uri?.uri})`; + const tooltipSuffix = uri?.uri === Settings.JupyterServerLocalLaunch ? '' : ` (${uri?.displayName ?? uri?.uri})`; const tooltip = `${DataScience.specifyLocalOrRemoteJupyterServerForConnections}${tooltipSuffix}`; this.statusBarItem.text = `$(debug-disconnect) ${label}`; this.statusBarItem.tooltip = tooltip;