Skip to content

Commit

Permalink
fix(msbuild): root patterns #3542
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen authored Jan 5, 2025
1 parent 87cdeb1 commit 5e009bd
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 5e009bd

Please sign in to comment.