vscode-rust
vscode-rust copied to clipboard
Action on Save Check is broken in RLS Mode
In RLS Mode it opens a new terminal every time you save and executes cargo check there. You need to close the terminal every single time, otherwise it just creates more and more terminals. This is completely different from what it does in Legacy Mode where it just does all this in the background without opening new terminals.
It's not broken. It's how it supposed to work, but I agree it looks weird. How would you like it to work?
Can it maybe reuse the same terminal or something? It's kinda weird that I have hundreds of terminals open after saving a hundred times. Also can there be an option to have the legacy behavior instead? I don't even want it to open a terminal at all if possible.
@CryZe, There is an issue about allowing use Legacy Mode. Also some people want to parse diagnostics from running Cargo commands even for RLS mode. Actually it shouldn't create many terminals. It either removes the current one and creates a new one or ignores the command. I believe it worked. Doesn't it work now?
I have the same problem in latest released version (0.4.2), both on Windows and on macOS; a new terminal session is opened, and kept open, every time cargo check has run. I'm also using RLS mode, but RLS still seems a bit unstable so I tend to run cargo check too.
I have version 1.14.1 version of VS code installed.