-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
506 lines (506 loc) · 15.8 KB
/
package.json
File metadata and controls
506 lines (506 loc) · 15.8 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
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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
{
"name": "sysml-v2-support",
"displayName": "SysML v2.0 Language Support",
"description": "Complete SysML v2.0 support with visualiser, model explorer, model dashboard, feature inspector, including syntax highlighting, formatting, validation, navigation, and interactive views",
"version": "0.35.0",
"publisher": "JamieD",
"license": "MIT",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/daltskin/VSCode_SysML_Extension.git"
},
"engines": {
"vscode": "^1.99.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Linters",
"Visualization"
],
"keywords": [
"sysml",
"sysml2",
"systems modeling",
"mbse"
],
"activationEvents": [
"onLanguage:sysml",
"workspaceContains:**/*.sysml",
"onMcpServerDefinitionProvider:sysml-v2-mcp",
"onCommand:sysml.showVisualizer",
"onCommand:sysml.showModelExplorer",
"onCommand:sysml.formatDocument",
"onCommand:sysml.validateModel",
"onCommand:sysml.visualizeFolder",
"onCommand:sysml.visualizeFolderWithView",
"onCommand:sysml.changeVisualizerView",
"onCommand:sysml.exportVisualization",
"onCommand:sysml.refreshModelTree",
"onCommand:sysml.refreshVisualization",
"onCommand:sysml.jumpToDefinition",
"onCommand:sysml.showTypeHierarchy",
"onCommand:sysml.showCallHierarchy",
"onCommand:sysml.showFeatureInspector",
"onCommand:sysml.showModelDashboard",
"onCommand:sysml.showSysRunner",
"onCommand:sysml.visualizePackage"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "sysml",
"aliases": [
"SysML",
"sysml"
],
"extensions": [
".sysml",
".kerml"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "sysml",
"scopeName": "source.sysml",
"path": "./syntaxes/sysml.tmLanguage.json"
}
],
"snippets": [
{
"language": "sysml",
"path": "./snippets/sysml.json"
}
],
"commands": [
{
"command": "sysml.formatDocument",
"title": "Format SysML Document",
"category": "SysML"
},
{
"command": "sysml.validateModel",
"title": "Validate SysML Model",
"category": "SysML"
},
{
"command": "sysml.showModelExplorer",
"title": "Show Model Explorer",
"category": "SysML",
"icon": "$(graph)"
},
{
"command": "sysml.showVisualizer",
"title": "Show Model Visualizer",
"category": "SysML",
"icon": "$(type-hierarchy)"
},
{
"command": "sysml.exportVisualization",
"title": "Export Visualization (PNG/SVG)",
"category": "SysML",
"icon": "$(save)"
},
{
"command": "sysml.visualizeFolder",
"title": "Visualise with SysML",
"category": "SysML",
"icon": "$(type-hierarchy)"
},
{
"command": "sysml.visualizeFolderWithView",
"title": "Visualise with SysML (Choose View)",
"category": "SysML",
"icon": "$(type-hierarchy)"
},
{
"command": "sysml.changeVisualizerView",
"title": "Change Visualizer View",
"category": "SysML",
"icon": "$(layout-panel)"
},
{
"command": "sysml.clearCache",
"title": "Clear Parse Cache",
"category": "SysML",
"icon": "$(trash)"
},
{
"command": "sysml.refreshModelTree",
"title": "Refresh Model Tree",
"category": "SysML",
"icon": "$(refresh)"
},
{
"command": "sysml.toggleModelExplorerViewMode",
"title": "Toggle View: By File / Semantic Model",
"category": "SysML",
"icon": "$(list-tree)"
},
{
"command": "sysml.switchToFileView",
"title": "Switch to By File view",
"category": "SysML",
"icon": "$(files)"
},
{
"command": "sysml.switchToSemanticView",
"title": "Switch to Semantic Model view",
"category": "SysML",
"icon": "$(symbol-class)"
},
{
"command": "sysml.jumpToDefinition",
"title": "Jump to Definition",
"category": "SysML"
},
{
"command": "sysml.restartServer",
"title": "Restart Language Server",
"category": "SysML",
"icon": "$(debug-restart)"
},
{
"command": "sysml.refreshVisualization",
"title": "Refresh Visualization",
"category": "SysML",
"icon": "$(refresh)"
},
{
"command": "sysml.showTypeHierarchy",
"title": "Show Type Hierarchy",
"category": "SysML",
"icon": "$(type-hierarchy)"
},
{
"command": "sysml.showCallHierarchy",
"title": "Show Call Hierarchy",
"category": "SysML",
"icon": "$(call-hierarchy)"
},
{
"command": "sysml.showFeatureInspector",
"title": "Show Feature Inspector",
"category": "SysML",
"icon": "$(inspect)"
},
{
"command": "sysml.showModelDashboard",
"title": "Show Model Dashboard",
"category": "SysML",
"icon": "$(dashboard)"
},
{
"command": "sysml.showSysRunner",
"title": "Play SysML World — Learn SysML v2",
"category": "SysML",
"icon": "$(game)"
},
{
"command": "sysml.visualizePackage",
"title": "Visualize Package",
"category": "SysML",
"icon": "$(preview)"
}
],
"menus": {
"editor/context": [
{
"command": "sysml.showFeatureInspector",
"when": "resourceLangId == sysml",
"group": "sysml@1"
}
],
"view/item/context": [
{
"command": "sysml.visualizePackage",
"when": "view == sysmlModelExplorer && viewItem == sysmlPackage",
"group": "inline"
},
{
"command": "sysml.showModelDashboard",
"when": "view == sysmlModelExplorer && viewItem == sysmlPackage",
"group": "inline"
},
{
"command": "sysml.visualizePackage",
"when": "view == sysmlModelExplorer && viewItem == sysmlPackage",
"group": "sysml@1"
},
{
"command": "sysml.showModelDashboard",
"when": "view == sysmlModelExplorer && viewItem == sysmlPackage",
"group": "sysml@2"
}
],
"editor/title": [
{
"command": "sysml.showVisualizer",
"when": "resourceLangId == sysml",
"group": "navigation@2",
"icon": "$(preview)"
}
],
"view/title": [
{
"command": "sysml.switchToFileView",
"when": "view == sysmlModelExplorer && sysml.hasWorkspace && sysml.workspaceViewMode == bySemantic",
"group": "navigation"
},
{
"command": "sysml.switchToSemanticView",
"when": "view == sysmlModelExplorer && sysml.hasWorkspace && sysml.workspaceViewMode == byFile",
"group": "navigation"
},
{
"command": "sysml.refreshModelTree",
"when": "view == sysmlModelExplorer",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "sysml.visualizePackage",
"when": "false"
},
{
"command": "sysml.switchToFileView",
"when": "false"
},
{
"command": "sysml.switchToSemanticView",
"when": "false"
},
{
"command": "sysml.formatDocument",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.validateModel",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.changeVisualizerView"
},
{
"command": "sysml.showTypeHierarchy",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.showCallHierarchy",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.showFeatureInspector",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.showModelDashboard",
"when": "resourceLangId == sysml"
},
{
"command": "sysml.showSysRunner",
"when": "false"
}
],
"explorer/context": [
{
"command": "sysml.visualizeFolder",
"when": "explorerResourceIsFolder",
"group": "sysml@1"
},
{
"command": "sysml.visualizeFolder",
"when": "resourceExtname == .sysml",
"group": "sysml@1"
},
{
"command": "sysml.visualizeFolderWithView",
"when": "explorerResourceIsFolder",
"group": "sysml@2"
},
{
"command": "sysml.visualizeFolderWithView",
"when": "resourceExtname == .sysml",
"group": "sysml@2"
},
{
"command": "sysml.showModelDashboard",
"when": "resourceExtname == .sysml",
"group": "sysml@3"
}
]
},
"views": {
"explorer": [
{
"id": "sysmlModelExplorer",
"name": "SysML Model Explorer",
"when": "sysml.modelLoaded"
},
{
"id": "sysmlFeatureExplorer",
"name": "SysML Feature Explorer",
"when": "sysml.modelLoaded"
}
]
},
"viewsWelcome": [
{
"view": "sysmlModelExplorer",
"contents": "No SysML model loaded.\n[Open SysML File](command:workbench.action.files.openFile)"
}
],
"configuration": {
"title": "SysML v2.0",
"properties": {
"sysml.validation.enabled": {
"type": "boolean",
"default": true,
"description": "Enable SysML model validation"
},
"sysml.format.indentSize": {
"type": "number",
"default": 4,
"description": "Number of spaces for indentation"
},
"sysml.visualization.defaultView": {
"type": "string",
"enum": [
"sysml",
"tree",
"elk",
"bdd",
"package",
"ibd",
"graph",
"hierarchy",
"sequence",
"activity",
"state",
"usecase"
],
"default": "sysml",
"description": "Default view to load when opening the SysML Model Visualizer"
},
"sysml.export.defaultScale": {
"type": "number",
"enum": [
1,
2,
3,
4
],
"default": 2,
"markdownDescription": "Default scale factor for PNG exports. Higher values produce larger, higher-quality images.\n- 1x: Original size\n- 2x: Double size (default, good quality)\n- 3x: Triple size (high quality)\n- 4x: Quadruple size (very high quality, large files)"
},
"sysmlLanguageServer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the SysML language server."
},
"sysml.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Maximum number of problems reported per file."
},
"sysml.library.path": {
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Absolute path to a SysML v2 standard library directory (e.g. from the [SysML-v2-Release](https://github.com/Systems-Modeling/SysML-v2-Release) repo). Leave empty to use the bundled library. The directory should contain `Kernel Libraries/`, `Systems Library/`, and optionally `Domain Libraries/`."
},
"sysml.inlayHints.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable inlay hints from the SysML language server. When enabled, the server shows inline type annotations next to identifiers. **Note:** this can interfere with renaming and editing identifiers — disable if you experience editing issues."
},
"sysml.workspace.preloadOnOpen": {
"type": "string",
"enum": [
"always",
"workspaceOnly",
"never"
],
"default": "workspaceOnly",
"markdownDescription": "Control when the LSP server pre-parses all `.sysml` / `.kerml` files in the workspace for cross-file navigation (go-to-definition, find references).\n- **always**: Pre-parse on every folder or workspace open\n- **workspaceOnly** *(default)*: Pre-parse only when a `.code-workspace` file is opened\n- **never**: Never pre-parse — files are parsed lazily when opened"
},
"sysml.workspace.excludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Glob patterns for directories to exclude from workspace pre-parsing. These are matched against directory **names** (not full paths).\n\nExamples: `temp`, `archive`, `*.bak`\n\nThe following directories are always excluded: `node_modules`, `.git`, `dist`, `out`, `.vscode`."
}
}
},
"mcpServerDefinitionProviders": [
{
"id": "sysml-v2-mcp",
"label": "SysML v2 Model Context"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile && npm run build:webview-assets",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"test:unit": "npm run compile && mocha --ui tdd --require src/test/register-vscode-mock.cjs 'out/test/**/*.test.js'",
"build:webview-assets": "node ./scripts/copy-webview-assets.js",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"coverage": "c8 --reporter=text --reporter=html npm run test",
"package": "vsce package --allow-missing-repository",
"package:install": "npm run package && code --install-extension sysml-v2-support-$(node -p \"require('./package.json').version\").vsix",
"clean": "rimraf out",
"lsp:local": "cd ../sysml-v2-lsp && npm run clean && npm run package:server && cd ../VSCode_SysML_Extension && npm install ../sysml-v2-lsp/sysml-v2-lsp-$(node -p \"require('../sysml-v2-lsp/package.json').version\").tgz --save-exact && npm run compile",
"lsp:npm": "npm install sysml-v2-lsp@$(node -p \"require('../sysml-v2-lsp/package.json').version\") --save-exact && npm run compile",
"lsp:which": "node -e \"const p=require('./package.json').dependencies['sysml-v2-lsp']; console.log(p.startsWith('file:') ? 'local: '+p : 'npm: '+p)\""
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "^25.6.0",
"@types/vscode": "^1.99.0",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.2",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.9.1",
"c8": "^11.0.0",
"cytoscape": "^3.33.2",
"cytoscape-elk": "^2.3.0",
"cytoscape-svg": "^0.4.0",
"d3": "^7.9.0",
"eslint": "^10.2.0",
"glob": "^13.0.0",
"mocha": "^11.0.0",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"typescript": "^6.0.2"
},
"dependencies": {
"elkjs": "^0.11.0",
"sysml-v2-lsp": "0.17.0",
"vscode-languageclient": "^9.0.1"
},
"overrides": {
"brace-expansion": "^5.0.5",
"diff": "^8.0.3",
"glob": "^13.0.0",
"serialize-javascript": "^7.0.3"
}
}