mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
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:
parent
0b6a410890
commit
3edae035d5
6 changed files with 23 additions and 14 deletions
|
|
@ -70,8 +70,8 @@ private:
|
|||
|
||||
HashMap<int, Ref<LSPeer> > clients;
|
||||
Ref<TCP_Server> server;
|
||||
int latest_client_id;
|
||||
int next_client_id;
|
||||
int latest_client_id = -1;
|
||||
int next_client_id = 0;
|
||||
|
||||
Ref<GDScriptTextDocument> text_document;
|
||||
Ref<GDScriptWorkspace> workspace;
|
||||
|
|
@ -82,7 +82,7 @@ private:
|
|||
String process_message(const String &p_text);
|
||||
String format_output(const String &p_text);
|
||||
|
||||
bool _initialized;
|
||||
bool _initialized = false;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue