mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Add optional smart resolve sulotion
The smart resolvaion can guess most symbols but it might be slow so disabled by default users can turn on it in the editor setting
This commit is contained in:
parent
37aafaaa9c
commit
fa6d6a329c
8 changed files with 260 additions and 65 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "core/io/json.h"
|
||||
#include "core/os/copymem.h"
|
||||
#include "core/project_settings.h"
|
||||
#include "editor/editor_node.h"
|
||||
|
||||
GDScriptLanguageProtocol *GDScriptLanguageProtocol::singleton = NULL;
|
||||
|
||||
|
@ -159,6 +160,10 @@ void GDScriptLanguageProtocol::notify_client(const String &p_method, const Varia
|
|||
(*peer)->put_packet((const uint8_t *)charstr.ptr(), charstr.length());
|
||||
}
|
||||
|
||||
bool GDScriptLanguageProtocol::is_smart_resolve_enabled() const {
|
||||
return bool(_EDITOR_GET("network/language_server/enable_smart_resolve"));
|
||||
}
|
||||
|
||||
GDScriptLanguageProtocol::GDScriptLanguageProtocol() {
|
||||
server = NULL;
|
||||
singleton = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue