Double click to set port label

Fixes #117573
Fixes microsoft/vscode-remote-release#4624
This commit is contained in:
Alex Ross
2021-03-17 15:28:14 +01:00
parent 5b21b951ec
commit fbc577e6f0
@@ -696,7 +696,8 @@ export class TunnelPanel extends ViewPane {
}
},
getWidgetAriaLabel: () => nls.localize('tunnelView', "Tunnel View")
}
},
openOnSingleClick: false
}
) as WorkbenchTable<ITunnelItem>;
@@ -717,6 +718,12 @@ export class TunnelPanel extends ViewPane {
rerender();
}));
this._register(this.table.onDidOpen(e => {
if (e.element && (e.element.tunnelType === TunnelType.Forwarded)) {
this.commandService.executeCommand(LabelTunnelAction.ID);
}
}));
this._register(this.remoteExplorerService.onDidChangeEditable(e => {
this.isEditing = !!this.remoteExplorerService.getEditableData(e?.tunnel, e?.editId);
this._onDidChangeViewWelcomeState.fire();