Merge pull request #42070 from Razoric480/ignore-cancel-request

Make LSP ignore $/cancelRequest msgs
This commit is contained in:
Rémi Verschelde 2020-09-24 15:15:25 +02:00 committed by GitHub
commit fc8904236b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());