aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lsp/roslyn_ls.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lsp/roslyn_ls.lua b/lsp/roslyn_ls.lua
index 0b49f284..0cc7a7a2 100644
--- a/lsp/roslyn_ls.lua
+++ b/lsp/roslyn_ls.lua
@@ -159,6 +159,11 @@ return {
if root_dir then
cb(root_dir)
end
+ else
+ local existing_client = vim.lsp.get_clients({ name = 'roslyn_ls' })[1]
+ if existing_client and existing_client.config.root_dir then
+ cb(existing_client.config.root_dir)
+ end
end
end,
on_init = {