Skip to content

Commit

Permalink
Copy tunnel information for context (#146186)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored Mar 28, 2022
1 parent e76b009 commit 0aad3c8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/vs/workbench/contrib/remote/browser/tunnelView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,22 @@ class ActionBarRenderer extends Disposable implements ITableRenderer<ActionBarCe
: element.tooltip,
extraClasses: element.menuId === MenuId.TunnelLocalAddressInline ? ['ports-view-actionbar-cell-localaddress'] : undefined
});
templateData.actionBar.context = element.tunnel;
const tunnelContext: ITunnelItem = {
tunnelType: element.tunnel.tunnelType,
remoteHost: element.tunnel.remoteHost,
remotePort: element.tunnel.remotePort,
localAddress: element.tunnel.localAddress,
protocol: element.tunnel.protocol,
localUri: element.tunnel.localUri,
localPort: element.tunnel.localPort,
name: element.tunnel.name,
closeable: element.tunnel.closeable,
source: element.tunnel.source,
privacy: element.tunnel.privacy,
processDescription: element.tunnel.processDescription,
label: element.tunnel.label
};
templateData.actionBar.context = tunnelContext;
templateData.container.style.paddingLeft = '10px';
const context: [string, any][] =
[
Expand Down

0 comments on commit 0aad3c8

Please sign in to comment.