Skip to content

Solution detection loads wrong .sln when multiple solutions exist in subfolders #257

@Adrianfss

Description

@Adrianfss

After upgrading from csharp-ls 0.18.0 to 0.19.0, I’m experiencing an issue with solution detection in a workspace that contains multiple .sln files in subfolders.

Setup:
• Root folder contains multiple subfolders, each with its own .sln
• ./a/a.sln
• ./b/b.sln
• I open a file inside ./b

Expected behavior (works in 0.18.0):
The language server should load the solution ./b/b.sln.

Actual behavior (broken in 0.19.0):
The language server instead tries to load ./a/a.sln.

Notes:
• This regression appeared after updating to 0.19.0.
• 0.18.0 handled the scenario correctly.

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