Skip to content

Commit

Permalink
package.json: update context menu items (#133)
Browse files Browse the repository at this point in the history
Moved to be more consistent with the Kubernetes extension. It's a hugely
popular extension, so I think it's a good idea to follow their lead.

Open SSH => Terminal
Open remote connection => Attach VS Code

Changed order and put Terminal first, since it's likely to be more
common and is less disruptive than attaching VS Code.
  • Loading branch information
shayne committed Jul 30, 2023
1 parent 16f6c32 commit 335efe6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,22 @@
],
"view/item/context": [
{
"command": "tailscale.node.openRemoteCode",
"command": "tailscale.node.openTerminal",
"when": "view == tailscale-node-explorer-view && viewItem == tailscale-peer-item",
"group": "1_action@1"
"group": "inline"
},
{
"command": "tailscale.node.openRemoteCode",
"command": "tailscale.node.openTerminal",
"when": "view == tailscale-node-explorer-view && viewItem == tailscale-peer-item",
"group": "inline"
"group": "1_action@1"
},
{
"command": "tailscale.node.openTerminal",
"command": "tailscale.node.openRemoteCode",
"when": "view == tailscale-node-explorer-view && viewItem == tailscale-peer-item",
"group": "1_action@2"
},
{
"command": "tailscale.node.openTerminal",
"command": "tailscale.node.openRemoteCode",
"when": "view == tailscale-node-explorer-view && viewItem == tailscale-peer-item",
"group": "inline"
},
Expand Down Expand Up @@ -246,7 +246,7 @@
},
{
"command": "tailscale.node.openTerminal",
"title": "Open SSH",
"title": "Terminal",
"icon": "$(terminal)"
},
{
Expand All @@ -256,7 +256,7 @@
},
{
"command": "tailscale.node.openRemoteCode",
"title": "Open remote connection",
"title": "Attach VS Code",
"icon": "$(remote-explorer)"
},
{
Expand All @@ -277,7 +277,7 @@
},
{
"command": "tailscale.node.openRemoteCodeAtLocation",
"title": "Open remote connection"
"title": "Attach VS Code"
}
],
"viewsContainers": {
Expand Down

0 comments on commit 335efe6

Please sign in to comment.