mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-17 22:09:47 +08:00
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
This commit is contained in:
+2
-2
@@ -140,7 +140,7 @@ module.send_message = function(args)
|
|||||||
|
|
||||||
if args.is_notification then
|
if args.is_notification then
|
||||||
-- For notifications we send a request and expect no direct response.
|
-- 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
|
if success then
|
||||||
return -1
|
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
|
-- We set the bufnr to -1 to prevent Neovim from flushing anything, as ALE
|
||||||
-- already flushes changes to files before sending requests.
|
-- already flushes changes to files before sending requests.
|
||||||
success, request_id = client.request(
|
success, request_id = client:request(
|
||||||
args.method,
|
args.method,
|
||||||
args.params,
|
args.params,
|
||||||
---@diagnostic disable-next-line: param-type-mismatch
|
---@diagnostic disable-next-line: param-type-mismatch
|
||||||
|
|||||||
Reference in New Issue
Block a user