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

fix(lspconfig): updating csharp-ls to look for sln when in a project structure #2762

Closed
wants to merge 2 commits into from

Conversation

joro550
Copy link

@joro550 joro550 commented Aug 13, 2023

Fixing an issue when loading a project in the lsp that it wasn't detecting the sln - it was only detecting the current csproj file

@joro550 joro550 changed the title DRAFT: fix(lspconfig): updating csharp-ls to look for sln when in a project structure fix(lspconfig): updating csharp-ls to look for sln when in a project structure Aug 13, 2023
@joro550
Copy link
Author

joro550 commented Sep 30, 2023

@glepnir seems that suggestion had failed the lint 😅

root_dir = function(fname)
return util.root_pattern '*.sln'(fname)
or util.root_pattern('*.csproj', '*.fsproj', '.git')(fname)
or util.root_pattern '*.fsproj'(fname)
Copy link
Member

Choose a reason for hiding this comment

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

these two lines can be removed.

@rudiejd
Copy link
Contributor

rudiejd commented Dec 23, 2023

@joro550 I think your most recent commit message is failing the commit linter😅

I had the exact same issue and was about to open a PR to push my fix before I saw this, so I can do that if you don't have time

@joro550
Copy link
Author

joro550 commented Jan 1, 2024

@rudiejd if you have time to invest please do it 😄 I haven't had time to fix this recently

@glepnir glepnir closed this Jan 2, 2024
@joro550 joro550 deleted the fix/cs-root-directory branch January 2, 2024 07:59
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.

3 participants