From 4a59c4b52b6c7c5115309ffa779d352b14094720 Mon Sep 17 00:00:00 2001 From: Ivan Garcia Sainz-Aja Date: Sun, 17 Dec 2023 02:42:54 +0100 Subject: [PATCH] prevents preview on non asyncapi files closes #194 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 92062e2..3e038c5 100644 --- a/package.json +++ b/package.json @@ -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" } ], @@ -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" }