Skip to content

Commit

Permalink
File Explorer: Adds node context to file explorer item
Browse files Browse the repository at this point in the history
* Adds an inline context item for refresh
* Adds "change root directory"
* Adds "change SSH username"

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
  • Loading branch information
tylersmalley committed Aug 17, 2023
1 parent 6cfca37 commit 9122778
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@
},
{
"command": "tailscale.node.setUsername",
"when": "view == node-explorer-view && viewItem == peer-root",
"when": "(view == node-explorer-view && viewItem == peer-root) || (view == node-explorer-view && viewItem == peer-file-explorer-dir-root)",
"group": "2_settings@3"
},
{
"command": "tailscale.node.setRootDir",
"when": "(view == node-explorer-view && viewItem == peer-root) || (view == node-explorer-view && viewItem =~ /^peer-file-explorer-root/)",
"when": "(view == node-explorer-view && viewItem == peer-root) || (view == node-explorer-view && viewItem == peer-file-explorer-dir-root)",
"group": "2_settings@3"
},
{
Expand All @@ -182,8 +182,8 @@
},
{
"command": "tailscale.nodeExplorer.refresh",
"group": "inline",
"when": "view == node-explorer-view && viewItem =~ /^peer-file-explorer-root/"
"when": "(view == node-explorer-view && viewItem == peer-root) || (view == node-explorer-view && viewItem == peer-file-explorer-dir-root)",
"group": "inline"
},
{
"command": "tailscale.node.copyIPv6",
Expand Down

0 comments on commit 9122778

Please sign in to comment.