mirror of
https://github.com/godotengine/godot.git
synced 2026-04-14 21:59:58 +00:00
Add columns to Language Server
This commit is contained in:
@@ -175,7 +175,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
|
||||
if (err != OK) {
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
|
||||
if (err != OK) {
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
|
||||
print_line("Error in parser:");
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -273,7 +273,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
|
||||
print_line("Error in analyzer:");
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user