-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
426 lines (426 loc) · 13.1 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
422
423
424
425
426
{
"name": "wollok-lsp-ide",
"displayName": "wollok-lsp-ide",
"description": "Wollok LSP IDE",
"author": "Uqbar Foundation",
"license": "LGPL-3.0",
"publisher": "uqbar",
"version": "0.4.3",
"repository": {
"type": "git",
"url": "git+https://github.com/uqbar-project/wollok-lsp-ide.git"
},
"categories": [
"Programming Languages",
"Debuggers",
"Linters",
"Testing"
],
"workspaces": [
"packages/*"
],
"keywords": [
"ide",
"wollok",
"oop",
"educative",
"objects",
"learning"
],
"icon": "images/extension/wollokIdeLogo.png",
"engines": {
"vscode": "^1.88.0"
},
"activationEvents": [
"onLanguage:wollok"
],
"capabilities": {
"referencesProvider": true,
"definitionProvider": true,
"documentSymbolProvider": true,
"workspaceSymbolProvider": true,
"documentFormattingProvider": true,
"documentRangeFormattingProvider": true,
"renameProvider": {
"prepareProvider": true
},
"hoverProvider": true
},
"main": "./out/client/src/extension",
"configurationDefaults": {
"[wollok]": {
"editor.semanticHighlighting.enabled": true
}
},
"contributes": {
"menus": {
"editor/title/run": [
{
"command": "wollok.start.repl",
"when": "resourceLangId == wollok && resourceExtname == .wlk",
"group": "navigation@1"
}
],
"commandPalette": [
{
"command": "wollok.start.repl",
"when": "resourceLangId == wollok && resourceExtname == .wlk"
}
]
},
"languages": [
{
"id": "wollok",
"icon": {
"dark": "./images/extension/wollokFile.png",
"light": "./images/extension/wollokFile.png"
},
"aliases": [
"Wollok",
"wollok"
],
"extensions": [
".wlk",
".wtest",
".wpgm",
".wlk.xt",
".wtest.xt",
".wpgm.xt"
]
}
],
"breakpoints": [
{
"language": "wollok"
}
],
"debuggers": [
{
"type": "wollok",
"label": "Wollok Debug",
"languages": [
"wollok"
],
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"target"
],
"properties": {
"target": {
"type": "object",
"description": "Program or test to run.",
"properties": {
"type": {
"type": "string",
"description": "The type of targetting.",
"enum": [
"program",
"test",
"fqn"
],
"enumDescriptions": [
"Target a program, should specify program and file",
"Target a test, should specify test, describe and file",
"Target a fully qualified name, should specify fqn"
]
},
"program": {
"type": "string",
"description": "The program's name."
},
"describe": {
"type": "string",
"description": "(optional) The describe's name."
},
"test": {
"type": "string",
"description": "The test's name."
},
"fqn": {
"type": "string",
"description": "The fully qualified name of the describe/test/program you want to run."
},
"file": {
"type": "string",
"description": "Absolute path to a Wollok file."
}
}
},
"stopOnEntry": {
"type": "boolean",
"description": "Stop on the first line of the program/test.",
"default": false
}
}
}
},
"configurationSnippets": [
{
"label": "Wollok Debug: Launch Program",
"description": "A new configuration for launching a Wollok debug session on a program",
"body": {
"type": "wollok",
"request": "launch",
"name": "${2:Launch Program}",
"target": {
"program": "\"<insert your program name here>\""
},
"file": "^\"\\${file}\""
}
},
{
"label": "Wollok Debug: Launch Test",
"description": "A new configuration for launching a Wollok debug session on a test",
"body": {
"type": "wollok",
"request": "launch",
"name": "${2:Launch Test}",
"target": {
"test": "a test name",
"describe": "a describe name"
},
"file": "^\"\\${file}\""
}
}
]
}
],
"configuration": {
"type": "object",
"title": "Wollok LSP IDE",
"properties": {
"wollokLSP.formatter.abbreviateAssignments": {
"scope": "resource",
"type": "boolean",
"description": "Abbreviate assignments",
"default": true,
"order": 0
},
"wollokLSP.formatter.maxWidth": {
"scope": "resource",
"type": "number",
"description": "Maximum width allowed in a line",
"default": 80,
"order": 1
},
"wollokLSP.cli-path": {
"scope": "resource",
"type": "string",
"description": "Path to Wollok-CLI.",
"default": "wollok",
"order": 10
},
"wollokLSP.language": {
"scope": "resource",
"type": "string",
"enum": [
"Spanish",
"English",
"Based on Local Environment"
],
"default": "Based on Local Environment",
"description": "Language used while reporting linter errors and warnings.",
"order": 11
},
"wollokLSP.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server.",
"order": 12
},
"wollokLSP.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server.",
"order": 20
},
"wollokLSP.replPortNumber": {
"scope": "resource",
"type": "number",
"default": 3000,
"description": "Port number that will be used when running the REPL.",
"order": 25
},
"wollokLSP.gamePortNumber": {
"scope": "resource",
"type": "number",
"default": 4200,
"description": "Port number that will be used when running a game.",
"order": 26
},
"wollokLSP.dynamicDiagram.openDynamicDiagramOnRepl": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Opens the dynamic diagram when running the REPL.",
"order": 30
},
"wollokLSP.dynamicDiagram.openInternalDynamicDiagram": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "If true, opens an internal dynamic diagram inside Wollok IDE. If false, it will open a new external browser.",
"order": 31
},
"wollokLSP.dynamicDiagram.millisecondsToOpenDynamicDiagram": {
"scope": "resource",
"type": "number",
"default": 1000,
"description": "Milliseconds we wait until we open Dynamic Diagram in Browser.",
"order": 32
},
"wollokLSP.dynamicDiagram.dynamicDiagramDarkMode": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "If true, opens dynamic diagram in Dark Mode. Otherwise, it uses Light Mode.",
"order": 33
},
"wollokLSP.astHighlighter.activated": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "If true, uses the AST Highlighter (complete highlighter for parameters, variables, methods, also for keywords)",
"order": 35
},
"wollokLSP.maxThreshold": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Maximum threshold in milliseconds: if an operation takes longer, it will be saved in the log file.",
"order": 40
},
"wollokLSP.verbose": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Launch CLI commands using --verbose option.",
"order": 41
},
"wollokLSP.typeSystem.enabled": {
"scope": "resource",
"type": "boolean",
"description": "Enable Type System (experimental)",
"default": false,
"order": 50
}
}
},
"commands": [
{
"command": "wollok.start.repl",
"title": "Start a new REPL session",
"icon": "$(play)",
"category": "Wollok",
"enablement": "resourceExtname == .wlk"
},
{
"command": "wollok.run.allTests",
"title": "Run all tests",
"when": "resourceExtname == .wtest",
"category": "Wollok"
},
{
"command": "wollok.init.project",
"title": "Generate a new Wollok project in current folder",
"category": "Wollok"
}
],
"keybindings": [
{
"command": "wollok.start.repl",
"icon": "$(play)",
"title": "Start a new REPL session for this file",
"key": "ctrl+r",
"mac": "cmd+r",
"when": "editorTextFocus && resourceExtname == .wlk"
},
{
"command": "wollok.run.allTests",
"key": "ctrl+r",
"mac": "cmd+r",
"when": "editorTextFocus && resourceExtname == .wtest"
}
],
"semanticTokenTypes": [
{
"id": "keyword",
"superType": "type",
"description": "palabra reservada de wollok"
},
{
"id": "object",
"superType": "type",
"description": "singleton"
},
{
"id": "parameter",
"superType": "type",
"description": "parámetro de métodos o funciones"
}
],
"semanticTokenModifiers": [
{
"id": "native",
"description": "símbolo nativo de wollok"
}
]
},
"scripts": {
"check-types": "tsc --noEmit",
"compile": "rimraf ./out && yarn check-types && yarn node esbuild.js",
"compile-tests": "rimraf ./out && tsc --outDir out",
"watch": "run-p -l watch:esbuild watch:tsc",
"watch:esbuild": "yarn node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"watch:compile-tests": "rimraf ./out && tsc --outDir out --watch",
"lint": "yarn workspaces foreach -A run eslint . --fix",
"lint:fix": "cd client && eslint . --fix && cd ../server && eslint . --fix && cd ..",
"test": "yarn compile-tests && yarn lint && yarn test:e2e && yarn test:unit",
"test:e2e": "vscode-test",
"test:unit": "yarn workspaces foreach -Rpt --from '{wollok-lsp-ide-server,wollok-debug-adapter,wollok-lsp-ide-client}' run test",
"nyc": "nyc",
"build-coverage-report": "rimraf coverage-total && cpy --flat ./coverage-e2e/coverage-final.json ./coverage-total --rename=coverage-e2e.json && cpy --flat ./coverage-unit/coverage-final.json ./coverage-total --rename=coverage-unit.json && nyc merge ./coverage-total ./coverage-total/coverage.json",
"coverage": "yarn cover:unit && yarn cover:e2e",
"cover:e2e": "vscode-test --coverage --coverage-repoter=text --coverage-reporter=json --coverage-output=coverage-e2e",
"cover:unit": "c8 --reporter=json --report-dir=coverage-unit yarn test:unit",
"bundle": "yarn compile -- --production",
"package": "yarn bundle && vsce package --no-dependencies",
"vscode:prepublish": "yarn bundle",
"prepare": "husky install",
"lint-staged": "lint-staged"
},
"dependencies": {
"wollok-ts": "4.2.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/source-map-support": "^0",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/vsce": "^3.1.1",
"c8": "^10.1.2",
"cpy-cli": "^5.0.0",
"esbuild": "^0.23.1",
"eslint": "^8.35.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"nyc": "^17.1.0",
"rimraf": "^6.0.1",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"typescript": "^4.9.5",
"yarn-run-all": "^3.1.1"
},
"packageManager": "[email protected]"
}