|
1 | 1 | { |
2 | | - "name": "devchat", |
3 | | - "displayName": "DevChat", |
| 2 | + "name": "${EXTENSION_NAME}", |
| 3 | + "displayName": "${ASSISTANT_NAME_ZH}", |
4 | 4 | "description": "Write prompts, not code", |
5 | 5 | "version": "0.1.74", |
6 | 6 | "icon": "assets/devchat.png", |
7 | | - "publisher": "merico", |
| 7 | + "publisher": "${PUBLISHER}", |
8 | 8 | "engines": { |
9 | 9 | "vscode": "^1.75.0" |
10 | 10 | }, |
| 11 | + "assistantNames": { |
| 12 | + "ASSISTANT_NAME_EN": "${ASSISTANT_NAME_EN}", |
| 13 | + "ASSISTANT_NAME_ZH": "${ASSISTANT_NAME_ZH}" |
| 14 | + }, |
11 | 15 | "repository": { |
12 | 16 | "type": "git", |
13 | 17 | "url": "https://github.com/devchat-ai/devchat-vscode.git" |
|
72 | 76 | "activitybar": [ |
73 | 77 | { |
74 | 78 | "id": "devchat-sidebar", |
75 | | - "title": "DevChat", |
| 79 | + "title": "${ASSISTANT_NAME_ZH}", |
76 | 80 | "icon": "assets/devchat_icon.svg" |
77 | 81 | } |
78 | 82 | ] |
|
82 | 86 | { |
83 | 87 | "type": "webview", |
84 | 88 | "id": "devchat-view", |
85 | | - "name": "DevChat" |
| 89 | + "name": "${ASSISTANT_NAME_ZH}" |
86 | 90 | } |
87 | 91 | ] |
88 | 92 | }, |
|
103 | 107 | }, |
104 | 108 | { |
105 | 109 | "command": "devchat.addContext", |
106 | | - "title": "Devchat:Add to DevChat" |
| 110 | + "title": "${ASSISTANT_NAME_EN}:Add to ${ASSISTANT_NAME_EN}" |
107 | 111 | }, |
108 | 112 | { |
109 | 113 | "command": "devchat.askForCode", |
110 | | - "title": "Devchat:Add to DevChat" |
| 114 | + "title": "${ASSISTANT_NAME_EN}:Add to ${ASSISTANT_NAME_EN}" |
111 | 115 | }, |
112 | 116 | { |
113 | 117 | "command": "devchat.askForFile", |
114 | | - "title": "Devchat:Add to DevChat" |
| 118 | + "title": "${ASSISTANT_NAME_EN}:Add to ${ASSISTANT_NAME_EN}" |
115 | 119 | }, |
116 | 120 | { |
117 | 121 | "command": "devchat.addConext_chinese", |
118 | | - "title": "Devchat:添加到DevChat" |
| 122 | + "title": "${ASSISTANT_NAME_ZH}:添加到${ASSISTANT_NAME_ZH}" |
119 | 123 | }, |
120 | 124 | { |
121 | 125 | "command": "devchat.askForCode_chinese", |
122 | | - "title": "Devchat:添加到DevChat" |
| 126 | + "title": "${ASSISTANT_NAME_ZH}:添加到${ASSISTANT_NAME_ZH}" |
123 | 127 | }, |
124 | 128 | { |
125 | 129 | "command": "devchat.askForFile_chinese", |
126 | | - "title": "Devchat:添加到DevChat" |
| 130 | + "title": "${ASSISTANT_NAME_ZH}:添加到${ASSISTANT_NAME_ZH}" |
127 | 131 | }, |
128 | 132 | { |
129 | 133 | "command": "DevChat.InstallCommands", |
|
137 | 141 | }, |
138 | 142 | { |
139 | 143 | "command": "DevChat.Chat", |
140 | | - "title": "Chat with DevChat", |
| 144 | + "title": "Chat with ${ASSISTANT_NAME_EN}", |
141 | 145 | "category": "DevChat" |
142 | 146 | }, |
143 | 147 | { |
144 | 148 | "command": "devchat.explain", |
145 | | - "title": "Devchat:Generate Explain" |
| 149 | + "title": "${ASSISTANT_NAME_EN}:Generate Explain" |
146 | 150 | }, |
147 | 151 | { |
148 | 152 | "command": "devchat.explain_chinese", |
149 | | - "title": "Devchat:代码解释" |
| 153 | + "title": "${ASSISTANT_NAME_ZH}:代码解释" |
150 | 154 | }, |
151 | 155 | { |
152 | 156 | "command": "devchat.comments", |
153 | | - "title": "Devchat:Generate Comments" |
| 157 | + "title": "${ASSISTANT_NAME_EN}:Generate Comments" |
154 | 158 | }, |
155 | 159 | { |
156 | 160 | "command": "devchat.comments_chinese", |
157 | | - "title": "Devchat:生成注释" |
| 161 | + "title": "${ASSISTANT_NAME_ZH}:生成注释" |
158 | 162 | }, |
159 | 163 | { |
160 | 164 | "command": "devchat.fix", |
161 | | - "title": "Devchat:Fix this" |
| 165 | + "title": "${ASSISTANT_NAME_EN}:Fix this" |
162 | 166 | }, |
163 | 167 | { |
164 | 168 | "command": "devchat.fix_chinese", |
165 | | - "title": "Devchat:修复此" |
| 169 | + "title": "${ASSISTANT_NAME_ZH}:修复此" |
166 | 170 | }, |
167 | 171 | { |
168 | 172 | "command": "DevChat.codecomplete_callback", |
|
171 | 175 | }, |
172 | 176 | { |
173 | 177 | "command": "DevChat.quickFixAskDevChat", |
174 | | - "title": "Ask DevChat", |
| 178 | + "title": "Ask ${ASSISTANT_NAME_EN}", |
175 | 179 | "category": "DevChat" |
176 | 180 | }, |
177 | 181 | { |
178 | 182 | "command": "DevChat.quickFixUsingDevChat", |
179 | | - "title": "Ask DevChat", |
| 183 | + "title": "Ask ${ASSISTANT_NAME_EN}", |
180 | 184 | "category": "DevChat" |
181 | 185 | } |
182 | 186 | ], |
|
344 | 348 | "vscode:uninstall": "node ./dist/uninstall", |
345 | 349 | "vscode:prepublish": "npm run package", |
346 | 350 | "compile": "webpack", |
347 | | - "watch": "webpack --watch", |
| 351 | + "watch": "node prebuild.js && webpack --watch", |
| 352 | + "prebuild": "node prebuild.js", |
| 353 | + "postbuild": "git checkout -- assets package.json", |
| 354 | + "prepackage": "node prebuild.js", |
| 355 | + "postpackage": "git checkout -- assets package.json", |
348 | 356 | "package": "webpack --mode production --devtool hidden-source-map", |
349 | 357 | "compile-tests": "tsc -p . --outDir out", |
350 | | - "watch-tests": "tsc -p . -w --outDir out", |
| 358 | + "watch-tests": "npm run prebuild && tsc -p . -w --outDir out", |
351 | 359 | "pretest": "npm run compile-tests && npm run compile && npm run lint", |
352 | 360 | "lint": "eslint src --ext ts", |
353 | 361 | "test": "mocha", |
|
0 commit comments