Allow enable/disable threading for LSP server

Restart LSP server when configurations change without restart the editor
This commit is contained in:
geequlim 2020-01-11 23:50:32 +08:00
parent 02cd144222
commit d901d5993b
2 changed files with 42 additions and 13 deletions

View file

@ -41,7 +41,10 @@ class GDScriptLanguageServer : public EditorPlugin {
GDScriptLanguageProtocol protocol;
Thread *thread;
bool thread_exit;
bool thread_running;
bool started;
bool use_thread;
int port;
static void thread_main(void *p_userdata);
private: