hansec / vscode-fortran-ls

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

Intellisense across a multiroot workspaces #5

Open kaschau opened 5 years ago

kaschau commented 5 years ago

Is there a way for intellisense to "see" subroutines, variables, etc. across a multiroot workspace in VS Code? i.e.

-/ | source-for-lib/ | source-for-executable/

In which source-for-executable code makes calls to the source-for-lib subroutines. This works very well with debugging in VS Code, but I can't get Intellisense to find subroutines called in source-for-executable that are defined inside source-for-lib

hansec commented 5 years ago

Sorry this took so long. Making the whole project visible in a single workspace is troublesome to implement on the server side. However, I think I can come up with a solution that should work reasonably well for you through a configuration file in the source-for-lib directory. Right now source_dirs is relative to the server root, but I will add support for absolute paths. Then the server in the "executable" root can be made aware of objects in the "library" root.