From b0caeef0d835fbe19df6ad71dbc4345eaaea649c Mon Sep 17 00:00:00 2001 From: Plevi1337 <38832473+Plevi1337@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:23:54 +0200 Subject: feat(roslyn_ls): support .slnx extension #3999 --- lsp/roslyn_ls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lsp') 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 -- cgit v1.2.3-70-g09d2