-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 3.57 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "dropcomments",
"displayName": "DropComments",
"description": "DropComments is a Visual Studio Code extension that helps you automatically add comments to your code using AI.",
"version": "0.7.3",
"icon": "img/DropCommentsLogo.png",
"repository": {
"type": "git",
"url": "https://github.com/kasuken/DropComments.git"},
"publisher": "emanuelebartolesi",
"engines": {
"vscode": "^1.103.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"keywords": [
"ai",
"artificial-intelligence",
"chatgpt",
"gpt",
"openai",
"azure-openai",
"llm",
"machine-learning",
"comments",
"code-comments",
"auto-comment",
"comment-generator",
"documentation",
"code-documentation",
"docstring",
"jsdoc",
"javadoc",
"doxygen",
"kdoc",
"context-menu",
"productivity",
"developer-tools"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dropcomments.addComments",
"title": "DropComments: Add Comments to Selection"
},
{
"command": "dropcomments.addCommentsContext",
"title": "Add Comments with DropComments"
}
],
"menus": {
"editor/context": [
{
"command": "dropcomments.addCommentsContext",
"when": "editorTextFocus && editorHasSelection",
"group": "1_modification@7"
}
]
},
"configuration": {
"title": "DropComments",
"properties": {
"dropcomments.apiKey": {
"type": "string",
"default": "",
"description": "API key used by DropComments.",
"scope": "application"
},
"dropcomments.model": {
"type": "string",
"default": "gpt-4o-mini",
"description": "Model to use for generating comments.",
"scope": "application"
},
"dropcomments.commentStyle": {
"type": "string",
"enum": ["succinct", "detailed"],
"default": "succinct",
"description": "Style of comments to generate.",
"scope": "application"
}
,
"dropcomments.useEmojis": {
"type": "boolean",
"default": false,
"description": "Include emojis in generated comments.",
"scope": "application"
},
"dropcomments.apiUrl": {
"type": "string",
"default": "",
"description": "Optional base URL for the AI API (OpenAI-compatible). Leave empty to use the default OpenAI endpoint.",
"scope": "application"
}
,
"dropcomments.promptTemplate": {
"type": "string",
"default": "",
"description": "Custom prompt template for AI comment generation. Supports variables: {language}, {code}, {style}, {emojiInstruction}. Leave empty to use the default template.",
"scope": "application"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"dependencies": {
"openai": "^4.67.3"
},
"devDependencies": {
"@types/vscode": "^1.103.0",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@typescript-eslint/eslint-plugin": "^8.39.0",
"@typescript-eslint/parser": "^8.39.0",
"eslint": "^9.32.0",
"typescript": "^5.9.2",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2"
}
}