-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
261 lines (261 loc) · 7.33 KB
/
package.json
File metadata and controls
261 lines (261 loc) · 7.33 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
{
"name": "marslib-vscode",
"displayName": "MARSLib Extension",
"description": "Official VS Code extension for the MARSLib robotics framework — championship-grade development suite.",
"version": "2.0.8",
"publisher": "mars2614",
"icon": "resources/mars-logo.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/MARSProgramming/marslib-vscode"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Linters",
"Snippets",
"Other"
],
"keywords": [
"frc",
"robotics",
"wpilib",
"advantagekit",
"marslib"
],
"activationEvents": [
"onLanguage:java",
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "marslib-actions-container",
"title": "MARSLib",
"icon": "resources/marslib.svg"
}
]
},
"views": {
"marslib-actions-container": [
{
"id": "marslib-actions",
"name": "Commands",
"type": "tree"
},
{
"id": "marslib-canids",
"name": "CAN IDs",
"type": "tree"
},
{
"id": "marslib-pathplanner",
"name": "PathPlanner",
"type": "tree"
},
{
"id": "marslib-deploy-history",
"name": "Deploy History",
"type": "tree"
}
]
},
"commands": [
{
"command": "marslib.build",
"title": "MARSLib: Build Robot Code",
"icon": "$(tools)"
},
{
"command": "marslib.deploy",
"title": "MARSLib: Deploy Robot Code",
"icon": "$(rocket)"
},
{
"command": "marslib.simulate",
"title": "MARSLib: Simulate Robot Code",
"icon": "$(play)"
},
{
"command": "marslib.simWithScope",
"title": "MARSLib: Sim + AdvantageScope",
"icon": "$(graph)"
},
{
"command": "marslib.toggleSimMode",
"title": "MARSLib: Toggle Sim/Deploy Mode",
"icon": "$(arrow-swap)"
},
{
"command": "marslib.generateSubsystem",
"title": "MARSLib: Generate Subsystem (Wizard)",
"icon": "$(gear)"
},
{
"command": "marslib.audit",
"title": "MARSLib: Run Audit",
"icon": "$(check-all)"
},
{
"command": "marslib.setupEnvironment",
"title": "MARSLib: Setup Development Environment"
},
{
"command": "marslib.openLog",
"title": "MARSLib: Open Latest Log in AdvantageScope"
},
{
"command": "marslib.startLogPuller",
"title": "MARSLib: Start Auto Log Puller",
"icon": "$(cloud-download)"
},
{
"command": "marslib.refreshCANIds",
"title": "Refresh CAN IDs",
"icon": "$(refresh)"
},
{
"command": "marslib.refreshPaths",
"title": "Refresh PathPlanner",
"icon": "$(refresh)"
},
{
"command": "marslib.refreshDeployHistory",
"title": "Refresh Deploy History",
"icon": "$(refresh)"
},
{
"command": "marslib.openDashboard",
"title": "MARSLib: Open Virtual Dashboard"
},
{
"command": "marslib.generateTest",
"title": "MARSLib: Generate Physics Test"
},
{
"command": "marslib.openBinder",
"title": "MARSLib: Open Command Binder"
},
{
"command": "marslib.openCANMap",
"title": "MARSLib: Open CAN Bus Map"
}
],
"menus": {
"view/title": [
{
"command": "marslib.refreshCANIds",
"when": "view == marslib-canids",
"group": "navigation"
},
{
"command": "marslib.refreshPaths",
"when": "view == marslib-pathplanner",
"group": "navigation"
},
{
"command": "marslib.refreshDeployHistory",
"when": "view == marslib-deploy-history",
"group": "navigation"
}
]
},
"configuration": {
"title": "MARSLib",
"properties": {
"marslib.teamNumber": {
"type": "number",
"default": 2614,
"description": "FRC team number. Used to derive the RoboRIO mDNS address (roborio-XXXX-frc.local)."
},
"marslib.rioAddress": {
"type": "string",
"default": "",
"description": "Override the RoboRIO address. Leave empty to auto-derive from team number."
},
"marslib.projectDoctor.enabled": {
"type": "boolean",
"default": true,
"description": "Enable real-time Elite Coding Standards linting in the Problems panel."
}
}
},
"snippets": [
{
"language": "java",
"path": "./snippets/marslib.code-snippets"
}
],
"walkthroughs": [
{
"id": "marslib.welcome",
"title": "Welcome to MARSLib",
"description": "Getting started with championship-grade robotics development.",
"steps": [
{
"id": "setup",
"title": "Initialize Environment",
"description": "Download core FRC libraries and configure your git hooks. This ensures your project follows the Elite Coding Standards.\n[Initialize Environment](command:marslib.setupEnvironment)",
"media": {
"svg": "resources/marslib.svg",
"altText": "MARSLib Logo"
},
"completionEvents": [
"onCommand:marslib.setupEnvironment"
]
},
{
"id": "generate",
"title": "Scaffold a Subsystem",
"description": "Use the MARSLib Wizard to create your first AdvantageKit-ready mechanism with IO layers, motor-specific code, and optional SysId.\n[Generate Subsystem](command:marslib.generateSubsystem)",
"media": {
"svg": "resources/marslib.svg",
"altText": "Wizard"
}
},
{
"id": "canids",
"title": "Review CAN Bus Topology",
"description": "Open the MARSLib CAN Bus Map to visualize your hardware wiring and detect ID conflicts before they brick your robot.\n[Open CAN Map](command:marslib.openCANMap)",
"media": {
"svg": "resources/marslib.svg",
"altText": "CAN Map"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && node esbuild.js",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --preserveWatchOutput",
"package": "npm run check-types && node esbuild.js --production",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"esbuild": "^0.28.0",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.1.3"
},
"dependencies": {
"ntcore-ts-client": "^3.1.3"
}
}