Hello world. I use the Latest version of the Nim plugin for vscode (by Nimsaem). I work with nim V1.6.8 (Current stable release) Through choosenim. I use htop to follow the resource consumption on my computer. As soon as I open a Nim file in vs code, even an empy file, Nimsuggest begins to use more and more Ram and CPU. Its Ram over-consumption grows rapidly until my system crashes.
Please what can I do ?
Unfortunately that's known behaviour for nimsuggest (in fact it used to be worse).
If you haven't already setting up a project file, do that. If that doesn't bring any improvement, I fear it's time to say adieu nimsuggest, it's not the most reliable tool in the world (the addon has an option to do that).
You will still be eable to receive error messages in editor, because those (by default) are served by nim check.
You might also try deleting your Nim, Nimble, ~/.nim, and ~nimble/ directories and do fresh reinstalls. In an empty Nim file nimsuggest shouldn't act up too much, but sometimes the nimble libraries or caches get messed up and cause nimsuggest to die a lot.
Theres also timeout options for nimsuggest in the VSCode plugin that you can set lower which will restart nimsuggest more often.