Skip to content

Commit

Permalink
feat(msbuild): add msbuild language tools server (#3176)
Browse files Browse the repository at this point in the history
* feat(msbuild): add msbuild language tools server

* fix: add cmd in

* fix: int

---------

Co-authored-by: JD Rudie <[email protected]>
  • Loading branch information
rudiejd and JD Rudie authored May 27, 2024
1 parent b972e71 commit a863f5f
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local util = require 'lspconfig.util'

local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll'

return {
default_config = {
filetypes = { 'xml.csproj', 'xml.fsproj', 'sln' },
root_dir = util.find_git_ancestor,
init_options = {},
cmd = { 'dotnet', host_dll_name },
},
docs = {
description = [[
https://github.com/tintoy/msbuild-project-tools-server/
MSBuild Project Tools Server can be installed by following the README.MD on the above repository.
Example config:
```lua
lspconfig.msbuild_project_tools_server.setup {
cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'}
}
```
]],
default_config = {
root_dir = [[root_pattern('.git')]],
},
},
}

0 comments on commit a863f5f

Please sign in to comment.