Skip to content

Commit

Permalink
fix(msbuild): more root patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Jan 5, 2025
1 parent f4ed656 commit aab20de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/lspconfig/configs/msbuild_project_tools_server.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll'
local util = require 'lspconfig.util'

return {
default_config = {
filetypes = { 'msbuild' },
root_dir = function(fname)
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
end,
root_dir = util.root_pattern('*.sln', '*.slnx', '*.*proj', '.git'),
init_options = {},
cmd = { 'dotnet', host_dll_name },
},
Expand Down

0 comments on commit aab20de

Please sign in to comment.