You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Allows user to click on error line to jump into error.
This commit is contained in:
@@ -443,6 +443,7 @@ void ScriptTextEditor::_validate_script() {
|
||||
if (!script->get_language()->validate(text, line, col, errortxt, script->get_path(), &fnc, &warnings, &safe_lines)) {
|
||||
String error_text = "error(" + itos(line) + "," + itos(col) + "): " + errortxt;
|
||||
code_editor->set_error(error_text);
|
||||
code_editor->set_error_pos(line - 1, col - 1);
|
||||
} else {
|
||||
code_editor->set_error("");
|
||||
line = -1;
|
||||
|
||||
Reference in New Issue
Block a user