Did you see this?
You can edit a GPScript using VS Code and compile it with GP using Include “myscript.gpscript”.
Include “myscript.gpscript”