diff options
| author | Rémi Verschelde | 2017-09-04 08:12:29 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-04 08:12:29 +0200 |
| commit | b5d2d0a9a502416a03f303fc30bee8a7ec8e93e2 (patch) | |
| tree | 754f5946625e043fedbdb83503e52d2c9fbe3159 /editor/plugins/script_editor_plugin.cpp | |
| parent | 0f5e575d6026ff4f6d8a4d28fbd8e7eca77aeef5 (diff) | |
| parent | 52a7be4eefbafcc983766bd80a87752b678c1c17 (diff) | |
| download | godot-b5d2d0a9a502416a03f303fc30bee8a7ec8e93e2.tar.gz godot-b5d2d0a9a502416a03f303fc30bee8a7ec8e93e2.tar.zst godot-b5d2d0a9a502416a03f303fc30bee8a7ec8e93e2.zip | |
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index dbc3bff87..b8a4ff9bf 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1545,8 +1545,14 @@ bool ScriptEditor::edit(const Ref<Script> &p_script, int p_line, int p_col, bool bool open_dominant = EditorSettings::get_singleton()->get("text_editor/files/open_dominant_script_on_scene_change"); + if (p_script->get_language()->overrides_external_editor()) { + Error err = p_script->get_language()->open_in_external_editor(p_script, p_line >= 0 ? p_line : 0, p_col); + if (err != OK) + ERR_PRINT("Couldn't open script in the overridden external text editor"); + return false; + } + if ((debugger->get_dump_stack_script() != p_script || debugger->get_debug_with_external_editor()) && - p_script->get_language()->open_in_external_editor(p_script, p_line >= 0 ? p_line : 0, p_col) == OK && p_script->get_path().is_resource_file() && bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) { |
