From 55187de1157e05ea71c7c0404345dee0e27e963e Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Thu, 5 May 2022 23:56:00 +0200 Subject: fix(lsp): fix rename capability checks and multi client support (#18441) Adds filter and id options to filter the client to use for rename. Similar to the recently added `format` function. rename will use all matching clients one after another and can handle a mix of prepareRename/rename support. Also ensures the right `offset_encoding` is used for the `make_position_params` calls --- test/functional/plugin/lsp_spec.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/functional/plugin') diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index 530d414334..33a8976b79 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -2636,10 +2636,8 @@ describe('LSP', function() name = "prepare_rename_error", expected_handlers = { {NIL, {}, {method="shutdown", client_id=1}}; - {NIL, NIL, {method="textDocument/rename", client_id=1, bufnr=1}}; {NIL, {}, {method="start", client_id=1}}; }, - expected_text = "two", -- see test case }, }) do it(test.it, function() -- cgit