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
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 prepared server.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:
In VSCode status bar there is an icon of "C# Project Selector"
When click on it, no fsproj files suggested, only csproj ones
As a result I see "Not in F# Project (Still loading...)" forever, and no syntax highlight
If the first item in server.code-workspace is csproj, then F# file is processed by C# analyzer and the file is full of errors
If I include root (".") into code-workspace or run VSCode without code-workspace, then I am able to select app.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 PC
I 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
OS: Windows10
.NET SDK version: 5/6/7 (all the latest)
Ionide version: 7.5.4
The text was updated successfully, but these errors were encountered:
Copied app.sln into it and prefixed all project paths with ..\
Added solution into the list of workspaces in server.code-workspace file and put "FSharp.workspacePath": "./solution/app.sln" into settings section
I 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
The text was updated successfully, but these errors were encountered: