hansec / vscode-fortran-ls

Fortran IntelliSense for Visual Studio Code
MIT License
37 stars 7 forks source link

fortls starts in wrong directory #10

Closed kc9jud closed 5 years ago

kc9jud commented 5 years ago

Hello,

I'm seeing fortls launching in the wrong directory when using a multiroot workspace. However, unlike #5, I'd like separate fortls instances for separate roots -- I have a couple different codes, and I don't want bleed-over between them... however, it seems as if right now, fortls always launches in the first directory of the workspace. Is there a way to change this, or is a simple addition?

Cheers, Patrick

hansec commented 5 years ago

Thanks for the suggestion. I just added support for this feature in master and will include it in the next release. As implemented, a separate language server will be launched for each "root" so all the projects should be isolated from the perspective of suggestions, references, etc.

kc9jud commented 5 years ago

Perfect, thank you!