mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Allows user to click on error line to jump into error.
This commit is contained in:
parent
da0ec37aa9
commit
1129d83272
4 changed files with 36 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue