Skip to content

Commit

Permalink
fix: prevents preview on non asyncapi files (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangsa authored Dec 19, 2023
1 parent a175998 commit 5621737
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 5621737

Please sign in to comment.