Prunoideae/ProbeJS-Extension

Error when reading extra-large `lang-keys.json` file

Opened this issue · 0 comments

At initialization, if the lang-keys.json is extraordinary large(in my case, 27.9 MB), the extension will fail to start, reporting:

2024-03-31 12:42:44.209 [error] Activating extension Prunoideae.probejs failed due to an error:
2024-03-31 12:42:44.209 [error] RangeError: Maximum call stack size exceeded
	at Collector.collectLangKeys (c:\Users\userLocal1\.vscode\extensions\prunoideae.probejs-0.0.8\out\collectors.js:98:23)
	at activate (c:\Users\userLocal1\.vscode\extensions\prunoideae.probejs-0.0.8\out\extension.js:31:41)
	at j.ib (c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:156:13251)
	at j.hb (c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:156:12964)
	at c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:156:11089
	at async u.n (c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:6255)
	at async u.m (c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:6218)
	at async u.l (c:\Users\userLocal1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:5675)