diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-20 02:20:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 02:20:04 +0200 |
commit | 22b9c0207bf3a50bcc0db6df8af5ec2d8631abcc (patch) | |
tree | 5da42a60b092003ae4a933f2bceab8fd8fab713e /core | |
parent | c88f56be643c8635b3f9284b9e48a96be63bbc46 (diff) | |
parent | 4b8568006d1f83d518d98ef3c7354b7c25de46cc (diff) | |
download | redot-engine-22b9c0207bf3a50bcc0db6df8af5ec2d8631abcc.tar.gz |
Merge pull request #8417 from neikeq/hello-there
External editor improvements and fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/script_language.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/script_language.h b/core/script_language.h index 905ac4eeda..1ec02f5845 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -119,7 +119,7 @@ public: virtual void get_script_method_list(List<MethodInfo> *p_list) const = 0; virtual void get_script_property_list(List<PropertyInfo> *p_list) const = 0; - virtual int get_member_line(const StringName &p_member) const { return 0; } + virtual int get_member_line(const StringName &p_member) const { return -1; } Script() {} }; @@ -201,6 +201,7 @@ public: virtual bool has_named_classes() const = 0; virtual int find_function(const String &p_function, const String &p_code) const = 0; virtual String make_function(const String &p_class, const String &p_name, const PoolStringArray &p_args) const = 0; + virtual Error open_in_external_editor(const Ref<Script> &p_script, int p_line, int p_col) { return ERR_UNAVAILABLE; } virtual Error complete_code(const String &p_code, const String &p_base_path, Object *p_owner, List<String> *r_options, String &r_call_hint) { return ERR_UNAVAILABLE; } |