From f9ccd68c5e282558df8c5036cef125a418a02dc6 Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Thu, 24 Mar 2022 23:16:58 +0800 Subject: [PATCH] feat: add setting to disable preview icons close #1101 --- extensions/vscode-vue-language-features/package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/vscode-vue-language-features/package.json b/extensions/vscode-vue-language-features/package.json index b70bb77d7..62a1bc03b 100644 --- a/extensions/vscode-vue-language-features/package.json +++ b/extensions/vscode-vue-language-features/package.json @@ -310,6 +310,11 @@ "default": true, "description": "Show split editor icon in title area of editor." }, + "volar.icon.preview": { + "type": "boolean", + "default": true, + "description": "Show Vite / Nuxt App preview icon." + }, "volar.codeLens.scriptSetupTools": { "type": "boolean", "default": false, @@ -603,12 +608,12 @@ }, { "command": "volar.action.vite", - "when": "editorLangId == vue && volar.foundViteDir", + "when": "editorLangId == vue && config.volar.icon.preview && volar.foundViteDir", "group": "navigation" }, { "command": "volar.action.nuxt", - "when": "editorLangId == vue && volar.foundNuxtDir", + "when": "editorLangId == vue && config.volar.icon.preview && volar.foundNuxtDir", "group": "navigation" }, {