From 6cd09cd2641f4121ea17e7df9c4a82eb688e422d Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Wed, 30 Oct 2024 19:40:44 +0800 Subject: [PATCH] add chinese menu --- package.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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" }, {