diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-24 15:15:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 15:15:25 +0200 |
commit | fc8904236bea1710eebfb80be8dcb3560209bd3e (patch) | |
tree | 22c41617163817f17e5c7ed8af52e47babe797b2 | |
parent | 079b6753c33665dc386acd61845507c313e9d31d (diff) | |
parent | 9c273307d8ba93da561faf3f9be71d0e0f291825 (diff) |
Merge pull request #42070 from Razoric480/ignore-cancel-request
Make LSP ignore $/cancelRequest msgs
-rw-r--r-- | modules/jsonrpc/jsonrpc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/jsonrpc/jsonrpc.cpp b/modules/jsonrpc/jsonrpc.cpp index 7bb70b098f..320da182f8 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()); |