Open ilog2000 opened 1 year ago
Iirc, iodide doesn't fully support workspaces, @baronfel ?
I was able to work around the issue:
solution
subdirectoryapp.sln
into it and prefixed all project paths with ..\
solution
into the list of workspaces in server.code-workspace
file and put "FSharp.workspacePath": "./solution/app.sln"
into settings sectionI can conclude that this is OmniSharp issue - having solution file outside workspaces, it cannot access it and ignores all non-C# projects.
If there is a way to force OmniSharp to reference solution or not to ignore fsproj with settings, please do that. Otherwise feel free to close this ticket.
Describe the bug
I have monorepo with a dozen of subfolders and subprojects including C# app, C# libs, F# libs, Typescript React app, React component libs, azure pipelines, and scripts. In the root there is
app.sln
including all csproj & fsproj from subdirectories. I also preparedserver.code-workspace
file for VSCode to work with server side code. When workspace is loaded and code analysis finished, I have no syntax highlight in*.fs
files.Some related details:
server.code-workspace
is csproj, then F# file is processed by C# analyzer and the file is full of errorsapp.sln
in "C# Project Selector" and highlighting works. But in this case analysis is running on all (more than thousand) files in monorepo and it takes like 15 minutes on my PCI am not 100% sure this is exactly Ionide issue, but need to start somewhere. Either I could simply not know about some extras in settings, please give me a clue then.
Machine info