-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
310 lines (310 loc) · 7.48 KB
/
package.json
File metadata and controls
310 lines (310 loc) · 7.48 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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
{
"name": "qpy-ide",
"displayName": "QuecPython",
"publisher": "Quectel",
"description": "QuecPython interaction extension. It includes REPL console, AT CLI, preview of the module file system. Flash firmware, download files, run files and interact with the module file system from the VSCode.",
"icon": "images/quectel.png",
"version": "1.1.16",
"engines": {
"vscode": "^1.108.1",
"npm": ">=11.6.2"
},
"categories": [
"Other"
],
"homepage": "https://developer.quectel.com/en/",
"bugs": {
"url": "https://github.com/QuecPython/vscode-extension-issues/issues"
},
"activationEvents": [
"*"
],
"repository": {
"type": "git",
"url": "https://github.com/QuecPython/qpy-vscode-extension"
},
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "QuecPython",
"properties": {
"QuecPython.userProjects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Project name"
},
"path": {
"type": "string",
"description": "Project path"
},
"description": {
"type": "string",
"description": "Project description"
},
"url": {
"type": "string",
"description": "Project repository URL"
}
},
"required": [
"name",
"path"
]
},
"default": [],
"description": "List of user's QuecPython projects",
"scope": "global"
},
"QuecPython.defaultLineTerminator": {
"description": "Text added to end of all sent lines. Will be appended to sent data but will not be rendered in terminal. Allows escape characters (\\r, \\n etc.), hex representation (\\x6F, \\xF8 etc.) and unicode representation (\\u006F, \\u00F8 etc.)",
"type": "string",
"default": "\\r\\n"
},
"QuecPython.translateHex": {
"description": "Set to true to translate incomming hex data. Set to false to output raw hex.",
"type": "boolean",
"default": true
},
"QuecPython.showRunCommandInEditorContextMenu": {
"type": "boolean",
"default": true,
"description": "Whether to show 'Run Code' command in editor context menu.",
"scope": "resource"
},
"QuecPython.outputChannelToFile": {
"type": "boolean",
"default": false,
"description": "whether to output to log file."
}
}
},
"commands": [
{
"command": "qpy-ide.refreshModuleFS",
"title": "Refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "qpy-ide.selectFirmware",
"title": "Select Firmware",
"category": "QuecPython"
},
{
"command": "qpy-ide.clearFw",
"category": "QuecPython",
"title": "Clear Firmware Path",
"icon": "$(clear-all)"
},
{
"command": "qpy-ide.openConnection",
"title": "Connect to COM Port",
"category": "QuecPython"
},
{
"command": "qpy-ide.closeConnection",
"title": "Disconnect COM Port",
"category": "QuecPython"
},
{
"command": "qpy-ide.downloadFile",
"title": "QPY: Download File",
"category": "QuecPython"
},
{
"command": "qpy-ide.selectiveDownloadFile",
"title": "QPY: Selective Download File",
"category": "QuecPython"
},
{
"command": "qpy-ide.setLineEnd",
"title": "Set line terminator for active terminal",
"category": "QuecPython"
},
{
"command": "qpy-ide.toggleHexTranslation",
"title": "Toggle hex translation for active terminal",
"category": "QuecPython"
},
{
"command": "qpy-ide.clearTerminal",
"title": "Clear active terminal",
"category": "QuecPython"
},
{
"command": "qpy-ide.runScript",
"title": "Run Script",
"icon": {
"light": "resources/light/play-circle.svg",
"dark": "resources/dark/play-circle.svg"
}
},
{
"command": "qpy-ide.removeFile",
"title": "Delete File"
},
{
"command": "qpy-ide.removeDir",
"title": "Delete Directory"
},
{
"command": "qpy-ide.createDir",
"title": "Create Directory"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "qpy",
"title": "QuecPython",
"icon": "media/logo.svg"
}
]
},
"views": {
"explorer": [
{
"id": "qpyModuleFS",
"name": "QPY: File System (usr)"
}
],
"qpy": [
{
"id": "qpyProject",
"name": "Flash Firmware",
"type": "webview"
},
{
"id": "quickAccess",
"name": "Quick Access",
"type": "tree"
}
]
},
"menus": {
"commandPalette": [
{
"command": "qpy-ide.setLineEnd",
"when": "terminalIsOpen"
},
{
"command": "qpy-ide.toggleHexTranslation",
"when": "terminalIsOpen"
},
{
"command": "qpy-ide.clearTerminal",
"when": "terminalIsOpen"
},
{
"command": "qpy-ide.closeConnection",
"when": "terminalIsOpen"
},
{
"command": "qpy-ide.downloadFile",
"title": "QPY: Download File",
"category": "QuecPython",
"when": "false"
},
{
"command": "qpy-ide.selectiveDownloadFile",
"title": "QPY: Selective Download File",
"category": "QuecPython",
"when": "false"
}
],
"view/title": [
{
"command": "qpy-ide.refreshModuleFS",
"group": "navigation",
"when": "view == qpyModuleFS"
},
{
"command": "qpy-ide.clearFw",
"group": "navigation",
"when": "view == qpyProject"
},
{
"command": "qpy-ide.createDir",
"when": "view == qpyModuleFS"
}
],
"view/item/context": [
{
"command": "qpy-ide.runScript",
"when": "view == qpyModuleFS && viewItem == moduleDocument"
},
{
"command": "qpy-ide.removeFile",
"when": "view == qpyModuleFS && viewItem == moduleDocument"
},
{
"command": "qpy-ide.removeDir",
"when": "view == qpyModuleFS && viewItem == moduleDocument"
}
],
"explorer/context": [
{
"command": "qpy-ide.downloadFile",
"group": "QuecPython@1"
},
{
"command": "qpy-ide.selectiveDownloadFile",
"group": "QuecPython@1"
}
],
"editor/context": [
{
"command": "qpy-ide.downloadFile",
"when": "!inOutput && config.QuecPython.showRunCommandInEditorContextMenu",
"group": "QuecPython@1"
},
{
"command": "qpy-ide.selectiveDownloadFile",
"when": "!inOutput && config.QuecPython.showRunCommandInEditorContextMenu",
"group": "QuecPython@1"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"rebuild": "electron-rebuild -f --version 27.2.3 -w serialport",
"dev:rebuild": "electron-rebuild --version 22.3.14 --force",
"ext:prepublish": "npm ci && npm prune"
},
"devDependencies": {
"@electron/rebuild": "^4.0.3",
"@types/glob": "^9.0.0",
"@types/node": "^25.2.3",
"@types/request": "^2.48.13",
"@types/serialport": "^10.2.0",
"@types/vscode": "^1.108.0",
"@typescript-eslint/eslint-plugin": "^8.55.0",
"@typescript-eslint/parser": "^8.55.0",
"@vscode/test-electron": "^2.5.2",
"eslint": "^10.0.0",
"glob": "^13.0.2",
"prebuild-install": "^7.1.3"
},
"dependencies": {
"axios": "^1.13.5",
"form-data": "^4.0.5",
"marked": "^17.0.1",
"minimatch": "^10.1.2",
"node-abi": "^4.26.0",
"serialport": "^13.0.0",
"simple-git": "^3.30.0",
"typescript": "^5.9.3"
}
}