-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpackage.json
More file actions
291 lines (291 loc) · 7.79 KB
/
package.json
File metadata and controls
291 lines (291 loc) · 7.79 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
{
"name": "rascalmpl",
"displayName": "Rascal Metaprogramming Language",
"description": "Metaprogramming made easy",
"publisher": "usethesource",
"keywords": [
"metaprogramming",
"DSL",
"parsing",
"source code analysis"
],
"icon": "assets/images/rascal-logo-v2.1.png",
"galleryBanner": {
"color": "#ffffff",
"theme": "light"
},
"version": "0.13.1-head",
"engines": {
"vscode": "^1.90.0",
"node": ">=20.9.0"
},
"type": "commonjs",
"license": "BSD-2-Clause",
"repository": {
"type": "git",
"url": "git+https://github.com/usethesource/rascal-language-servers.git"
},
"bugs": {
"url": "https://github.com/usethesource/rascal-language-servers/issues"
},
"sponsor": {
"url": "https://github.com/sponsors/usethesource/"
},
"dependencies": {
"tar": "7.x",
"vscode-languageclient": "9.x",
"yauzl": "3.x"
},
"categories": [
"Programming Languages"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "rascalmpl.createTerminal",
"title": "Create Rascal Terminal"
},
{
"command": "rascalmpl.runMain",
"title": "Start Rascal Terminal, Import module and Run main function"
},
{
"command": "rascalmpl.importModule",
"title": "Start Rascal Terminal and Import this module"
},
{
"command": "rascalmpl.startDebuggerForRepl",
"title": "Start Rascal debugger for REPL",
"icon": "$(debug)"
},
{
"command": "rascalmpl.copySourceLocation",
"title": "Copy Path as Rascal Location",
"icon": "$(copy)"
}
],
"menus": {
"commandPalette": [
{
"command": "rascalmpl.startDebuggerForRepl",
"when": "false"
},
{
"command": "rascalmpl.copySourceLocation",
"when": "false"
}
],
"view/item/context": [
{
"command": "rascalmpl.startDebuggerForRepl",
"when": "view == rascalmpl-debugger-view && viewItem == 'canStartDebugging'",
"group": "inline"
}
],
"explorer/context": [
{
"command": "rascalmpl.copySourceLocation",
"group": "6_copypath@21"
}
]
},
"languages": [
{
"id": "rascalmpl",
"aliases": [
"Rascal MPL"
],
"extensions": [
".rsc"
],
"icon": {
"light": "./assets/images/rascal-logo-v2.1.svg",
"dark": "./assets/images/rascal-logo-v2.1.svg"
},
"configuration": "./language-configuration.json"
},
{
"id": "parametric-rascalmpl",
"aliases": [
"Parametric Rascal LSP"
],
"extensions": [],
"configuration": "./language-configuration.json"
}
],
"configurationDefaults": {
"[rascalmpl]": {
"editor.semanticHighlighting.enabled": true
},
"[parametric-rascalmpl]": {
"editor.semanticHighlighting.enabled": true
}
},
"views": {
"explorer": [
{
"id": "rascalmpl-configuration-view",
"name": "Rascal Configuration",
"icon": "./assets/images/rascal-logo-v2.1.svg",
"visibility": "collapsed"
}
],
"debug": [
{
"id": "rascalmpl-debugger-view",
"name": "Debug Rascal Terminal",
"icon": "$(debug)",
"visibility": "visible"
}
]
},
"viewsWelcome": [
{
"view": "rascalmpl-configuration-view",
"contents": "No Rascal Projects found in the workspace"
},
{
"view": "rascalmpl-debugger-view",
"contents": "No active Rascal REPLs found"
}
],
"breakpoints": [
{
"language": "rascalmpl"
}
],
"debuggers": [
{
"languages": [
"rascalmpl"
],
"type": "rascalmpl",
"label": "Rascal debugger",
"initialConfigurations": [
{
"type": "rascalmpl",
"request": "attach",
"name": "Rascal debugger"
}
],
"configurationSnippets": [
{
"label": "Rascal debugger",
"description": "Rascal debugger",
"body": {
"type": "rascalmpl",
"request": "attach",
"name": "Rascal debugger"
}
}
]
}
],
"semanticTokenScopes": [
{
"language": "rascalmpl",
"scopes": {
"ambiguity": [
"invalid"
],
"uncategorized": [
"meta.embedded"
]
}
},
{
"language": "parametric-rascalmpl",
"scopes": {
"ambiguity": [
"invalid"
],
"uncategorized": [
"meta.embedded"
]
}
}
],
"semanticTokenTypes": [
{
"id": "ambiguity",
"superType": "string",
"description": "Rascal ambiguous parts of a parse tree"
},
{
"id": "uncategorized",
"description": "Absence of highlighting"
}
],
"configuration": {
"title": "Rascal",
"properties": {
"rascal.interpreter.maxHeapSize": {
"type": [
"number",
"null"
],
"default": null,
"description": "Provides the maximum heap space, in MB, for the Rascal interpreter"
},
"rascal.interpreter.stackSize": {
"type": [
"number",
"null"
],
"default": null,
"description": "Provides the per-thread stack size, in MB, for the Rascal interpreter"
},
"rascal.terminal.name.originFormat": {
"type": "string",
"default": "Project root",
"enum": [
"Project root",
"Module (qualified)",
"Module (unqualified)"
],
"markdownDescription": "Specifies the format of `<origin>` in Rascal terminal name `Rascal terminal (<origin>)`"
}
}
}
},
"scripts": {
"lsp4j:package": "cp ../rascal-lsp/target/rascal-lsp*.jar assets/jars/rascal-lsp.jar && cp ../rascal-lsp/target/lib/*.jar assets/jars/",
"vscode:prepublish": "npm run lsp4j:package && npm run package",
"esbuild-base": "npx esbuild ./src/extension.ts --bundle --packages=bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"package": "npm run esbuild-base -- --minify",
"compile-lib": "npx tsc -p . --outDir lib --declaration true",
"compile-tests": "npx tsc -p . --outDir out",
"watch-tests": "npx tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "npx eslint src --ext ts",
"normalTest": "npx mocha ./out/test/normal-suite/",
"test": "node ./out/test/runVSCodeTests.js",
"license-check": "npx license-check-and-add check -f license-config.json",
"license-add": "npx license-check-and-add add -f license-config.json"
},
"devDependencies": {
"@tsconfig/node20": "20.x",
"@tsconfig/strictest": "2.x",
"@types/chai": "4.x",
"@types/mocha": "10.x",
"@types/node": "20.x",
"@types/tar": "6.x",
"@types/vscode": "1.90.0",
"@types/yauzl": "2.x",
"@typescript-eslint/eslint-plugin": "7.x",
"@typescript-eslint/parser": "7.x",
"@vscode/test-electron": "2.x",
"@vscode/vsce": "3.x",
"chai": "4.x",
"esbuild": "0.27.x",
"eslint": "8.x",
"eslint-plugin-editorconfig": "4.x",
"license-check-and-add": "4.x",
"mocha": "11.x",
"typescript": "5.x",
"vscode-extension-tester": "8.x"
}
}