Skip to content

Commit e3c1528

Browse files
authored
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
1 parent 646d956 commit e3c1528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/ale/lsp.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module.send_message = function(args)
140140

141141
if args.is_notification then
142142
-- For notifications we send a request and expect no direct response.
143-
local success = client.notify(args.method, args.params)
143+
local success = client:notify(args.method, args.params)
144144

145145
if success then
146146
return -1
@@ -155,7 +155,7 @@ module.send_message = function(args)
155155
--
156156
-- We set the bufnr to -1 to prevent Neovim from flushing anything, as ALE
157157
-- already flushes changes to files before sending requests.
158-
success, request_id = client.request(
158+
success, request_id = client:request(
159159
args.method,
160160
args.params,
161161
---@diagnostic disable-next-line: param-type-mismatch

0 commit comments

Comments
 (0)