Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List solution filter files (.slnf) in the 'Open Solution' command. #7082

Merged
merged 1 commit into from
May 1, 2024

Conversation

JoeRobich
Copy link
Member

  • Fixes sorting of solutions in the workspace root path.

- Fixes sorting of solutions in the workspace root path.
@JoeRobich JoeRobich requested a review from a team as a code owner April 30, 2024 05:26
@@ -178,7 +178,7 @@ async function openSolution(languageServer: RoslynLanguageServer): Promise<vscod
return undefined;
}

const solutionFiles = await vscode.workspace.findFiles('**/*.sln');
const solutionFiles = await vscode.workspace.findFiles('**/*.{sln,slnf}');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the server side actually work for this? Specifically I don't know if the msbuild API we're calling parses the sln file
https://github.com/dotnet/roslyn/blob/main/src/Workspaces/Core/MSBuild.BuildHost/BuildHost.cs#L159

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does work. Verified with local testing and reviewing the MSBuild API itself. Looks like we could simplify some MSBuildWorkspace handling of Solution Filters by using this same api.

@JoeRobich JoeRobich merged commit f588850 into main May 1, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants