Add the option to open a specific file in the external editor. It's found in the script editor's File menu.
Had to extend ScriptTextEditor to provide line and column as a Vector2i to preserve cursor position.
(The shortcut in the picture is not there by default, I assigned it locally to test it.)