mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	External editor improvements and fixes
Notable changes:
- Now ScriptLanguages have the option to override the global external editor setting.
If `ScriptLanguage::open_in_external_editor()` returns `ERR_UNAVAILABLE` (which it does by default), then the global external editor option will be used.
- Added formatting to the external editor execution arguments. Now it's possible to write something like this: `{project} -g {file}:{line}:{col}`.
- `VisualScript::get_member_line()` now can return the line of functions (well, it returns the id of the _Function_ node of the function). I guess there is nothing else we can get a "line" from.
Fixes:
- Fixes a bug where `ScriptEditor::script_goto_method()` would not work if the script is not already open in the built-in editor.
- Fixes wrong DEFVAL for `cursor_set_column` and `cursor_set_line` in TextEdit.
- `Script::get_member_line()` now returns -1 ("found nothing") by default.
			
			
This commit is contained in:
		
							parent
							
								
									fce779a4ef
								
							
						
					
					
						commit
						4b8568006d
					
				
					 11 changed files with 74 additions and 66 deletions
				
			
		|  | @ -134,7 +134,6 @@ public: | |||
| 
 | ||||
| 	virtual void add_callback(const String &p_function, PoolStringArray p_args); | ||||
| 	virtual void update_settings(); | ||||
| 	virtual bool goto_method(const String &p_method); | ||||
| 
 | ||||
| 	virtual void set_tooltip_request_func(String p_method, Object *p_obj); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ignacio Etcheverry
						Ignacio Etcheverry