Browse Source

fix: show keyboard shortcut in editor context menu

Change editor context menu items to use copySmart command (same as
keybinding), so VS Code displays the shortcut label next to menu items.
Developer 1 month ago
parent
commit
36921e354e
2 changed files with 13 additions and 5 deletions
  1. 6 0
      CHANGELOG.md
  2. 7 5
      package.json

+ 6 - 0
CHANGELOG.md

@@ -1,5 +1,11 @@
 # Change Log
 # Change Log
 
 
+## [0.3.7] - 2026-07-14
+
+### Fixed
+
+- 右键菜单现在会显示快捷键 `⌘⌥C` / `Ctrl+Alt+C`
+
 ## [0.3.6] - 2026-07-14
 ## [0.3.6] - 2026-07-14
 
 
 ### Added
 ### Added

+ 7 - 5
package.json

@@ -2,7 +2,7 @@
   "name": "copy-ai-ctx",
   "name": "copy-ai-ctx",
   "displayName": "Copy AI Ctx",
   "displayName": "Copy AI Ctx",
   "description": "复制上下文供AI助手使用 —— 复制文件、内容的引用信息",
   "description": "复制上下文供AI助手使用 —— 复制文件、内容的引用信息",
-  "version": "0.3.6",
+  "version": "0.3.7",
   "publisher": "fivesay",
   "publisher": "fivesay",
   "engines": {
   "engines": {
     "vscode": "^1.85.0"
     "vscode": "^1.85.0"
@@ -54,14 +54,16 @@
     "menus": {
     "menus": {
       "editor/context": [
       "editor/context": [
         {
         {
-          "command": "copy-ai-ctx.copySelection",
+          "command": "copy-ai-ctx.copySmart",
           "when": "editorHasSelection",
           "when": "editorHasSelection",
-          "group": "9_cutcopypaste@10"
+          "group": "9_cutcopypaste@10",
+          "title": "Copy to AI: 选中区域"
         },
         },
         {
         {
-          "command": "copy-ai-ctx.copyFile",
+          "command": "copy-ai-ctx.copySmart",
           "when": "!editorHasSelection",
           "when": "!editorHasSelection",
-          "group": "9_cutcopypaste@10"
+          "group": "9_cutcopypaste@10",
+          "title": "Copy to AI: 当前文件"
         }
         }
       ],
       ],
       "explorer/context": [
       "explorer/context": [