mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #108337 from fstxz/request_seq_int_cast
DAP: Cast request's `seq` value to int
This commit is contained in:
commit
95c21f6a05
1 changed files with 5 additions and 0 deletions
|
|
@ -851,6 +851,11 @@ bool DebugAdapterProtocol::process_message(const String &p_text) {
|
|||
Dictionary params = json.get_data();
|
||||
bool completed = true;
|
||||
|
||||
// While JSON does not distinguish floats and ints, "seq" is an integer by specification. See https://github.com/godotengine/godot/issues/108288
|
||||
if (params.has("seq")) {
|
||||
params["seq"] = (int)params["seq"];
|
||||
}
|
||||
|
||||
if (OS::get_singleton()->get_ticks_msec() - _current_peer->timestamp > _request_timeout) {
|
||||
Dictionary response = parser->prepare_error_response(params, DAP::ErrorType::TIMEOUT);
|
||||
_current_peer->res_queue.push_front(response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue