mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-22 08:09:42 +01:00
Double click to set port label
Fixes #117573 Fixes microsoft/vscode-remote-release#4624
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user