Add custom api textDocument/nativeSymbol to allow inspect native symbols from LSP clients

This commit is contained in:
geequlim 2019-10-04 20:53:40 +08:00
parent 39813939fc
commit e199488bc7
6 changed files with 58 additions and 5 deletions

View file

@ -153,9 +153,10 @@ Error GDScriptLanguageProtocol::start(int p_port) {
}
void GDScriptLanguageProtocol::stop() {
const int *ptr = NULL;
while (ptr = clients.next(ptr)) {
const int *ptr = clients.next(NULL);
while (ptr) {
clients.get(*ptr)->close();
ptr = clients.next(ptr);
}
server->stop();
clients.clear();