If a script is open in the external editor, print errors the client receives to a matching .log file.
This would allow external tooling to pick them up and display them in editor.
In the future with more advanced errors this could include source map support etc.
Suggestion
  • Client receives script error (be it on debug channel, or a compile error)
  • Checks if script the error belongs to is open
  • Checks if that script is open in external editor
  • Appends error to matching file
    sl_script_<script_name>_<uuid>.luau.log