Add columns to Language Server

This commit is contained in:
voylin 2025-12-19 15:20:18 +09:00
parent 5ad8b27d8d
commit ea1cb8fe67
10 changed files with 68 additions and 50 deletions

View file

@ -169,8 +169,8 @@ bool GDScriptLanguage::validate(const String &p_script, const String &p_path, Li
for (const GDScriptParser::ParserError &pe : parser.get_errors()) {
ScriptLanguage::ScriptError e;
e.path = p_path;
e.line = pe.line;
e.column = pe.column;
e.line = pe.start_line;
e.column = pe.start_column;
e.message = pe.message;
r_errors->push_back(e);
}
@ -180,8 +180,8 @@ bool GDScriptLanguage::validate(const String &p_script, const String &p_path, Li
for (const GDScriptParser::ParserError &pe : depended_parser->get_errors()) {
ScriptLanguage::ScriptError e;
e.path = E.key;
e.line = pe.line;
e.column = pe.column;
e.line = pe.start_line;
e.column = pe.start_column;
e.message = pe.message;
r_errors->push_back(e);
}