|
@@ -2,44 +2,42 @@
|
|
|
"name": "vsix-cp-ai-ctx",
|
|
"name": "vsix-cp-ai-ctx",
|
|
|
"displayName": "Copy AI Context",
|
|
"displayName": "Copy AI Context",
|
|
|
"description": "Copy code context for AI assistants — selected code, file contents, with paths and formatting",
|
|
"description": "Copy code context for AI assistants — selected code, file contents, with paths and formatting",
|
|
|
- "version": "0.1.1",
|
|
|
|
|
- "publisher": "your-publisher",
|
|
|
|
|
|
|
+ "version": "0.2.2",
|
|
|
|
|
+ "publisher": "fivesay",
|
|
|
"engines": {
|
|
"engines": {
|
|
|
"vscode": "^1.85.0"
|
|
"vscode": "^1.85.0"
|
|
|
},
|
|
},
|
|
|
- "categories": ["Other"],
|
|
|
|
|
- "keywords": ["ai", "context", "copy", "clipboard", "chatgpt", "claude", "pi"],
|
|
|
|
|
|
|
+ "categories": [
|
|
|
|
|
+ "Other"
|
|
|
|
|
+ ],
|
|
|
|
|
+ "keywords": [
|
|
|
|
|
+ "ai",
|
|
|
|
|
+ "context",
|
|
|
|
|
+ "copy",
|
|
|
|
|
+ "clipboard",
|
|
|
|
|
+ "chatgpt",
|
|
|
|
|
+ "claude",
|
|
|
|
|
+ "pi"
|
|
|
|
|
+ ],
|
|
|
"activationEvents": [],
|
|
"activationEvents": [],
|
|
|
"main": "./dist/extension.js",
|
|
"main": "./dist/extension.js",
|
|
|
"contributes": {
|
|
"contributes": {
|
|
|
"commands": [
|
|
"commands": [
|
|
|
{
|
|
{
|
|
|
"command": "vsix-cp-ai-ctx.copySelection",
|
|
"command": "vsix-cp-ai-ctx.copySelection",
|
|
|
- "title": "复制 AI 上下文: 选区"
|
|
|
|
|
|
|
+ "title": "Copy to AI: 选中区域"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"command": "vsix-cp-ai-ctx.copyFile",
|
|
"command": "vsix-cp-ai-ctx.copyFile",
|
|
|
- "title": "复制 AI 上下文: 文件"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- "command": "vsix-cp-ai-ctx.copyWorkspaceFiles",
|
|
|
|
|
- "title": "复制 AI 上下文: 工作区文件"
|
|
|
|
|
|
|
+ "title": "Copy to AI: 当前文件"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"command": "vsix-cp-ai-ctx.copySelectedFiles",
|
|
"command": "vsix-cp-ai-ctx.copySelectedFiles",
|
|
|
- "title": "复制 AI 上下文: 选中文件"
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- "keybindings": [
|
|
|
|
|
- {
|
|
|
|
|
- "command": "vsix-cp-ai-ctx.copySelection",
|
|
|
|
|
- "key": "ctrl+alt+c",
|
|
|
|
|
- "mac": "cmd+alt+c"
|
|
|
|
|
|
|
+ "title": "Copy to AI: 单选"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- "command": "vsix-cp-ai-ctx.copyFile",
|
|
|
|
|
- "key": "ctrl+alt+f",
|
|
|
|
|
- "mac": "cmd+alt+f"
|
|
|
|
|
|
|
+ "command": "vsix-cp-ai-ctx.copyMultiFiles",
|
|
|
|
|
+ "title": "Copy to AI: 多选"
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
"menus": {
|
|
"menus": {
|
|
@@ -48,23 +46,24 @@
|
|
|
"command": "vsix-cp-ai-ctx.copySelection",
|
|
"command": "vsix-cp-ai-ctx.copySelection",
|
|
|
"when": "editorHasSelection",
|
|
"when": "editorHasSelection",
|
|
|
"group": "9_cutcopypaste@10"
|
|
"group": "9_cutcopypaste@10"
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- "explorer/context": [
|
|
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
"command": "vsix-cp-ai-ctx.copyFile",
|
|
"command": "vsix-cp-ai-ctx.copyFile",
|
|
|
- "when": "!editorHasSelection && !explorerResourceIsFolder",
|
|
|
|
|
|
|
+ "when": "!editorHasSelection",
|
|
|
"group": "9_cutcopypaste@10"
|
|
"group": "9_cutcopypaste@10"
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "explorer/context": [
|
|
|
{
|
|
{
|
|
|
- "command": "vsix-cp-ai-ctx.copySelectedFiles",
|
|
|
|
|
- "when": "explorerResourceIsFolder",
|
|
|
|
|
|
|
+ "command": "vsix-cp-ai-ctx.copyMultiFiles",
|
|
|
|
|
+ "when": "listMultiSelection && explorerViewletVisible",
|
|
|
"group": "9_cutcopypaste@10"
|
|
"group": "9_cutcopypaste@10"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"command": "vsix-cp-ai-ctx.copySelectedFiles",
|
|
"command": "vsix-cp-ai-ctx.copySelectedFiles",
|
|
|
- "when": "listMultiSelection && explorerViewletVisible",
|
|
|
|
|
- "group": "9_cutcopypaste@10"
|
|
|
|
|
|
|
+ "when": "!listMultiSelection",
|
|
|
|
|
+ "group": "9_cutcopypaste@10",
|
|
|
|
|
+ "title": "Copy to AI: 单选"
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -78,14 +77,14 @@
|
|
|
"publish": "vsce publish"
|
|
"publish": "vsce publish"
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
- "@types/vscode": "^1.85.0",
|
|
|
|
|
"@types/node": "^20.0.0",
|
|
"@types/node": "^20.0.0",
|
|
|
- "esbuild": "^0.20.0",
|
|
|
|
|
- "typescript": "^5.3.0",
|
|
|
|
|
- "eslint": "^8.56.0",
|
|
|
|
|
|
|
+ "@types/vscode": "^1.85.0",
|
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
|
- "@vscode/vsce": "^2.22.0"
|
|
|
|
|
|
|
+ "@vscode/vsce": "^2.19.0",
|
|
|
|
|
+ "esbuild": "^0.20.0",
|
|
|
|
|
+ "eslint": "^8.56.0",
|
|
|
|
|
+ "typescript": "^5.3.0"
|
|
|
},
|
|
},
|
|
|
"repository": {
|
|
"repository": {
|
|
|
"type": "git",
|
|
"type": "git",
|