Skip to content

Commit

Permalink
use displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
r3m0t authored Mar 9, 2023
1 parent 15797af commit 414bbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notebooks/controllers/remoteSwitcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 414bbcb

Please sign in to comment.