pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
237 stars 37 forks source link

nimsuggest "attacks" (one process per nim file in workspace) #9

Closed oderwat closed 8 years ago

oderwat commented 8 years ago

Hi there. I have a folder which contains about 280 nim source files.. which leads to 280 nimsuggest processes when I use vscode. Is that really needed (a feature)?

kosz78 commented 8 years ago

It is required run one instance Nimsuggest per nim project file. In case of non project mode, all workspace file are treated as project file for nimsuggest. During IDE startup the extension index all workspace file for symbols that produce lot of processes, I will rewrite startup code to eliminate this behavior and also leave opened imsuggest only for opened nim file in IDE

oderwat commented 8 years ago

That would be good. Currently I have hundreds of nimsuggest still running even after ending vscode. I also found that suggestions stop working easily. But I would wait to analyze that until the "attack" gets fixed :)

oderwat commented 8 years ago

BTW.. I made this at the weekend.. https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow inspired by your work for Nim! I hope to optimize it (just recalculate when something is edited) when I get time.

kosz78 commented 8 years ago

@oderwat very useful extension, thank you

kosz78 commented 8 years ago

Fixed in 0.4.8 release