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