Introduce EditorLanguage and move ScriptLanguage::complete_code into it.

This commit is contained in:
HolonProduction
2026-03-28 21:49:43 +01:00
parent a0375dde96
commit 623809d89e
12 changed files with 199 additions and 16 deletions
@@ -30,6 +30,7 @@
#include "gdscript_workspace.h"
#include "../editor/gdscript_editor_language.h"
#include "../gdscript.h"
#include "../gdscript_parser.h"
#include "gdscript_language_protocol.h"
@@ -630,7 +631,7 @@ void GDScriptWorkspace::completion(const LSP::CompletionParams &p_params, List<S
}
String code = parser->get_text_for_completion(p_params.position);
GDScriptLanguage::get_singleton()->complete_code(code, path, current, r_options, forced, call_hint);
GDScriptEditorLanguage::get_singleton()->complete_code(code, path, current, r_options, forced, call_hint);
}
}