From 922407bdb67450d80e6cc78b17aa5fd920b6bb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=8D=9A=E5=87=AF?= Date: Sat, 7 Dec 2024 17:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E6=9C=AA=E9=80=89=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=AD=97=E6=97=B6=EF=BC=8C=E9=9A=90=E8=97=8F=20[=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E8=BD=AC=E6=8D=A2]=20=E5=8F=B3=E9=94=AE=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-comment.jsonc | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package-comment.jsonc b/package-comment.jsonc index 6915ed4..edf8fb6 100644 --- a/package-comment.jsonc +++ b/package-comment.jsonc @@ -209,7 +209,9 @@ // 编辑器右键菜单 "editor/context": [ { - "when": "editorTextFocus", + // "when": "editorTextFocus", + // 2024.12.07 当未选中文字时,隐藏 [变量转换] 右键菜单 + "when": "editorTextFocus && _textSelectionLength >= 1", "command": "variable-conversion.convertCase", // "group": "1_modification@9" "group": "navigation@9" diff --git a/package.json b/package.json index 83e5560..c3117e9 100644 --- a/package.json +++ b/package.json @@ -143,7 +143,7 @@ "menus": { "editor/context": [ { - "when": "editorTextFocus", + "when": "editorTextFocus && _textSelectionLength >= 1", "command": "variable-conversion.convertCase", "group": "navigation@9" },