From b3a31fd3b6702de9c71c27212ffacf0f54cc3b46 Mon Sep 17 00:00:00 2001 From: Vincent Labelle <40727826+vincentlabelle@users.noreply.github.com> Date: Sun, 14 Dec 2025 14:01:17 -0500 Subject: fix(omnisharp): "*.slnx" root marker #4236 Problem: Root detection doesn't support the new solution file format which is now the default in .NET 10. Solution: Add '*.slnx' to root_dir function. --- lsp/omnisharp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsp/omnisharp.lua b/lsp/omnisharp.lua index 6011a251..adaf4d79 100644 --- a/lsp/omnisharp.lua +++ b/lsp/omnisharp.lua @@ -30,7 +30,8 @@ return { root_dir = function(bufnr, on_dir) local fname = vim.api.nvim_buf_get_name(bufnr) on_dir( - util.root_pattern '*.sln'(fname) + util.root_pattern '*.slnx'(fname) + or util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname) or util.root_pattern 'omnisharp.json'(fname) or util.root_pattern 'function.json'(fname) -- cgit v1.2.3-70-g09d2