add chinese menu

This commit is contained in:
bobo.yang 2024-10-30 19:40:44 +08:00
parent bf04eb8b75
commit 6cd09cd264

View File

@ -93,7 +93,11 @@
"commands": [ "commands": [
{ {
"command": "devchat.triggerCodeComplete", "command": "devchat.triggerCodeComplete",
"title": "Trigger Code Complete" "title": "Trigger Code Completion"
},
{
"command": "devchat.triggerCodeCompleteChinese",
"title": "触发代码补全"
}, },
{ {
"command": "devchat.applyDiffResult", "command": "devchat.applyDiffResult",
@ -234,6 +238,10 @@
"command": "devchat.triggerCodeComplete", "command": "devchat.triggerCodeComplete",
"when": "false" "when": "false"
}, },
{
"command": "devchat.triggerCodeCompleteChinese",
"when": "false"
},
{ {
"command": "devchat.askForCode_chinese", "command": "devchat.askForCode_chinese",
"when": "false" "when": "false"
@ -306,7 +314,12 @@
"editor/context": [ "editor/context": [
{ {
"command": "devchat.triggerCodeComplete", "command": "devchat.triggerCodeComplete",
"when": "editorTextFocus", "when": "!isChineseLocale && editorTextFocus",
"group": "navigation"
},
{
"command": "devchat.triggerCodeCompleteChinese",
"when": "isChineseLocale && editorTextFocus",
"group": "navigation" "group": "navigation"
}, },
{ {