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
This commit is contained in:
geequlim 2019-10-04 19:15:26 +08:00
parent d66cce0215
commit 39813939fc
3 changed files with 65 additions and 52 deletions

View file

@ -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) {