-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
package.json
282 lines (282 loc) · 8.26 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
{
"name": "magic-racket",
"displayName": "Magic Racket",
"description": "LSP support, REPL integration, and top notch syntax highlighting for the coolest of Lisps!",
"version": "0.6.7",
"activationEvents": [
"onCommand:magic-racket.loadFileInRepl",
"onCommand:magic-racket.runFile",
"onCommand:magic-racket.executeSelectionInRepl",
"onCommand:magic-racket.openRepl",
"onCommand:magic-racket.showOutputTerminal",
"onLanguage:racket"
],
"main": "./out/main.js",
"galleryBanner": {
"color": "#405DA7",
"theme": "dark"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.59.0"
},
"licence": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/Eugleo/magic-racket/",
"bugs": {
"url": "https://github.com/Eugleo/magic-racket/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/Eugleo/magic-racket.git"
},
"categories": [
"Programming Languages",
"Formatters"
],
"keywords": [
"racket",
"drracket",
"lisp",
"scheme",
"repl"
],
"publisher": "evzen-wybitul",
"author": {
"name": "Evžen Wybitul"
},
"contributes": {
"configurationDefaults": {
"[racket]": {
"editor.rulers": [
102
],
"editor.wordSeparators": "()[]{}\",'`;#|"
}
},
"languages": [
{
"id": "racket",
"aliases": [
"Racket",
"racket"
],
"extensions": [
".rkt"
],
"icon": {
"light": "images/icon.png",
"dark": "images/icon.png"
},
"configuration": "language-configuration.json"
}
],
"grammars": [
{
"language": "racket",
"scopeName": "source.racket",
"path": "./syntaxes/racket.tmLanguage.json"
}
],
"configuration": {
"title": "Magic Racket",
"properties": {
"magicRacket.languageServer.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable language server support. It is recommended to leave this turned on.",
"order": 0
},
"magicRacket.languageServer.command": {
"type": "string",
"default": "racket",
"markdownDescription": "Path to the executable that is used to launch the Racket language server.",
"order": 1
},
"magicRacket.languageServer.arguments": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"--lib",
"racket-langserver"
],
"markdownDescription": "Arguments passed to the language server executable set in `#magicRacket.languageServer.command#`.",
"order": 2
},
"magicRacket.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Enable tracing of the communication between VS Code and the language server.",
"order": 3
},
"magicRacket.general.racketPath": {
"type": "string",
"default": "racket",
"markdownDescription": "Path to the Racket executable that is used both to open REPLs and to run files."
},
"magicRacket.general.racoPath": {
"type": "string",
"default": "raco",
"markdownDescription": "Path to the `raco` executable that is used to run tests."
},
"magicRacket.REPL.arguments": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"--repl"
],
"markdownDescription": "Arguments passed into `#magicRacket.general.racketPath#` when launching a REPL."
},
"magicRacket.REPL.title": {
"type": "string",
"default": "REPL ($name)",
"markdownDescription": "Template string for the title of Racket REPLs. Variable `$name` will get replaced by the file name."
},
"magicRacket.outputTerminal.numberOfOutputTerminals": {
"type": "string",
"enum": [
"one",
"many"
],
"default": "one",
"enumDescriptions": [
"Runs every file in the same output terminal",
"Runs each file in its own output terminal"
]
},
"magicRacket.outputTerminal.sharedOutputTerminalTitle": {
"type": "string",
"default": "Racket Output",
"markdownDescription": "Specifies the title of the the shared output terminal."
},
"magicRacket.outputTerminal.outputTerminalTitle": {
"type": "string",
"default": "Output ($name)",
"markdownDescription": "Specifies the template string for the title of the file-specific output terminal. Substring `$name` will get replaced by the file name."
}
}
},
"commands": [
{
"command": "magic-racket.loadFileInRepl",
"title": "Racket: Load file in REPL",
"icon": {
"light": "images/repl-light.svg",
"dark": "images/repl-dark.svg"
}
},
{
"command": "magic-racket.runFile",
"title": "Racket: Run file in terminal",
"icon": {
"light": "images/run.svg",
"dark": "images/run.svg"
}
},
{
"command": "magic-racket.executeSelectionInRepl",
"title": "Racket: Execute line or selection in REPL"
},
{
"command": "magic-racket.openRepl",
"title": "Racket: Open the REPL for the current file"
},
{
"command": "magic-racket.showOutputTerminal",
"title": "Racket: Show the output terminal for the current file"
}
],
"menus": {
"editor/title": [
{
"when": "editorLangId == racket",
"command": "magic-racket.runFile",
"group": "navigation"
},
{
"when": "editorLangId == racket",
"command": "magic-racket.loadFileInRepl",
"group": "navigation"
}
],
"editor/context": [
{
"when": "resourceLangId == racket && editorHasSelection",
"command": "magic-racket.executeSelectionInRepl",
"group": "z_commands"
}
]
},
"keybindings": [
{
"command": "magic-racket.executeSelectionInRepl",
"key": "Alt+Enter",
"when": "resourceLangId == racket && editorTextFocus"
},
{
"key": "Alt+\\",
"mac": "Alt+\\",
"command": "editor.action.insertSnippet",
"when": "resourceLangId == racket && editorTextFocus",
"args": {
"langId": "racket",
"name": "lambda"
}
}
],
"snippets": [
{
"language": "racket",
"path": "./snippets/racket.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run build-base -- --minify",
"package": "vsce package -o magic-racket.vsix",
"build-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
"build": "npm run build-base -- --sourcemap",
"watch": "npm run build-base -- --sourcemap --watch",
"compile": "tsc -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@vscode/vsce": "^2.24.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "14.x",
"@types/shell-quote": "^1.7.1",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"esbuild": "^0.17.12",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"glob": "^7.1.7",
"mocha": "^10.2.0",
"prettier": "^2.3.2",
"typescript": "^4.3.2",
"vscode-test": "^1.6.1"
},
"dependencies": {
"shell-quote": "^1.8.0",
"vscode-languageclient": "^7.0.0"
}
}