GDScript LSP: Fix crash in notify_client

`latest_client_id` now defaults to `-1` (invalid ID) instead of `0`.

Also fix typo in notification `gdscrip_client/changeWorkspace`,
and fix argument names in method binds.

Fixes #39375.

(cherry picked from commit e34f33711b)
This commit is contained in:
Rémi Verschelde 2020-06-08 11:00:07 +02:00
parent 0b6a410890
commit 3edae035d5
6 changed files with 23 additions and 14 deletions

View file

@ -29,6 +29,7 @@
/*************************************************************************/
#include "gdscript_extend_parser.h"
#include "../gdscript.h"
#include "core/io/json.h"
#include "gdscript_language_protocol.h"