forked from kindohm/vscode-tidalcycles
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
397 lines (397 loc) · 15.6 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
{
"name": "vscode-tidalcycles",
"displayName": "TidalCycles for VSCode",
"description": "TidalCycles support in VSCode",
"version": "1.4.0",
"publisher": "tidalcycles",
"icon": "images/icon128.png",
"repository": "https://github.com/tidalcycles/vscode-tidalcycles",
"license": "GPL-3.0",
"engines": {
"vscode": "^1.30.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:tidal.eval",
"onCommand:tidal.evalMulti",
"onCommand:tidal.hush",
"onCommand:tidal.codehelp.reload",
"onCommand:tidal.shortcut.no1",
"onCommand:tidal.shortcut.no2",
"onCommand:tidal.shortcut.no3",
"onCommand:tidal.shortcut.no4",
"onCommand:tidal.shortcut.no5",
"onCommand:tidal.shortcut.no6",
"onCommand:tidal.shortcut.no7",
"onCommand:tidal.shortcut.no8",
"onCommand:tidal.shortcut.no9",
"onLanguage:haskell",
"onView:tidalcycles-soundbrowser-sounds",
"onView:tidalcycles-soundbrowser"
],
"main": "./out/src/main",
"contributes": {
"commands": [
{
"command": "tidal.eval",
"title": "Tidal Eval"
},
{
"command": "tidal.evalMulti",
"title": "Tidal Eval Multiline"
},
{
"command": "tidal.hush",
"title": "Tidal Hush"
},
{
"command": "tidal.shush",
"title": "Tidal Shush"
},
{
"command": "tidal.codehelp.reload",
"title": "Tidal Codehelp Reload"
},
{
"command": "tidal.shortcut",
"title": "Tidal Shortcut with arguments"
},
{
"command": "tidal.shortcut.no1",
"title": "Tidal Shortcut #1",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no2",
"title": "Tidal Shortcut #2",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no3",
"title": "Tidal Shortcut #3",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no4",
"title": "Tidal Shortcut #4",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no5",
"title": "Tidal Shortcut #5",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no6",
"title": "Tidal Shortcut #6",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no7",
"title": "Tidal Shortcut #7",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no8",
"title": "Tidal Shortcut #8",
"category": "Tidal Shortcuts"
},
{
"command": "tidal.shortcut.no9",
"title": "Tidal Shortcut #9",
"category": "Tidal Shortcuts"
},
{
"command": "tidalcycles.sounds.play",
"title": "Play a sound file",
"category": "Tidal Sounds",
"icon": {
"dark": "images/material-icons/play.svg",
"light": "images/material-icons/play_lt.svg"
}
},
{
"command": "tidalcycles.sounds.copytoclipboard",
"title": "Copy sound name to clipboard",
"category": "Tidal Sounds",
"icon": {
"dark": "images/material-icons/clipboard.svg",
"light": "images/material-icons/clipboard_lt.svg"
}
},
{
"command": "tidalcycles.sounds.insertineditor",
"title": "Insert sound name in editor",
"category": "Tidal Sounds",
"icon": {
"dark": "images/material-icons/arrowr.svg",
"light": "images/material-icons/arrowr_lt.svg"
}
},
{
"command": "tidalcycles.sounds.stop",
"title": "Stop all sound previews",
"category": "Tidal Sounds",
"icon": {
"dark": "images/material-icons/stop.svg",
"light": "images/material-icons/stop_lt.svg"
}
}
],
"keybindings": [
{
"command": "tidal.eval",
"key": "Shift+Enter",
"when": "resourceExtname == '.tidal'"
},
{
"command": "tidal.evalMulti",
"key": "Ctrl+Enter",
"when": "resourceExtname == '.tidal'"
},
{
"command": "tidal.hush",
"key": "Ctrl+Alt+H",
"when": "resourceExtname == '.tidal'"
},
{
"command": "tidalcycles.sounds.play",
"key": "Space",
"when": "listFocus && listHasSelectionOrFocus"
},
{
"command": "tidalcycles.sounds.stop",
"key": "Escape",
"when": "listFocus && listHasSelectionOrFocus"
}
],
"configuration": {
"type": "object",
"title": "TidalCycles Configuration",
"properties": {
"tidalcycles.bootTidalPath": {
"type": "string",
"default": "",
"description": "The file system path to a file that contains Tidal bootup code."
},
"tidalcycles.feedbackColor": {
"type": "string",
"default": "rgba(100,250,100,0.3)",
"description": "The highlight color to use when evaluating Tidal code."
},
"tidalcycles.ghciPath": {
"type": "string",
"default": "ghci",
"description": "The path or command used to run GHCi."
},
"tidalcycles.randomMessageProbability": {
"type": "number",
"default": 0,
"description": "Probability between 0 and 1 of whether a random message will be shown per eval in the output."
},
"tidalcycles.randomMessages": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "An array of strings of random messages."
},
"tidalcycles.showEvalCount": {
"type": "boolean",
"default": false,
"description": "Show an incremented count of evaluations in the console output on each eval."
},
"tidalcycles.evalCountPrefix": {
"type": "string",
"default": "Evals: ",
"description": "The text to write just before the eval count number."
},
"tidalcycles.showGhciOutput": {
"type": "boolean",
"default": true,
"description": "Display the standard output from GHCi in the console."
},
"tidalcycles.showOutputInConsoleChannel": {
"type": "boolean",
"default": true,
"description": "Show Tidal output in a VS Code output panel."
},
"tidalcycles.useBootFileInCurrentDirectory": {
"type": "boolean",
"default": false,
"description": "Use a BootTidal.hs file located in the current folder or first folder of the opened workspace."
},
"tidalcycles.useStackGhci": {
"type": "boolean",
"default": false,
"description": "Use the GHCi instance provided by Stack in the current folder. If false, use the system-wide GHCi path."
},
"tidalcycles.shortcuts.no1": {
"type": "string",
"default": "d#s# $ silence",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #1` extension command is executed."
},
"tidalcycles.shortcuts.no2": {
"type": "string",
"default": "mute #s#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #2` extension command is executed."
},
"tidalcycles.shortcuts.no3": {
"type": "string",
"default": "unmute #s#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #3` extension command is executed."
},
"tidalcycles.shortcuts.no4": {
"type": "string",
"default": "solo #s#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #4` extension command is executed."
},
"tidalcycles.shortcuts.no5": {
"type": "string",
"default": "unsolo #s#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #5` extension command is executed."
},
"tidalcycles.shortcuts.no6": {
"type": "string",
"default": "mapM unmute [1..12]\r\nmapM unsolo [1..12]",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #6` extension command is executed."
},
"tidalcycles.shortcuts.no7": {
"type": "string",
"default": "xfadeIn #s# 4 $ #c#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #7` extension command is executed."
},
"tidalcycles.shortcuts.no8": {
"type": "string",
"default": "xfadeIn #s# 4 $ silence",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #8` extension command is executed."
},
"tidalcycles.shortcuts.no9": {
"type": "string",
"default": "d#s# $ ((1/#s#) ~>) $ s \"bd\" # speed #s#",
"markdownDescription": "The tidal command to execute when the `Tidal Shortcut #9` extension command is executed."
},
"tidalcycles.shortcuts.showInConsole": {
"type": "boolean",
"default": false,
"markdownDescription": "Show the shortcut commands that are executed in the console. Useful for debugging."
},
"tidalcycles.codehelp.commands.extra": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra files to read command definitions for hover and completion support. This will be appended to the internal file and thus override any existing definitions."
},
"tidalcycles.codehelp.hover.level": {
"type": "string",
"default": "Full",
"enum": [
"Off",
"Minimum",
"No examples or links",
"Full"
],
"description": "How much information to show for hovering Tidal code info."
},
"tidalcycles.codehelp.completion.level": {
"type": "string",
"default": "Full",
"enum": [
"Off",
"Minimum",
"No examples or links",
"Full"
],
"description": "How much information to show for Tidal code completion info."
},
"tidalcycles.sounds.paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Sound paths to display in the sound browser. Set this e.g. to your Dirt-Samples directory."
},
"tidalcycles.sounds.playonselection": {
"type": "boolean",
"default": true,
"description": "Play the sounds you click on. If you set this to false you have to explicitly click the play button in the sounds browser."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "tidalcycles",
"title": "Tidal Cycles",
"icon": "images/tidal.svg"
}
]
},
"views": {
"tidalcycles": [
{
"id": "tidalcycles-soundbrowser-sounds",
"name": "Sounds"
}
]
},
"menus": {
"view/title": [
{
"command": "tidalcycles.sounds.stop",
"group": "navigation",
"when": "view == tidalcycles-soundbrowser-sounds"
}
],
"view/item/context": [
{
"command": "tidalcycles.sounds.insertineditor",
"group": "inline@10",
"when": "view == tidalcycles-soundbrowser-sounds && viewItem == sound || viewItem == dir"
},
{
"command": "tidalcycles.sounds.copytoclipboard",
"group": "inline@20",
"when": "view == tidalcycles-soundbrowser-sounds && viewItem == sound || viewItem == dir"
},
{
"command": "tidalcycles.sounds.play",
"group": "inline@30",
"when": "view == tidalcycles-soundbrowser-sounds && viewItem == sound"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/chai": "^4.1.6",
"@types/js-yaml": "^3.12.1",
"@types/mocha": "^5.2.5",
"@types/node": "^7.0.0",
"@types/split2": "^2.1.6",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"tslint": "^5.19.0",
"typemoq": "^2.1.0",
"typescript": "^3.6.2",
"vscode": "^1.1.30"
},
"dependencies": {
"command-exists-promise": "^2.0.2",
"js-yaml": "^3.13.1",
"node-wav-player": "^0.1.0",
"split2": "^3.0.0"
}
}