From 6687484958412ff0f3bd6d97cbc1fcebc7ae64d2 Mon Sep 17 00:00:00 2001 From: geequlim Date: Sun, 25 Jun 2017 17:20:01 +0800 Subject: [PATCH] Better user expirence with external text editors. Implements open_in_external_editor for subclasses of ScriptLanguage. Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor. --- editor/plugins/script_editor_plugin.cpp | 24 +++++++++++++++++------- editor/plugins/script_editor_plugin.h | 1 + editor/plugins/script_text_editor.cpp | 2 ++ editor/script_editor_debugger.cpp | 21 +++++++++++++++++++-- editor/script_editor_debugger.h | 7 +++++++ modules/gdnative/gdnative.h | 2 +- modules/gdscript/gd_script.h | 1 + modules/visual_script/visual_script.h | 1 + 8 files changed, 49 insertions(+), 10 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index f3941d6a16..0024870665 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -313,6 +313,13 @@ void ScriptEditor::_goto_script_line(REF p_script, int p_line) { editor->push_item(p_script.ptr()); + if (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) { + + Ref