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'm seeing an issue where using the Hot Reload package for Unity causes csharp-ls to stop working for a workspace.
This issue is caused by the Hot Reload package re-creating the workspace's sln and csproj files under <root>/Library/com.singularitygroup.hotreload/Solution, resulting in these files being duplicated since they normally exist in the workspace's root directory. This results in csharp-ls picking up the newly generated files, integrating them and starting to malfunction. Here are some of the JSON-RPC logs after it starts malfunctioning:
I've looked at the csharp-ls codebase but couldn't find any configuration options that would allow me to ignore specific directories or files. Is there a way to configure csharp-ls to exclude these directories, or is such functionality not yet implemented?
The text was updated successfully, but these errors were encountered:
The diff below works. It makes it so csharp-ls ignores the duplicate solution and project files normally found under a com.singularitygroup.hotreload directory. A better solution would be to read this from a configuration file though.
midsbie
changed the title
Hot Reload package causes csharp-ls to stop working due to recreated solution files
Hot Reload package for Unity causes csharp-ls to stop working due to recreated solution files
Oct 14, 2024
I'm seeing an issue where using the Hot Reload package for Unity causes csharp-ls to stop working for a workspace.
This issue is caused by the Hot Reload package re-creating the workspace's
sln
andcsproj
files under<root>/Library/com.singularitygroup.hotreload/Solution
, resulting in these files being duplicated since they normally exist in the workspace's root directory. This results in csharp-ls picking up the newly generated files, integrating them and starting to malfunction. Here are some of the JSON-RPC logs after it starts malfunctioning:I've looked at the csharp-ls codebase but couldn't find any configuration options that would allow me to ignore specific directories or files. Is there a way to configure csharp-ls to exclude these directories, or is such functionality not yet implemented?
The text was updated successfully, but these errors were encountered: