| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Why not have a more automated test for this?
You can start up a SSH server with crypto/ssh and that runs the given commands locally and then confirm code-server is up and running and then kill it.
Sorry, something went wrong.
| syncBack = flag.Bool("b", false, "sync extensions back on termination") | ||
| printVersion = flag.Bool("version", false, "print version information and exit") | ||
| port = flag.String("port", "", "Start VS Code on the provided port. If one is not provided a random one is selected") | ||
| noOpen = flag.Bool("no-open", false, "Start VS Code but don't open a Chrome app window") |
There was a problem hiding this comment.
lets use $DISPLAY = "" for this
Sorry, something went wrong.
There was a problem hiding this comment.
Is DISPLAY set on all macs?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, similar to how there is an X11 socket whose path is given by $DISPLAY, $DISPLAY on macOS contains the quartz socket.
Sorry, something went wrong.
There was a problem hiding this comment.
What about WSL?
Sorry, something went wrong.
There was a problem hiding this comment.
WSL is almost certainly using some sort of X11 forwarding so it would have $DISPLAY.
Sorry, something went wrong.
| syncBack = flag.Bool("b", false, "sync extensions back on termination") | ||
| printVersion = flag.Bool("version", false, "print version information and exit") | ||
| port = flag.String("port", "", "Start VS Code on the provided port. If one is not provided a random one is selected") | ||
| noOpen = flag.Bool("no-open", false, "Start VS Code but don't open a Chrome app window") |
There was a problem hiding this comment.
Is DISPLAY set on all macs?
Sorry, something went wrong.
There was a problem hiding this comment.
looks solid otherwise 🚀
Sorry, something went wrong.
Add a sanity test - Refactor and break out code from main() - Use a random remote port
| Back | FazBrowse Home | New Git URL |
No description provided.