-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
package.json
307 lines (307 loc) · 10.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
{
"name": "arepl",
"displayName": "AREPL for python",
"description": "real-time python scratchpad",
"version": "3.0.0",
"publisher": "almenon",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Other",
"Debuggers"
],
"activationEvents": [
"onCommand:extension.currentAREPLSession",
"onCommand:extension.newAREPLSession",
"onCommand:extension.newAREPLSessionOnHighlightedCode"
],
"main": "./out/src/extension",
"contributes": {
"menus": {
"editor/title": [
{
"when": "editorLangId == python && !arepl && editorHasSelection && config.AREPL.showIcons",
"command": "extension.newAREPLSession",
"alt": "extension.currentAREPLSession",
"group": "navigation"
},
{
"when": "editorLangId == python && !arepl && !editorHasSelection && config.AREPL.showIcons",
"command": "extension.currentAREPLSession",
"alt": "extension.newAREPLSession",
"group": "navigation"
},
{
"when": "arepl && config.AREPL.showIcons",
"command": "extension.closeAREPL",
"group": "navigation"
}
],
"editor/title/context": [
{
"command": "extension.currentAREPLSession"
},
{
"command": "extension.newAREPLSession"
}
],
"editor/context": [
{
"command": "extension.newAREPLSessionOnHighlightedCode",
"when": "editorHasSelection"
}
]
},
"configuration": {
"type": "object",
"title": "AREPL configuration",
"properties": {
"AREPL.showIcons": {
"type": "boolean",
"default": true
},
"AREPL.skipLandingPage": {
"type": "boolean",
"default": false
},
"AREPL.showFooter": {
"type": "boolean",
"default": true
},
"AREPL.customCSS": {
"type": "string",
"default": null,
"description": "injected into AREPL each run. Use 'Developer: Open Webview Developer Tools' command to inspect arepl html"
},
"AREPL.delay": {
"type": "number",
"default": 350,
"description": "delay in milliseconds before executing code after typing"
},
"AREPL.inlineResults": {
"type": "boolean",
"default": true,
"description": "whether to show errors / results / prints inline. (Currently just error icons)"
},
"AREPL.whenToExecute": {
"type": "string",
"enum": [
"afterDelay",
"onSave",
"onKeybinding"
],
"enumDescriptions": [
"after a delay (change AREPL.delay to control the amount)",
"on save",
"on keyboard shortcut"
],
"default": "afterDelay",
"description": "When to execute your code"
},
"AREPL.show_to_level": {
"type": "number",
"default": 2,
"description": "2 shows x=1 and x=[1,2], provides option to expand deeply nested data like x=[[1]]"
},
"AREPL.max_string_length": {
"type": "number",
"default": 70,
"description": "strings over X characters are truncated with an option to expand"
},
"AREPL.printResultPlacement": {
"type": "string",
"enum": [
"top",
"bottom"
],
"enumDescriptions": [
"print results appear on top",
"print results appear on bottom"
],
"default": "top"
},
"AREPL.pythonPath": {
"type": "string",
"default": null,
"description": "AREPL 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"
},
"AREPL.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"
},
"AREPL.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"
},
"AREPL.defaultFilterVars": {
"type": "array",
"default": [],
"description": "Any variables with these names are not shown in arepl variable view. You can use the arepl_filter variable in arepl to play around with this setting in real-time"
},
"AREPL.defaultFilterTypes": {
"type": "array",
"default": [
"<class 'typing._SpecialForm'>",
"<class 'typing._SpecialGenericAlias'>",
"<class 'module'>",
"<class 'function'>",
"<class 'builtin_function_or_method'>"
],
"description": "Any variables with these types are not shown in arepl variable view. You can use the arepl_filter_type variable in arepl to play around with this setting in real-time"
},
"AREPL.defaultImports": {
"type": "array",
"default": [
"from arepl_dump import dump"
],
"description": "Default imports for new AREPL sessions. dump is included by default so you can use it to inspect variables & local scopes"
},
"AREPL.unsafeKeywords": {
"type": "array",
"default": [
"rmdir\\(",
"rmtree\\("
],
"description": "AREPL will not evaulate your code in real-time mode if one of these keywords are detected. Keywords are applied via regex."
},
"AREPL.telemetry": {
"type": "boolean",
"default": true,
"description": "Whether to report useful anonymous data back to developer."
},
"AREPL.showSyntaxErrors": {
"type": "boolean",
"default": true,
"description": "Whether to show syntax errors."
},
"AREPL.showNameErrors": {
"type": "boolean",
"default": true,
"description": "Whether to show name errors."
},
"AREPL.showGlobalVars": {
"type": "boolean",
"default": true,
"description": "Whether to show global vars. Potential speed improvement if turned off - you can still inspect vars with dump()"
},
"AREPL.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/AREPL-vscode/issues/279"
}
}
},
"commands": [
{
"command": "extension.currentAREPLSession",
"title": "eval python in real time (current doc)",
"category": "AREPL",
"icon": "./media/happy_cat.svg"
},
{
"command": "extension.newAREPLSession",
"title": "eval python in real time (new doc)",
"category": "AREPL",
"icon": "./media/happy_cat.svg"
},
{
"command": "extension.closeAREPL",
"title": "closes AREPL",
"category": "AREPL",
"icon": "./media/angry_cat_filled.svg"
},
{
"command": "extension.newAREPLSessionOnHighlightedCode",
"title": "open highlighted code in new AREPL session",
"category": "AREPL"
},
{
"command": "extension.executeAREPL",
"title": "trigger a run in the current AREPL session",
"category": "AREPL"
},
{
"command": "extension.executeAREPLBlock",
"title": "execute the current block of code",
"category": "AREPL"
}
],
"keybindings": [
{
"command": "extension.currentAREPLSession",
"key": "ctrl+shift+a",
"mac": "cmd+shift+a",
"when": "!inQuickOpen && !terminalFocus"
},
{
"command": "extension.newAREPLSession",
"key": "ctrl+shift+q",
"mac": "cmd+shift+r",
"when": "!inQuickOpen && !terminalFocus"
},
{
"command": "extension.executeAREPL",
"key": "ctrl+shift+;",
"mac": "cmd+shift+;",
"when": "!inQuickOpen && !terminalFocus && editorLangId == python"
},
{
"command": "extension.executeAREPLBlock",
"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": "vscode-test",
"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",
"vscode:uninstall": "node ./out/src/uninstallSurvey"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "^20.17.6",
"@types/vscode": "^1.40.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"mocha": "^10.8.2",
"source-map-support": "^0.5.13",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"vscode-uri": "^2.1.2"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.9.7",
"arepl-backend": "^3.0.5"
},
"bugs": {
"url": "https://github.com/almenon/arepl-vscode-wordcount/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/almenon/arepl-vscode.git"
},
"license": "SEE LICENSE IN <filename>",
"keywords": [
"python",
"real-time",
"scratchpad"
],
"icon": "media/happy_cat_filled.png"
}