-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
338 lines (338 loc) · 11.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
{
"name": "livecode",
"displayName": "LiveCode for python",
"description": "Real-time python variable evaluation",
"version": "1.3.10",
"publisher": "xirider",
"engines": {
"vscode": "^1.31.0"
},
"categories": [
"Other",
"Debuggers"
],
"activationEvents": [
"onCommand:extension.currentlivecodeSession",
"onCommand:extension.newlivecodeSession",
"onCommand:extension.newlivecodeSessionOnHighlightedCode"
],
"main": "./out/src/extension",
"contributes": {
"menus": {
"editor/title": [
{
"when": "editorLangId == python && !livecode && editorHasSelection && config.livecode.showIcons",
"command": "extension.newlivecodeSession",
"alt": "extension.currentlivecodeSession",
"group": "navigation"
},
{
"when": "editorLangId == python && !livecode && !editorHasSelection && config.livecode.showIcons",
"command": "extension.currentlivecodeSession",
"alt": "extension.newlivecodeSession",
"group": "navigation"
},
{
"when": "livecode && config.livecode.showIcons",
"command": "extension.closelivecode",
"group": "navigation"
}
],
"editor/title/context": [
{
"command": "extension.currentlivecodeSession"
},
{
"command": "extension.newlivecodeSession"
}
],
"editor/context": [
{
"command": "extension.newlivecodeSessionOnHighlightedCode",
"when": "editorHasSelection"
}
]
},
"configuration": {
"type": "object",
"title": "livecode configuration",
"properties": {
"livecode.showIcons": {
"type": "boolean",
"default": true
},
"livecode.skipLandingPage": {
"type": "boolean",
"default": false
},
"livecode.showFooter": {
"type": "boolean",
"default": true
},
"livecode.customCSS": {
"type": "string",
"default": null,
"description": "injected into livecode each run. Use 'Developer: Open Webview Developer Tools' command to inspect livecode html"
},
"livecode.delay": {
"type": "number",
"default": 300,
"description": "delay in milliseconds before executing code after typing"
},
"livecode.restartDelay": {
"type": "number",
"default": 300,
"description": "when restart mode is active we add this to delay to delay longer"
},
"livecode.inlineResults": {
"type": "boolean",
"default": false,
"description": "whether to show errors / results / prints inline. (Currently just error icons)"
},
"livecode.pyGuiLibraries": {
"type": "array",
"default": [
"matplotlib",
"tkinter",
"kivy",
"pyforms",
"PyQt4",
"PyQt5",
"wx",
"pyside",
"plotly",
"ggplot",
"bokeh",
"ppb",
"PySimpleGUI",
"pyglet"
],
"description": "livecode enters restart mode when one of these libraries are imported. Process is restarted at end of each run so GUI window is updated"
},
"livecode.whenToExecute": {
"type": "string",
"enum": [
"afterDelay",
"onSave",
"onKeybinding"
],
"enumDescriptions": [
"after a delay (change livecode.delay to control the amount)",
"on save",
"on keyboard shortcut"
],
"default": "afterDelay",
"description": "When to execute your code"
},
"livecode.show_to_level": {
"type": "number",
"default": 5,
"description": "2 shows x=1 and x=[1,2], provides option to expand deeply nested data like x=[[1]]"
},
"livecode.max_string_length": {
"type": "number",
"default": 70,
"description": "strings over X characters are truncated with an option to expand"
},
"livecode.printResultPlacement": {
"type": "string",
"enum": [
"top",
"bottom"
],
"enumDescriptions": [
"print results appear on top",
"print results appear on bottom"
],
"default": "bottom"
},
"livecode.pythonPath": {
"type": "string",
"default": null,
"description": "livecode uses the path you have defined in the official python extension. If not present then this setting will be used. If this setting is also empty then on windows py will be used, or python3 otherwise"
},
"livecode.envFile": {
"type": "string",
"default": null,
"description": "Absolute path to a file containing environment variable definitions. If not set the setting from the python extension will be used, or ${workspaceFolder}/.env if the python extension is not installed"
},
"livecode.pythonOptions": {
"type": "array",
"default": [
"-u"
],
"description": "default -u to see prints in real-time. See https://docs.python.org/3/using/cmdline.html#miscellaneous-options for other options. Changing this setting not reccomended"
},
"livecode.defaultFilterVars": {
"type": "array",
"default": [],
"description": "Any variables with these names are not shown in livecode variable view. You can use the livecode_filter variable in livecode to play around with this setting in real-time"
},
"livecode.defaultFilterTypes": {
"type": "array",
"default": [
"<class 'module'>",
"<class 'function'>"
],
"description": "Any variables with these types are not shown in livecode variable view. You can use the livecode_filter_type variable in livecode to play around with this setting in real-time"
},
"livecode.defaultImports": {
"type": "array",
"default": [
""
],
"description": "Default imports for new livecode sessions. "
},
"livecode.unsafeKeywords": {
"type": "array",
"default": [
"rmdir\\(",
"rmtree\\("
],
"description": "livecode will not evaulate your code in real-time mode if one of these keywords are detected. Keywords are applied via regex."
},
"livecode.telemetry": {
"type": "boolean",
"default": true,
"description": "Whether to report useful anonymous data back to developer."
},
"livecode.showSyntaxErrors": {
"type": "boolean",
"default": true,
"description": "Whether to show syntax errors."
},
"livecode.showNameErrors": {
"type": "boolean",
"default": true,
"description": "Whether to show name errors."
},
"livecode.showGlobalVars": {
"type": "boolean",
"default": true,
"description": "Whether to show global vars. Potential speed improvement if turned off - you can still inspect vars with dump()"
},
"livecode.shell_plus": {
"type": "boolean",
"default": false,
"description": "Whether to automatically load django models. This setting doesn't actually do anything yet. See https://github.com/Almenon/livecode-vscode/issues/279"
},
"livecode.keepPreviousVars": {
"type": "boolean",
"default": false,
"description": "If set to true livecode will add onto the local state each run instead of clearing it and starting fresh."
}
}
},
"commands": [
{
"command": "extension.currentlivecodeSession",
"title": "eval python in real time (current doc)",
"category": "livecode",
"icon": "./media/livecode-activate.png"
},
{
"command": "extension.newlivecodeSession",
"title": "eval python in real time (new doc)",
"category": "livecode",
"icon": "./media/livecode-activate.png"
},
{
"command": "extension.closelivecode",
"title": "closes livecode",
"category": "livecode",
"icon": "./media/livecode-stop.png"
},
{
"command": "extension.newlivecodeSessionOnHighlightedCode",
"title": "open highlighted code in new livecode session",
"category": "livecode"
},
{
"command": "extension.executelivecode",
"title": "trigger a run in the current livecode session",
"category": "livecode"
},
{
"command": "extension.executelivecodeBlock",
"title": "execute the current block of code",
"category": "livecode"
}
],
"keybindings": [
{
"command": "extension.currentlivecodeSession",
"key": "ctrl+shift+a",
"mac": "cmd+shift+a",
"when": "!inQuickOpen && !terminalFocus"
},
{
"command": "extension.newlivecodeSession",
"key": "ctrl+shift+q",
"mac": "cmd+shift+r",
"when": "!inQuickOpen && !terminalFocus"
},
{
"command": "extension.executelivecode",
"key": "ctrl+shift+;",
"mac": "cmd+shift+;",
"when": "!inQuickOpen && !terminalFocus && editorLangId == python"
},
{
"command": "extension.executelivecodeBlock",
"key": "ctrl+enter",
"mac": "cmd+enter",
"when": "editorTextFocus && editorLangId == python"
},
{
"command": "extension.printDir",
"key": "alt+enter",
"mac": "alt+enter",
"when": "editorTextFocus && editorLangId == python"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"compileOnce": "tsc -p ./",
"test": "tsc -p ./ && node ./out/test/runTest.js",
"unitTests": "mocha -ui tdd -r ts-node/register test/*.spec.ts",
"visualize": "depcruise --exclude 'vscode|^[a-zA-Z0-9\\_]+$' --output-type dot src | dot -T svg > dependencygraph.svg"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^10.5.2",
"@types/vscode": "^1.31.0",
"decache": "^4.4.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"source-map-support": "^0.5.13",
"ts-node": "^8.6.2",
"typescript": "^3.7.5",
"vscode-test": "^1.3.0"
},
"dependencies": {
"arepl-backend": "^1.3.8",
"opn": "^5.3.0",
"path": "^0.12.7",
"vscode-extension-telemetry": "0.1.2"
},
"bugs": {
"url": "https://github.com/xirider/livecode/issues",
"email": ""
},
"repository": {
"type": "git",
"url": "https://github.com/xirider/livecode.git"
},
"license": "SEE LICENSE IN <filename>",
"keywords": [
"python",
"real-time",
"display",
"variable",
"explorer"
],
"icon": "media/livecode-store.png"
}