Skip to content

Commit 6cd09cd

Browse files
committed
add chinese menu
1 parent bf04eb8 commit 6cd09cd

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@
9393
"commands": [
9494
{
9595
"command": "devchat.triggerCodeComplete",
96-
"title": "Trigger Code Complete"
96+
"title": "Trigger Code Completion"
97+
},
98+
{
99+
"command": "devchat.triggerCodeCompleteChinese",
100+
"title": "触发代码补全"
97101
},
98102
{
99103
"command": "devchat.applyDiffResult",
@@ -234,6 +238,10 @@
234238
"command": "devchat.triggerCodeComplete",
235239
"when": "false"
236240
},
241+
{
242+
"command": "devchat.triggerCodeCompleteChinese",
243+
"when": "false"
244+
},
237245
{
238246
"command": "devchat.askForCode_chinese",
239247
"when": "false"
@@ -306,7 +314,12 @@
306314
"editor/context": [
307315
{
308316
"command": "devchat.triggerCodeComplete",
309-
"when": "editorTextFocus",
317+
"when": "!isChineseLocale && editorTextFocus",
318+
"group": "navigation"
319+
},
320+
{
321+
"command": "devchat.triggerCodeCompleteChinese",
322+
"when": "isChineseLocale && editorTextFocus",
310323
"group": "navigation"
311324
},
312325
{

0 commit comments

Comments
 (0)