Skip to content

Commit c323026

Browse files
committed
Add support for preloading modules
See palantir/python-language-server#367
1 parent c2c5d50 commit c323026

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

package.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,74 @@
162162
}
163163
}
164164
},
165+
"preload": {
166+
"title": "Preload",
167+
"type": "object",
168+
"properties": {
169+
"enabled": {
170+
"title": "Enabled",
171+
"type": "boolean",
172+
"default": true,
173+
"description": "Enable or disable preload."
174+
},
175+
"modules": {
176+
"title": "Modules",
177+
"type": "array",
178+
"default": [
179+
"OpenGL",
180+
"PIL",
181+
"array",
182+
"audioop",
183+
"binascii",
184+
"cPickle",
185+
"cStringIO",
186+
"cmath",
187+
"collections",
188+
"datetime",
189+
"errno",
190+
"exceptions",
191+
"gc",
192+
"imageop",
193+
"imp",
194+
"itertools",
195+
"marshal",
196+
"math",
197+
"matplotlib",
198+
"mmap",
199+
"mpmath",
200+
"msvcrt",
201+
"networkx",
202+
"nose",
203+
"nt",
204+
"numpy",
205+
"operator",
206+
"os",
207+
"os.path",
208+
"pandas",
209+
"parser",
210+
"rgbimg",
211+
"scipy",
212+
"signal",
213+
"skimage",
214+
"sklearn",
215+
"statsmodels",
216+
"strop",
217+
"sympy",
218+
"sys",
219+
"thread",
220+
"time",
221+
"wx",
222+
"xxsubtype",
223+
"zipimport",
224+
"zlib"
225+
],
226+
"items": {
227+
"type": "string"
228+
},
229+
"description": "List of modules to import on startup"
230+
}
231+
}
232+
},
165233
"pycodestyle": {
166234
"title": "PyCodeStyle",
167235
"type": "object",

0 commit comments

Comments
 (0)