forked from oliversen/chatgpt-docstrings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
179 lines (179 loc) · 6.24 KB
/
package.json
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "chatgpt-docstrings",
"displayName": "ChatGPT: Docstring Generator",
"description": "Automatically generate docstrings using ChatGPT.",
"version": "0.5.1",
"preview": true,
"icon": "images/icon.png",
"serverInfo": {
"name": "ChatGPT: Docstring Generator",
"module": "chatgpt-docstrings"
},
"publisher": "oliversen",
"license": "MIT",
"homepage": "https://github.com/oliversen/chatgpt-docstrings",
"repository": {
"type": "git",
"url": "https://github.com/oliversen/chatgpt-docstrings.git"
},
"bugs": {
"url": "https://github.com/oliversen/chatgpt-docstrings/issues"
},
"galleryBanner": {
"color": "#171c28",
"theme": "dark"
},
"keywords": [
"python",
"chatgpt",
"docstring",
"automatic",
"automatically",
"generation",
"generate",
"ai"
],
"engines": {
"vscode": "^1.75.0"
},
"extensionDependencies": [
"ms-python.python"
],
"capabilities": {
"virtualWorkspaces": {
"supported": false,
"description": "Virtual Workspaces are not supported with ChatGPT: Docstring Generator."
}
},
"activationEvents": [
"onLanguage:python",
"workspaceContains:*.py"
],
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool source-map --config ./webpack.config.js",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"format-check": "prettier --check 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'",
"test": "node ./out/test/runTest.js",
"vsce-package": "vsce package -o chatgpt-docstrings.vsix"
},
"contributes": {
"configuration": {
"properties": {
"chatgpt-docstrings.interpreter": {
"default": [],
"description": "When set to a path to python executable, extension will use that to launch the server and any subprocess.",
"scope": "resource",
"items": {
"type": "string"
},
"type": "array"
},
"chatgpt-docstrings.openaiModel": {
"type": "string",
"default": "gpt-3.5-turbo",
"description": "Which OpenAI model to use.",
"enum": [
"gpt-3.5-turbo",
"text-davinci-002"
]
},
"chatgpt-docstrings.docstringFormat": {
"type": "string",
"default": "google",
"description": "Which docstring format to use.",
"enum": [
"google",
"numpy",
"sphinx"
]
},
"chatgpt-docstrings.promptPattern": {
"type": "string",
"default": "Create docstring in {docstring_format} format for python function below:\n{function}",
"description": "ChatGPT prompt to generate docstring.",
"editPresentation": "multilineText",
"pattern": ".*{function}.*",
"patternErrorMessage": "Must include: \"{function}\""
},
"chatgpt-docstrings.responseTimeout": {
"type": "integer",
"default": 15,
"description": "ChatGPT response timeout in seconds."
},
"chatgpt-docstrings.showProgressNotification": {
"type": "boolean",
"default": true,
"description": "Show progress notification of docstring generation."
}
}
},
"commands": [
{
"title": "Generate Docstring",
"category": "ChatGPT: Docstring Generator",
"command": "chatgpt-docstrings.generateDocstring"
},
{
"title": "Set OpenAI API key",
"category": "ChatGPT: Docstring Generator",
"command": "chatgpt-docstrings.setOpenaiApiKey"
},
{
"title": "Restart Server",
"category": "ChatGPT: Docstring Generator",
"command": "chatgpt-docstrings.restart"
},
{
"title": "Show Logs",
"category": "ChatGPT: Docstring Generator",
"command": "chatgpt-docstrings.showLogs"
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == python",
"command": "chatgpt-docstrings.generateDocstring",
"group": "ChatGPT: Docstring Generator"
}
]
},
"keybindings": [
{
"key": "ctrl+k ctrl+d",
"mac": "cmd+k cmd+d",
"command": "chatgpt-docstrings.generateDocstring",
"when": "editorTextFocus && !editorReadonly && editorLangId == python"
}
]
},
"dependencies": {
"@vscode/extension-telemetry": "^0.8.1",
"fs-extra": "^11.1.1",
"vscode-languageclient": "^8.1.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"@types/vscode": "1.75.0",
"@types/glob": "^8.1.0",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vscode/test-electron": "^2.3.3",
"@vscode/vsce": "^2.19.0",
"eslint": "^8.43.0",
"glob": "^10.3.0",
"prettier": "^2.8.8",
"typescript": "^5.1.3",
"ts-loader": "^9.4.3",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4"
}
}