fsharp-language-server icon indicating copy to clipboard operation
fsharp-language-server copied to clipboard

Add setting to specify solution

Open alfonsogarciacaro opened this issue 3 years ago • 1 comments

Thanks a lot for working on this! I've checked out the new extension and looks good :)

Some of my repos contain multiple solutions but most frequently I'm only working with one of them at a time, so I'd prefer the extension doesn't try to parse files not needed. It'd be nice to have an option to select the solution instead of rely always on auto-detection. I gave it a quick try here but it didn't seem to work properly, probably because of conflicts with the auto detection, I need to check again: https://github.com/alfonsogarciacaro/fsharp-language-server/commit/93679b21750dc566c9b15af5c17a6e7dcb7986d2

alfonsogarciacaro avatar Nov 30 '21 07:11 alfonsogarciacaro

I can take a look at this sometime soon Looking at your changes, it certainly looks like that's all you should need to do Maybe also check this

member this.NewProjectFile(fsprojOrFsx: FileInfo) =
        knownProjects.Add(fsprojOrFsx.FullName) |> ignore
        invalidateDescendents(fsprojOrFsx)

Isn't adding projects that are out of your solution. Other than that I can't immediately see where your version would be getting projects outside the solution from.

I can just ad a bunch more logging to the system and it should reveal all. Now that i have multilevel logging and logfiles and such

faldor20 avatar Jan 09 '22 17:01 faldor20