From d0eedd4c23cf6386c18906287d8f6b7885af3e0a Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Mon, 14 Sep 2020 17:49:17 -0400 Subject: [PATCH] Make LSP ignore $/ messages Fixes #38814 (cherry picked from commit 9c273307d8ba93da561faf3f9be71d0e0f291825) --- modules/jsonrpc/jsonrpc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/jsonrpc/jsonrpc.cpp b/modules/jsonrpc/jsonrpc.cpp index 2dce9a286ee..2a60b24719c 100644 --- a/modules/jsonrpc/jsonrpc.cpp +++ b/modules/jsonrpc/jsonrpc.cpp @@ -98,6 +98,10 @@ Variant JSONRPC::process_action(const Variant &p_action, bool p_process_arr_elem if (p_action.get_type() == Variant::DICTIONARY) { Dictionary dict = p_action; String method = dict.get("method", ""); + if (method.begins_with("$/")) { + return ret; + } + Array args; if (dict.has("params")) { Variant params = dict.get("params", Variant());