浏览代码

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 月之前
父节点
当前提交
36921e354e
共有 2 个文件被更改,包括 13 次插入5 次删除
  1. 6 0
      CHANGELOG.md
  2. 7 5
      package.json

+ 6 - 0
CHANGELOG.md

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

+ 7 - 5
package.json

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