Skip to content

Commit

Permalink
prevents preview on non asyncapi files
Browse files Browse the repository at this point in the history
closes #194
  • Loading branch information
ivangsa committed Dec 17, 2023
1 parent a175998 commit 4a59c4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
"menus": {
"editor/title": [
{
"when": "resourceLangId == json || resourceLangId == yaml && asyncapi.isAsyncAPI",
"when": "(resourceLangId == json || resourceLangId == yaml) && asyncapi.isAsyncAPI",
"command": "asyncapi.preview",
"group": "navigation"
},
{
"when": "resourceLangId == json || resourceLangId == yaml && asyncapi.isAsyncAPI",
"when": "(resourceLangId == json || resourceLangId == yaml) && asyncapi.isAsyncAPI",
"command": "asyncapi.preview"
}
],
Expand All @@ -76,7 +76,7 @@
],
"editor/context": [
{
"when": "resourceLangId == json || resourceLangId == yaml && asyncapi.isAsyncAPI",
"when": "(resourceLangId == json || resourceLangId == yaml) && asyncapi.isAsyncAPI",
"command": "asyncapi.paste",
"group": "9_cutcopypaste@5"
}
Expand Down

0 comments on commit 4a59c4b

Please sign in to comment.