-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[vscode] support port preview #3432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
fixes #3382 |
11996d7 to
66d33e9
Compare
| if err == theialib.ErrNotFound { | ||
| gpPreviewBrowser := os.Getenv("GP_PREVIEW_BROWSER") | ||
| if gpPreviewBrowser != "" { | ||
| gpPreviewArgs := strings.Fields(gpPreviewBrowser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@csweichel Does it look correct to support command with args? We probably should the same for GP_OPEN_EDITOR otherwise exec.LookPath will fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, we should do that for GP_OPEN_EDITOR as well.
I'd be happy to do this in a follow-up PR.
|
/werft run 👍 started the job as gitpod-build-akosyakov-code-support-embedded-2806.3 |
svenefftinge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works nicely and LGTM
66d33e9 to
41ff7d2
Compare
41ff7d2 to
b5b0a7c
Compare
|
Nice. Is this currently testable in production? I see it has been merged to main. outputs: |
|
No, it’s not yet in prod. But We are releasing next Tuesday with lots of improvements.
… Am 31.03.2021 um 20:37 schrieb Apolo Pena ***@***.***>:
Nice. Is this currently testable in production? I see it has been merged to main.
When I have apache running on port 8001, this:
gp preview $(gp url 8001)
outputs
2021/03/31 18:36:25 not found
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Cool, thanks for the update. Is there an easy way to tell when code has been merged to main but not pushed to production? Or do I need to trace the trail of issues to a milestone? |
|
You can check whether the milestone is closed, if not we are still working on it. As soon as we ship we close the milestone: https://github.com/gitpod-io/gitpod/milestones |
What it does
gp previewChanges in VS Code: gitpod-io/openvscode-server@845053f...f75d023
How to test
curl lama.sh | LAMA_PORT=9090 shand check that notification pops up with working preview buttongp preview https://localhost:9090andgp preview $(gp url 9090)both should work by opening an external port URL, not localhost!