Neovim Omnisharp support #2053
-
I've been scouring the documentation, issues, and discussions (coupled with a plethora of google searching) and I can't seem to find anything to assist in the LSP/linting/what have you regarding TUnit. My current version of dotnet is dotnet9.0, however, I have 8.0 installed as well. I also have tested multiple ways to handle the Here's the LSPConfig: lspconfig.omnisharp.setup({
cmd = { "omnisharp", "--languageserver", "--hostPID" tostring(vim.fn.getpid()) },
capabilities = capabilities,
settings = {
FormattingOptions = {
EnableEditorConfigSupport = true,
OrganizeImports = nil,
},
MsBuild = { LoadProjectsOnDemand = nil, },
RoslynExtensionsOptions = {
EnableAnalyzersSupport = true,
EnableImportCompletion = true,
AnalyzeOpenDocumentsOnly = nil,
EnableDecompilationSupport = true,
DiagnosticWorkersThreadCount = 10,
inlayHintsOptions = {
...
},
Sdk = {
IncludePrereleases = true,
},
}}) Forgive misspelling if it happened, having to type everything up rn... ignore me >.>
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Here is the error I'm getting: |
Beta Was this translation helpful? Give feedback.
-
I've never used that tooling so I may not be much help. But those errors are because the using directives aren't being pulled in (even though implicit usings is true). I'm not sure why that is. You can manually add |
Beta Was this translation helpful? Give feedback.
I figured out the issue. The
.sln
file wasn't generating and I had to manually create it withdotnet sln new
then add the project to it withdotnet sln add MyProject.csproj
then restore/build. Everything works perfectly now. I'm not sure if the others auto-generate .sln files or if that's a manual thing for the other text editors, but it's an easy fix despite having spent the better part of my day trying to resolve lol.. I be dumdum