From 7d8d803fcb2b3c92d4d9e5d37ea922c06c90d645 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sat, 6 May 2023 18:05:54 +0200 Subject: Stub out unknown method used by nvim "window/progress" --- src/server/requests.odin | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/server') diff --git a/src/server/requests.odin b/src/server/requests.odin index 555ffd3..fca7609 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -275,6 +275,7 @@ call_map: map[string]proc( "textDocument/documentLink" = request_document_links, "textDocument/rename" = request_rename, "textDocument/references" = request_references, + "window/progress" = request_noop, } notification_map: map[string]bool = { @@ -283,6 +284,7 @@ notification_map: map[string]bool = { "textDocument/didClose" = true, "textDocument/didSave" = true, "initialized" = true, + "window/progress" = true, } consume_requests :: proc(config: ^common.Config, writer: ^Writer) -> bool { @@ -1381,3 +1383,12 @@ request_references :: proc( return .None } + +request_noop :: proc( + params: json.Value, + id: RequestId, + config: ^common.Config, + writer: ^Writer, +) -> common.Error { + return .None +} -- cgit v1.2.3