Skip to content

Commit

Permalink
Hide commands from palette
Browse files Browse the repository at this point in the history
Hides commands that require a knative resource to be selected
from the command palette. These commands throw an error if
used outside the Knative view.
  • Loading branch information
gorkem authored and joshuawilson committed May 26, 2020
1 parent e848ce1 commit 34a8970
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,20 @@
}
],
"menus": {
"commandPalette": [],
"commandPalette": [
{
"command": "service.explorer.delete",
"when": "false"
},
{
"command": "knative.service.open-in-browser",
"when": "false"
},
{
"command": "service.explorer.openFile",
"when": "false"
}
],
"view/item/context": [
{
"command": "knative.service.open-in-browser",
Expand Down

0 comments on commit 34a8970

Please sign in to comment.