Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
260 lines (260 loc) · 8.46 KB
/
Copy pathpackage.json
File metadata and controls
260 lines (260 loc) · 8.46 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
{
"name": "opensysml-sysml",
"displayName": "SysML v2 (OpenSysML)",
"description": "SysML v2 and KerML syntax highlighting and language support backed by the OpenSysML language server.",
"version": "0.9.2",
"publisher": "open-mbee",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/Open-MBEE/OpenSysML.git",
"directory": "editors/vscode"
},
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Programming Languages"
],
"main": "./dist/extension.js",
"activationEvents": [
"onLanguage:sysml",
"onLanguage:kerml",
"onWebviewPanel:opensysml.diagram"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "In Restricted Mode the language server is only started from `opensysml.server.path` or `PATH`, never from the workspace's own `bin/` directory, and the server settings are read from user settings only.",
"restrictedConfigurations": [
"opensysml.server.path",
"opensysml.server.args"
]
}
},
"contributes": {
"languages": [
{
"id": "sysml",
"aliases": [
"SysML v2",
"sysml"
],
"extensions": [
".sysml"
],
"configuration": "./language-configuration.json"
},
{
"id": "kerml",
"aliases": [
"KerML",
"kerml"
],
"extensions": [
".kerml"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "sysml",
"scopeName": "source.sysml",
"path": "./syntaxes/sysml.tmLanguage.json"
},
{
"language": "kerml",
"scopeName": "source.kerml",
"path": "./syntaxes/kerml.tmLanguage.json"
}
],
"configuration": {
"title": "SysML v2 (OpenSysML)",
"properties": {
"opensysml.server.path": {
"type": "string",
"default": "",
"markdownDescription": "Absolute path to the `sysml-lsp` executable. When empty, `sysml-lsp` is looked up on `PATH`."
},
"opensysml.server.args": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra arguments passed to the language server."
},
"opensysml.server.enabled": {
"type": "boolean",
"default": true,
"description": "Start the language server. Turn this off to keep syntax highlighting only."
},
"opensysml.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Trace the communication with the language server."
},
"opensysml.diagram.autoOpen": {
"type": "boolean",
"default": true,
"markdownDescription": "Open the diagram of a SysML or KerML file beside its editor as soon as the file is shown. A diagram you close stays closed for that file until you run **SysML: Open Diagram** on it again."
},
"opensysml.diagram.style": {
"type": "string",
"default": "theme",
"enum": [
"theme",
"pilot",
"cameo",
"okabe-ito",
"tol-bright",
"tol-muted",
"tol-light",
"brewer-set2",
"brewer-dark2",
"viridis",
"cividis"
],
"enumDescriptions": [
"Follow the VS Code colour theme.",
"The pilot visualizer's Standard B&W: white canvas, black text, thin dark borders, square definitions and rounded usages.",
"Cameo Systems Modeler's look: 11px Arial, pale-yellow gradient fills with thin dark borders, and a DOT export drawn in the server's cameo style.",
"The pilot look, filled by keyword family from the Okabe–Ito palette.",
"The pilot look, filled by keyword family from Paul Tol's bright palette.",
"The pilot look, filled by keyword family from Paul Tol's muted palette.",
"The pilot look, filled by keyword family from Paul Tol's light palette.",
"The pilot look, filled by keyword family from ColorBrewer Set2.",
"The pilot look, filled by keyword family from ColorBrewer Dark2.",
"The pilot look, filled by keyword family from the viridis colour map.",
"The pilot look, filled by keyword family from the cividis colour map."
],
"markdownDescription": "The look every diagram is drawn in, also chosen from the **Style** list in the diagram panel. A palette colours definitions with their keyword family's colour and usages with a lighter tint of it, the same colours the DOT and PlantUML exports take; text stays black. `cameo` draws Cameo Systems Modeler's look and asks the server for its cameo drawing style when the diagram is exported as DOT."
}
}
},
"taskDefinitions": [
{
"type": "opensysml",
"required": [
"element"
],
"properties": {
"element": {
"type": "string",
"description": "Qualified name of the element a Run or Evaluate code lens checks."
}
}
}
],
"commands": [
{
"command": "opensysml.restartServer",
"category": "SysML",
"title": "Restart Language Server"
},
{
"command": "opensysml.openDiagram",
"category": "SysML",
"title": "Open Diagram",
"icon": "$(open-preview)"
},
{
"command": "opensysml.exportDiagram",
"category": "SysML",
"title": "Export Diagram"
},
{
"command": "opensysml.renderDocument",
"category": "SysML",
"title": "Render Document",
"enablement": "opensysml.renderDocumentSupported"
},
{
"command": "opensysml.runElement",
"category": "SysML",
"title": "Run Element"
}
],
"keybindings": [
{
"command": "opensysml.openDiagram",
"key": "alt+d",
"when": "editorTextFocus && (editorLangId == sysml || editorLangId == kerml) || activeWebviewPanelId == opensysml.diagram"
},
{
"command": "opensysml.openDiagram",
"key": "ctrl+shift+v",
"mac": "cmd+shift+v",
"when": "editorTextFocus && (editorLangId == sysml || editorLangId == kerml) || activeWebviewPanelId == opensysml.diagram"
}
],
"menus": {
"commandPalette": [
{
"command": "opensysml.runElement",
"when": "false"
}
],
"editor/title": [
{
"command": "opensysml.openDiagram",
"group": "navigation",
"when": "resourceLangId == sysml || resourceLangId == kerml"
},
{
"command": "opensysml.exportDiagram",
"group": "1_diagram",
"when": "resourceLangId == sysml || resourceLangId == kerml"
}
],
"editor/context": [
{
"command": "opensysml.openDiagram",
"group": "navigation@10",
"when": "editorLangId == sysml || editorLangId == kerml"
},
{
"command": "opensysml.exportDiagram",
"group": "navigation@11",
"when": "editorLangId == sysml || editorLangId == kerml"
}
],
"explorer/context": [
{
"command": "opensysml.openDiagram",
"group": "navigation@10",
"when": "resourceExtname == .sysml || resourceExtname == .kerml"
}
]
}
},
"scripts": {
"grammar": "go run ./tools/gengrammar -out syntaxes",
"build": "node esbuild.mjs",
"build:landing": "node tools/build-landing.mjs",
"watch": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p src/webview/tsconfig.json && tsc --noEmit -p src/landing/tsconfig.json",
"test": "node tools/test.mjs",
"package": "npm run typecheck && npm test && npm run build -- --production && vsce package --no-dependencies --out opensysml-sysml.vsix"
},
"dependencies": {
"elkjs": "0.12.0",
"libavoid-js": "0.4.5",
"vscode-languageclient": "9.0.1"
},
"devDependencies": {
"@types/node": "22.10.5",
"@types/vscode": "1.86.0",
"@vscode/vsce": "3.2.2",
"esbuild": "0.25.0",
"jsdom": "26.1.0",
"type-fest": "4.41.0",
"typescript": "5.7.3"
}
}