File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
modules/gdscript/language_server Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,21 @@ GDScriptLanguageServer::GDScriptLanguageServer() {
4545 _EDITOR_DEF (" network/language_server/show_native_symbols_in_editor" , false );
4646 _EDITOR_DEF (" network/language_server/use_thread" , use_thread);
4747 _EDITOR_DEF (" network/language_server/poll_limit_usec" , poll_limit_usec);
48+
49+ set_process_internal (true );
4850}
4951
5052void GDScriptLanguageServer::_notification (int p_what) {
5153 switch (p_what) {
52- case NOTIFICATION_ENTER_TREE: {
53- start ();
54- } break ;
55-
5654 case NOTIFICATION_EXIT_TREE: {
5755 stop ();
5856 } break ;
5957
6058 case NOTIFICATION_INTERNAL_PROCESS: {
59+ if (!started && EditorNode::get_singleton ()->is_editor_ready ()) {
60+ start ();
61+ }
62+
6163 if (started && !use_thread) {
6264 protocol.poll (poll_limit_usec);
6365 }
You can’t perform that action at this time.
0 commit comments