mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
refactor(lsp): merge rpc.domain_socket_connect into rpc.connect (#28398)
See discussion in https://github.com/neovim/neovim/pull/26850
This commit is contained in:

committed by
GitHub

parent
206475d791
commit
97323d821b
@@ -4311,7 +4311,7 @@ describe('LSP', function()
|
||||
]]
|
||||
eq('initialize', result.method)
|
||||
end)
|
||||
it('can connect to lsp server via rpc.domain_socket_connect', function()
|
||||
it('can connect to lsp server via pipe or domain_socket', function()
|
||||
local tmpfile --- @type string
|
||||
if is_os('win') then
|
||||
tmpfile = '\\\\.\\\\pipe\\pipe.test'
|
||||
@@ -4336,7 +4336,7 @@ describe('LSP', function()
|
||||
client:close()
|
||||
end))
|
||||
end)
|
||||
vim.lsp.start({ name = "dummy", cmd = vim.lsp.rpc.domain_socket_connect(SOCK) })
|
||||
vim.lsp.start({ name = "dummy", cmd = vim.lsp.rpc.connect(SOCK) })
|
||||
vim.wait(1000, function() return init ~= nil end)
|
||||
assert(init, "server must receive `initialize` request")
|
||||
server:close()
|
||||
|
Reference in New Issue
Block a user