You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
tl dr;
Could it be a reasonable default to look for fsproj-files in the current folder and any parent folders recursively?
According to the plugin documentation, opening an .fs-file will load any fsproj-file in that directory.
And some experimentation will show this to be true :)
With the following project structure:
Project.fsproj
Library.fs
Folder/File1.fs
Folder/File2.fs
Given that Library.fs opens modules from File1 and File2 and
given that File2 opens a module from File1.
I can open a vim-session for Library.fs an it will resolve any modules correctly because if will have loaded Project.fsproj.
If I start a new vim-session and start with opening File2 it will not be able to resolve the module in File1 because Project.fsproj will not be loaded since it is located in a parent folder.
However if I start a new vim-session and open Library.fs (which will load Project.fsproj) and then open File2 it will resolve the modules in File1 since the project file already is loaded.
Could we solve 2. by letting the plugin search for fsproj-files in parent directories?