소스 검색

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 개월 전
부모
커밋
417db17fbc
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": [