Skip to content

Commit 6cbca5d

Browse files
committed
Fix undefined in detected tunnels tooltip
Fixes microsoft#88245
1 parent 1642bab commit 6cbca5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/remote/browser/tunnelView.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ class TunnelTreeRenderer extends Disposable implements ITreeRenderer<ITunnelGrou
226226
}
227227

228228
private renderTunnel(node: ITunnelItem, templateData: ITunnelTemplateData) {
229-
templateData.iconLabel.setLabel(node.label, node.description, { title: node.label + ' - ' + node.description, extraClasses: ['tunnel-view-label'] });
229+
const label = node.label + (node.description ? (' - ' + node.description) : '');
230+
templateData.iconLabel.setLabel(node.label, node.description, { title: label, extraClasses: ['tunnel-view-label'] });
230231
templateData.actionBar.context = node;
231232
const contextKeyService = this._register(this.contextKeyService.createScoped());
232233
contextKeyService.createKey('view', this.viewId);

0 commit comments

Comments
 (0)