Pylance consuming too much memory, how to enable Jedi to get around this issue?

My Pylance when I leave my VSCode running a Python file, every few minutes the number of ram memory used increases, reaching 100% usage on the pc.

I've seen some people indicating activating Jedi to solve this problem, but I'm not sure how I should go about it. As I understand it I don't need to install any extensions, I just need to add this code in the settings:

"python.languageServer": "Jedi"

Should I set in settings.json which I access via F1 and then clicking Open Settings (JSON)? If so, the current settings look like this:

{ "liveServer.settings.ignoreFiles":["**"], "workbench.editorAssociations": { "*.ipynb": "jupyter-notebook" }, "notebook.cellToolbarLocation": { "default": "right", "jupyter-notebook": "left" }, "workbench.iconTheme": "vscode-icons", "liveServer.settings.donotShowInfoMsg": true, "json.maxItemsComputed": 100000000000000, "git.enableSmartCommit": true, "git.autofetch": true, "git.confirmSync": false, "diffEditor.renderSideBySide": false
}

If the location where I should add the configuration is that, would it look like this (code below) or another way? (I added it to the end of the list, but I don't know if it's correct.)

{ "liveServer.settings.ignoreFiles":["**"], "workbench.editorAssociations": { "*.ipynb": "jupyter-notebook" }, "notebook.cellToolbarLocation": { "default": "right", "jupyter-notebook": "left" }, "workbench.iconTheme": "vscode-icons", "liveServer.settings.donotShowInfoMsg": true, "json.maxItemsComputed": 100000000000000, "git.enableSmartCommit": true, "git.autofetch": true, "git.confirmSync": false, "diffEditor.renderSideBySide": false, "python.languageServer": "Jedi"
}

Will this solve my ram problem or did I get it wrong?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like