Skip to content

Hot Reload package for Unity causes csharp-ls to stop working due to recreated solution files #192

Open
@midsbie

Description

@midsbie

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:

[jsonrpc] e[14:15:22.983] <-- textDocument/inlayHint[5] {"jsonrpc":"2.0","id":5,"result":null}
[jsonrpc] e[14:15:22.983] <-- textDocument/signatureHelp[4] {"jsonrpc":"2.0","id":4,"result":null}
[jsonrpc] e[14:15:22.983] <-- textDocument/hover[2] {"jsonrpc":"2.0","id":2,"result":null}

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions