forked from JacksonKearl/vscode-sonic-pi
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
307 lines (307 loc) · 8.22 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
{
"name": "sonic-pi-extension",
"displayName": "Sonic Pi Extension",
"publisher": "s00500",
"description": "Language support and code running for Sonic Pi scripts",
"preview": true,
"version": "0.1.0",
"repository": {
"url": "https://github.com/s00500/vscode-sonic-pi"
},
"scripts": {
"build":"tsc"
},
"icon": "img/icon.png",
"engines": {
"vscode": "^1.58.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:sonic-pi",
"onCommand:vscode-sonic-pi.openExamples",
"onCommand:vscode-sonic-pi.openTutorial",
"onCommand:vscode-sonic-pi.startserver",
"onCommand:vscode-sonic-pi.run",
"onCommand:vscode-sonic-pi.checkInstall",
"onCommand:vscode-sonic-pi.runCell",
"onCommand:vscode-sonic-pi.runselected",
"onCommand:vscode-sonic-pi.newNotebook",
"onNotebook:sonic-pi-book"
],
"main": "./out/extension.js",
"contributes": {
"menus": {
"file/newFile": [
{
"command": "vscode-sonic-pi.newNotebook",
"group": "notebook"
}
]
},
"walkthroughs": [
{
"id": "vscode-sonic-pi.walkthrough",
"title": "Begin using Sonic Pi in VS Code",
"description": "Learn how to set up Sonic Pi in VS Code and see some examples for getting started with Sonic Pi development",
"steps": [
{
"id": "vscode-sonic-pi.checkInstall",
"title": "Verify your Sonic Pi installation",
"description": "VS Code for Sonic Pi requires Sonic Pi to be installed on your system.\n[Check your Installation](command:vscode-sonic-pi.checkInstall)\nIf you haven't yet downloaded Sonic Pi, go here to [download it now](https://sonic-pi.net/)",
"completionEvents": [
"onContext:sonicPiInstalled"
],
"media": {
"image": "img/sonic-pi.png",
"altText": "Sonic Pi icon"
}
},
{
"id": "vscode-sonic-pi.openTutorial",
"title": "Open Sonic Pi Tutorial",
"description": "Get started with the tutorial for using Sonic Pi in VS Code\n[Open Tutorial](command:vscode-sonic-pi.openTutorial)",
"media": {
"image": "img/sonic-pi.png",
"altText": "Sonic Pi icon"
}
},
{
"id": "vscode-sonic-pi.openExamples",
"title": "Open Sonic Pi Examples",
"description": "Try out some examples of Sonic Pi scripts\n[Open Examples](command:vscode-sonic-pi.openExamples)",
"media": {
"image": "img/sonic-pi.png",
"altText": "Sonic Pi icon"
}
}
]
}
],
"notebooks": [
{
"type": "sonic-pi-book",
"displayName": "Sonic Pi",
"selector": [
{
"filenamePattern": "*.pibook"
}
]
}
],
"languages": [
{
"id": "sonic-pi",
"aliases": [
"Sonic Pi",
"sonic-pi"
],
"extensions": [
"pi"
],
"configuration": "./language-configuration.json"
}
],
"commands": [
{
"command": "vscode-sonic-pi.startserver",
"title": "Start Server",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.checkInstall",
"title": "Check Install",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.newNotebook",
"title": "Create new Sonic Pi notebook",
"shortTitle": "Sonic Pi Book",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.openExamples",
"title": "Open Examples",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.openTutorial",
"title": "Open Tutorial",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.run",
"title": "Run",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.runCell",
"title": "Run Notebook Cell",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.runselected",
"title": "Run selected text",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.stop",
"title": "Stop",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.stopNotebook",
"title": "Stop Notebook",
"category": "Sonic Pi"
},
{
"command": "vscode-sonic-pi.togglerecording",
"title": "Toggle recording",
"category": "Sonic Pi"
}
],
"keybindings": [
{
"command": "vscode-sonic-pi.run",
"key": "F5",
"when": "editorLangId=='sonic-pi' && notebookType!='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.run",
"key": "alt+r",
"when": "editorLangId=='sonic-pi' && notebookType!='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.runCell",
"key": "F5",
"when": "editorLangId=='sonic-pi' && notebookType=='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.runCell",
"key": "alt+r",
"when": "editorLangId=='sonic-pi' && notebookType=='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.stopNotebook",
"key": "alt+s",
"when": "notebookType=='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.runselected",
"key": "alt+t",
"when": "editorLangId=='sonic-pi' && notebookType!='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.stop",
"key": "alt+s",
"when": "editorLangId=='sonic-pi' && notebookType!='sonic-pi-book'"
},
{
"command": "vscode-sonic-pi.togglerecording",
"key": "shift+alt+r",
"when": "editorLangId=='sonic-pi'"
}
],
"configuration": {
"title": "Sonic Pi",
"properties": {
"vscode-sonic-pi.sonicPiRootDirectory": {
"type": "string",
"description": "Set Sonic Pi installation directory.\nOnly use this if the default does not work for you."
},
"vscode-sonic-pi.launchSonicPiServerAutomatically": {
"type": "string",
"enum": [
"ruby",
"start",
"never",
"custom"
],
"enumDescriptions": [
"Start the server when there is a ruby file open in the editor",
"Start the server when starting vscode",
"Do not start the server automatically (must launch it manually through the Sonic Pi: Start Server command)",
"Start the server when opening a custom file extension - enter in the Launch Sonic Pi Server Custom Extension setting"
],
"default": "ruby",
"description": "Launch Sonic Pi Server automatically when..."
},
"vscode-sonic-pi.launchSonicPiServerCustomExtension": {
"type": "string",
"description": "If the Launch server automatically setting is set to custom, what extension triggers the launch?"
},
"vscode-sonic-pi.runFileWhenRunSelectedIsEmpty": {
"type": "string",
"enum": [
"always",
"never"
],
"description": "If there is no selection when Run selected is triggered, run the whole file"
},
"vscode-sonic-pi.invertStereo": {
"type": "boolean",
"default": false,
"description": "Invert stereo"
},
"vscode-sonic-pi.forceMono": {
"type": "boolean",
"default": false,
"description": "Force mono output"
},
"vscode-sonic-pi.safeMode": {
"type": "boolean",
"default": true,
"description": "Synth argument checking functions.\nIf disabled, certain synth opt values may\ncreate unexpectedly loud or uncomfortable sounds."
},
"vscode-sonic-pi.logAutoscroll": {
"type": "boolean",
"default": true,
"description": "Autoscroll the log"
},
"vscode-sonic-pi.logClearOnRun": {
"type": "boolean",
"default": true,
"description": "Clear the log when executing a run"
},
"vscode-sonic-pi.flashBackgroundColor": {
"type": "string",
"default": "rgba(255,20,147,1.0)",
"description": "Background flash color when running code"
},
"vscode-sonic-pi.flashTextColor": {
"type": "string",
"default": "rgba(255,255,255,1.0)",
"description": "Text flash color when running code"
}
}
},
"grammars": [
{
"language": "sonic-pi",
"scopeName": "source.sonic-pi",
"path": "./syntaxes/sonic-pi.tmLanguage.json"
}
]
},
"devDependencies": {
"@types/chai": "^4.2.15",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"@types/vscode": "^1.58.0",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"chai": "^4.3.4",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"mocha": "^8.3.2",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
},
"dependencies": {
"osc-js": "^2.1.0",
"utf8": "^3.0.0",
"uuid": "^8.1.0"
}
}