Skip to content

Commit 5e009bd

Browse files
authored
1 parent 87cdeb1 commit 5e009bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lua/lspconfig/configs/msbuild_project_tools_server.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll'
2+
local util = require 'lspconfig.util'
23

34
return {
45
default_config = {
56
filetypes = { 'msbuild' },
6-
root_dir = function(fname)
7-
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
8-
end,
7+
root_dir = util.root_pattern('*.sln', '*.slnx', '*.*proj', '.git'),
98
init_options = {},
109
cmd = { 'dotnet', host_dll_name },
1110
},

0 commit comments

Comments
 (0)