forked from ms-iot/vscode-ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
421 lines (421 loc) · 15.5 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
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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
{
"name": "vscode-ros",
"version": "0.8.3",
"publisher": "ms-iot",
"engines": {
"vscode": "^1.66.0"
},
"author": {
"name": "Microsoft Corporation"
},
"displayName": "ROS",
"description": "Develop Robot Operating System (ROS) with Visual Studio Code.",
"icon": "media/icon.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"categories": [
"Debuggers",
"Other"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "The Visual Studio Code ROS Extension calls ROS on behalf of packages in the workspace. This can execute code from within the workspace. For this reason, this extension requires a fully trusted workspace."
}
},
"keywords": [
"ros",
"robot"
],
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/ms-iot/vscode-ros",
"repository": {
"type": "git",
"url": "https://github.com/ms-iot/vscode-ros"
},
"bugs": {
"url": "https://github.com/ms-iot/vscode-ros/issues"
},
"preview": true,
"main": "./out/src/extension",
"activationEvents": [
"*",
"onDebugResolve:ros",
"onDebugDynamicConfigurations:ros"
],
"contributes": {
"commands": [
{
"command": "ros.createCatkinPackage",
"title": "Create Catkin Package",
"category": "ROS"
},
{
"command": "ros.createTerminal",
"title": "Create Terminal",
"category": "ROS"
},
{
"command": "ros.rosrun",
"title": "Run a ROS executable (rosrun)",
"category": "ROS"
},
{
"command": "ros.roslaunch",
"title": "Run a ROS launch file (roslaunch)",
"category": "ROS"
},
{
"command": "ros.rostest",
"title": "Run a ROS test file (rostest)",
"category": "ROS"
},
{
"command": "ros.showCoreStatus",
"title": "Show Status",
"category": "ROS"
},
{
"command": "ros.startCore",
"title": "Start",
"category": "ROS"
},
{
"command": "ros.stopCore",
"title": "Stop",
"category": "ROS"
},
{
"command": "ros.updateCppProperties",
"title": "Update C++ Properties",
"category": "ROS"
},
{
"command": "ros.updatePythonPath",
"title": "Update Python Path",
"category": "ROS"
},
{
"command": "ros.previewUrdf",
"title": "Preview URDF",
"category": "ROS"
},
{
"command": "ros.rosdep",
"title": "Install ROS Dependencies for this workspace using rosdep",
"category": "ROS"
}
],
"configuration": {
"type": "object",
"title": "ROS",
"properties": {
"ros.distro": {
"type": "string",
"description": "ROS installation distro to be sourced."
},
"ros.rosSetupScript": {
"type": "string",
"description": "ROS workspace setup script. Overrides ros.distro."
},
"ros.isolateEnvironment": {
"type": "bool",
"default": false,
"description": "Specify if the extension should not capture the environment VSCode is running in to pass to child processes."
}
}
},
"debuggers": [
{
"type": "ros",
"label": "ROS",
"program": "./out/src/debugger/main.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"target"
],
"properties": {
"target": {
"type": "string",
"description": "Absolute path to launch file",
"default": ""
},
"arguments": {
"type": "array",
"description": "Arguments for the roslaunch or ros2 launch command",
"default": []
},
"env": {
"type": "object",
"description": "Environment variables defined as a key value pair. Property ends up being the Environment Variable and the value of the property ends up being the value of the Env Variable.",
"default": {},
"additionalProperties": {
"type": "string"
}
},
"symbolSearchPath": {
"type": "string",
"description": "Semicolon separated list of directories to use to search for symbol (that is, pdb) files. Example: \"c:\\dir1;c:\\dir2\"",
"default": ""
},
"additionalSOLibSearchPath": {
"type": "string",
"description": "Semicolon separated list of directories to use to search for .so files",
"default": ""
},
"sourceFileMap": {
"type": "string",
"description": "Optional source file mappings passed to the debug engine. Example: '{ \"/original/source/path\":\"/current/source/path\" }'",
"default": ""
},
"launch": {
"type": "array",
"description": "A list of Scripts or executables to just launch without attaching a debugger",
"default": ""
},
"attachDebugger": {
"type": "array",
"description": "A specific list of executables to just attach a debugger. Useful for large compostions with where only a few nodes need to be debugged",
"default": ""
}
}
},
"attach": {
"properties": {
"runtime": {
"type": "string",
"description": "Runtime type of the node (currently supports Python and C++). Use \"${action:pick}\" to choose interactively.\nThis is only for local processes that were launched directly. Advanced attaching (e.g. attaching to a running ptvsd server, attaching to a remote process, etc.) should use language-specific debugger extension.",
"enum": [
"${action:pick}",
"C++",
"Python"
],
"default": "${action:pick}"
},
"processId": {
"anyOf": [
{
"type": "string",
"description": "Optional process id to attach the debugger to. Use \"${action:pick}\" to get a list of local running processes to attach to. Note that some platforms require administrator privileges in order to attach to a process.",
"enum": [
"${action:pick}"
],
"default": "${action:pick}"
},
{
"type": "integer",
"description": "Optional process id to attach the debugger to. Use \"${action:pick}\" to get a list of local running processes to attach to. Note that some platforms require administrator privileges in order to attach to a process.",
"default": 0
}
]
}
}
}
},
"configurationSnippets": [
{
"label": "ROS: Launch",
"description": "Debug ROS node(s) at launch.",
"body": {
"name": "ROS: Launch",
"type": "ros",
"request": "launch",
"target": "absolute path to launch file"
}
},
{
"label": "ROS: Attach",
"description": "Debug a ROS node by attaching to it.",
"body": {
"name": "ROS: Attach",
"type": "ros",
"request": "attach"
}
}
]
}
],
"languages": [
{
"id": "xml",
"extensions": [
"launch",
"srdf",
"test",
"urdf",
"xacro"
]
},
{
"id": "yaml",
"extensions": [
"rviz"
]
},
{
"id": "ros.msg",
"aliases": [
"ROS Message"
],
"extensions": [
".action",
".msg",
".srv"
],
"configuration": "./languages/ros.msg.configuration.json"
}
],
"grammars": [
{
"language": "ros.msg",
"scopeName": "source.ros.msg",
"path": "./languages/syntaxes/ros.msg.tmLanguage.json"
}
],
"menus": {
"explorer/context": [
{
"command": "ros.createCatkinPackage",
"when": "explorerResourceIsFolder"
}
]
},
"problemMatchers": [
{
"name": "catkin-gcc",
"fileLocation": "absolute",
"owner": "catkin",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"name": "roscore",
"pattern": {
"regexp": ".",
"file": 1,
"line": 2,
"message": 3
},
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": "(process\\[master\\]: started with pid|roscore cannot run|master is already running)"
}
},
{
"name": "roslaunch",
"pattern": {
"regexp": "^(.*):\\s+(.*):\\s+line\\s+(\\d+),\\s+column\\s+(\\d+)$",
"line": 3,
"column": 4,
"message": 2,
"severity": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": "started roslaunch server",
"endsPattern": "ROS_MASTER_URI="
}
}
],
"taskDefinitions": [
{
"type": "ros",
"required": [
"command"
],
"properties": {
"command": {
"type": "string",
"description": "command to execute in ROS environment"
},
"args": {
"type": "array",
"description": "Commadn line arguments to command"
}
}
},
{
"type": "catkin_make",
"properties": {
"args": {
"type": "array",
"description": "Commadn line arguments to catkin_make"
}
}
},
{
"type": "catkin_make_isolated",
"properties": {
"args": {
"type": "array",
"description": "Commadn line arguments to catkin_make_isolated"
}
}
},
{
"type": "catkin",
"properties": {
"args": {
"type": "array",
"description": "Commadn line arguments to catkin"
}
}
},
{
"type": "colcon",
"properties": {
"args": {
"type": "array",
"description": "Commadn line arguments to colcon"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"package:dev": "vsce package -o vscode-ros-dev.vsix",
"compile": "tsc -p ./",
"lint": "tslint -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/src/test/runTest.js"
},
"dependencies": {
"js-yaml": "^4.1.0",
"portfinder": "^1.0.28",
"shell-quote": "^1.7.3",
"sudo-prompt": "^9.2.1",
"tmp": "^0.2.1",
"vscode-debugadapter": "^1.51.0",
"vscode-extension-telemetry": "^0.4.5",
"xmlrpc": "^1.3.2"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/js-yaml": "^4.0.5",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.25",
"@types/shell-quote": "^1.7.1",
"@types/tmp": "^0.2.3",
"@types/vscode": "^1.66.0",
"@types/xmlrpc": "^1.3.7",
"glob": "^8.0.1",
"mocha": "^9.2.2",
"tslint": "^6.1.3",
"typescript": "^4.6.3",
"vscode-test": "^1.6.1"
},
"extensionDependencies": [
"ms-python.python",
"ms-vscode.cpptools"
]
}