aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgumballriggy2026-01-25 02:36:54 -0500
committerGitHub2026-01-25 16:36:54 +0900
commite3c152861999f851d237c10ef7ee48c1f9b7fdd1 (patch)
tree9c0c36a2eae3270b4a5597f8324d3ecb3c7cda99
parent646d95663038577e17afa67293a4e370a6f0402b (diff)
downloadale-e3c152861999f851d237c10ef7ee48c1f9b7fdd1.tar.gz

fix: replace deprecated client.request method call with colon syntax (#5081)

  • Update lsp.lua

replace deprecated client.request method call with colon syntax

  • fixy

same as b4 but for client.notify now

  • how did this even happen
-rw-r--r--lua/ale/lsp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/ale/lsp.lua b/lua/ale/lsp.lua
index 5df3097ab..b986e6b29 100644
--- a/lua/ale/lsp.lua
+++ b/lua/ale/lsp.lua
@@ -140,7 +140,7 @@ module.send_message = function(args)
if args.is_notification then
-- For notifications we send a request and expect no direct response.
- local success = client.notify(args.method, args.params)
+ local success = client:notify(args.method, args.params)
if success then
return -1
@@ -155,7 +155,7 @@ module.send_message = function(args)
--
-- We set the bufnr to -1 to prevent Neovim from flushing anything, as ALE
-- already flushes changes to files before sending requests.
- success, request_id = client.request(
+ success, request_id = client:request(
args.method,
args.params,
---@diagnostic disable-next-line: param-type-mismatch