1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

当未选中文字时,隐藏 [变量转换] 右键菜单

This commit is contained in:
程序员小墨 2024-12-07 17:25:56 +08:00
parent 4c51b72892
commit 922407bdb6
2 changed files with 4 additions and 2 deletions

View File

@ -209,7 +209,9 @@
// //
"editor/context": [ "editor/context": [
{ {
"when": "editorTextFocus", // "when": "editorTextFocus",
// 2024.12.07 []
"when": "editorTextFocus && _textSelectionLength >= 1",
"command": "variable-conversion.convertCase", "command": "variable-conversion.convertCase",
// "group": "1_modification@9" // "group": "1_modification@9"
"group": "navigation@9" "group": "navigation@9"

View File

@ -143,7 +143,7 @@
"menus": { "menus": {
"editor/context": [ "editor/context": [
{ {
"when": "editorTextFocus", "when": "editorTextFocus && _textSelectionLength >= 1",
"command": "variable-conversion.convertCase", "command": "variable-conversion.convertCase",
"group": "navigation@9" "group": "navigation@9"
}, },