-
Notifications
You must be signed in to change notification settings - Fork 15
Setting options in csharp.setup() is broken #25
Copy link
Copy link
Open
Description
This works:
require("csharp").setup()But as soon as you try to set options:
require("csharp").setup({
lsp = {
omnisharp = {
analyze_open_documents_only = false,
cmd_path = "",
debug = false,
default_timeout = 1000,
enable = true,
enable_analyzers_support = true,
enable_editor_config_support = true,
enable_import_completion = true,
enable_package_auto_restore = true,
include_prerelease_sdks = true,
load_projects_on_demand = false,
organize_imports = true,
},
capabilities = capabilities,
on_attach = on_attach,
roslyn = {
enable = false,
cmd_path = "",
},
},
})the plugin stops working. By stops working I mean that LSP diagnostics stop showing where they should be showing.
You have some kind of bug in this logic
csharp.nvim/lua/csharp/config.lua
Lines 102 to 120 in e44e275
| local deprecated_omnisharp_keys = { | |
| "enable", | |
| "enable_editor_config_support", | |
| "organize_imports", | |
| "load_projects_on_demand", | |
| "enable_analyzers_support", | |
| "enable_import_completion", | |
| "include_prerelease_sdks", | |
| "analyze_open_documents_only", | |
| "default_timeout", | |
| "enable_package_auto_restore", | |
| "debug", | |
| } | |
| for index, key in ipairs(deprecated_omnisharp_keys) do | |
| if merged_config.lsp.omnisharp[key] ~= nil then | |
| merged_config.lsp.omnisharp[key] = nil | |
| end | |
| end |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels