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" },