This blocks until the editor is closed.
The edited text, or null if requireSave is true and the editor was closed without saving.
The text to edit.
The path to the editor to use. Defaults to automatic detection.
Environment variables to forward to the editor.
The extension of the temporary file that the editor will open. This can affect syntax coloring etc.