diff options
author | geequlim <geequlim@gmail.com> | 2019-10-04 19:15:26 +0800 |
---|---|---|
committer | geequlim <geequlim@gmail.com> | 2019-10-04 19:36:40 +0800 |
commit | 39813939fc7248226ae698ee727d87d1901f6c3a (patch) | |
tree | abea1397037f634541b93d7879df1e65fc3b52be /modules/gdscript/language_server/gdscript_language_protocol.cpp | |
parent | d66cce0215fe2f963ecf35c2176f4c89ef793ac5 (diff) |
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
Diffstat (limited to 'modules/gdscript/language_server/gdscript_language_protocol.cpp')
-rw-r--r-- | modules/gdscript/language_server/gdscript_language_protocol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |