aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPlevi1337 <38832473+Plevi1337@users.noreply.github.com>2025-08-15 14:23:54 +0200
committerGitHub <noreply@github.com>2025-08-15 05:23:54 -0700
commitb0caeef0d835fbe19df6ad71dbc4345eaaea649c (patch)
tree8a6312279148f2e0c600530320ba8816e0df9944
parentfix(clangd): old config style still including proto filetype #3998 (diff)
downloadnvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar.gz
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar.bz2
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar.lz
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar.xz
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.tar.zst
nvim-lspconfig-b0caeef0d835fbe19df6ad71dbc4345eaaea649c.zip
feat(roslyn_ls): support .slnx extension #3999
-rw-r--r--lsp/roslyn_ls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp/roslyn_ls.lua b/lsp/roslyn_ls.lua
index 58da15ab..06e6df10 100644
--- a/lsp/roslyn_ls.lua
+++ b/lsp/roslyn_ls.lua
@@ -112,7 +112,7 @@ return {
if not bufname:match('^' .. fs.joinpath('/tmp/MetadataAsSource/')) then
-- try find solutions root first
local root_dir = fs.root(bufnr, function(fname, _)
- return fname:match('%.sln$') ~= nil
+ return fname:match('%.sln[x]?$') ~= nil
end)
if not root_dir then
@@ -133,7 +133,7 @@ return {
-- try load first solution we find
for entry, type in fs.dir(root_dir) do
- if type == 'file' and vim.endswith(entry, '.sln') then
+ if type == 'file' and (vim.endswith(entry, '.sln') or vim.endswith(entry, '.slnx')) then
on_init_sln(client, fs.joinpath(root_dir, entry))
return
end