From 39813939fc7248226ae698ee727d87d1901f6c3a Mon Sep 17 00:00:00 2001 From: geequlim Date: Fri, 4 Oct 2019 19:15:26 +0800 Subject: Fix enumeration value of SymbolKind. Add custom notification 'gdscript/show_native_symbol' to show native symbols in clients. Close client connections when stop gdscript-lsp --- modules/gdscript/language_server/gdscript_language_protocol.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gdscript/language_server/gdscript_language_protocol.cpp') diff --git a/modules/gdscript/language_server/gdscript_language_protocol.cpp b/modules/gdscript/language_server/gdscript_language_protocol.cpp index ce3de9bc3b..8a470d9869 100644 --- a/modules/gdscript/language_server/gdscript_language_protocol.cpp +++ b/modules/gdscript/language_server/gdscript_language_protocol.cpp @@ -153,7 +153,12 @@ Error GDScriptLanguageProtocol::start(int p_port) { } void GDScriptLanguageProtocol::stop() { + const int *ptr = NULL; + while (ptr = clients.next(ptr)) { + clients.get(*ptr)->close(); + } server->stop(); + clients.clear(); } void GDScriptLanguageProtocol::notify_all_clients(const String &p_method, const Variant &p_params) { -- cgit v1.2.3