| 2122 | } |
| 2123 | |
| 2124 | void ScriptTextEditor::reload(bool p_soft) { |
| 2125 | CodeEdit *te = code_editor->get_text_editor(); |
| 2126 | Ref<Script> scr = script; |
| 2127 | if (scr.is_null()) { |
| 2128 | return; |
| 2129 | } |
| 2130 | scr->set_source_code(te->get_text()); |
| 2131 | bool soft = p_soft || ClassDB::is_parent_class(scr->get_instance_base_type(), "EditorPlugin"); // Always soft-reload editor plugins. |
| 2132 | |
| 2133 | scr->get_language()->reload_tool_script(scr, soft); |
| 2134 | } |
| 2135 | |
| 2136 | PackedInt32Array ScriptTextEditor::get_breakpoints() { |
| 2137 | return code_editor->get_text_editor()->get_breakpointed_lines(); |
no test coverage detected