-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix: add handle for resolveExternalUri #5624
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
Patch patches/proxy-uri.diff does not apply (enforce with -f)
Might be easiest to force-apply it then resolve the conflicts and refresh it! It could be a conflict with base-path.diff
.
Oops..looks like proxyEndpointTemplate
adds /proxy/port
for you.
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.
Awesome work!
Codecov Report
Merging #5624 (bfe91fc) into main (714afe0) will not change coverage.
The diff coverage isn/a
.
Additional details and impacted files
@@ Coverage Diff @@ ## main #5624 +/- ## ======================================= Coverage 72.61% 72.61% ======================================= Files 30 30 Lines 1680 1680 Branches 368 368 ======================================= Hits 1220 1220 Misses 397 397 Partials 63 63
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 714afe0...bfe91fc. Read the comment docs.
Looks good now! (ignore expected, hard-coded)
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.
Looks great to me! Do you want an approval now to merge or are you going to add the domain-based proxy in this same PR so I should approve after that is done?
are you going to add the domain-based proxy in this same PR so I should approve after that is done?
I'll work on that here then mark PR ready when all is said and done. Thanks for the early review!
39be51a
to
9681169
Compare
It appears the display language e2e test is failing. I'm going to see if I can reproduce locally.
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.
I noticed VS Code added this after running the test so I decided to commit it.
test/e2e/models/CodeServer.ts
Outdated
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.
gonna drop this change
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.
saves time from having to look this up each time 😂
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.
100% lol same reason I added the other comments I am always forgetting the flags
d7ead89
to
fb7bcb8
Compare
@code-asher ready for another review!
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.
Nicely done! I only have a comment about the added metadata.
test/e2e/extensions/ms-ceintl.vscode-language-pack-es-1.70.0/package.json
Show resolved
Hide resolved
I found there's a conflict between this feature and url displayed in open external uri dialog.
If you open an external uri for the first time then the domain of it will be resolved to cache in map data structure.
Like https://www.w3schools.com/c/c_structs.php
image
For the next time if you open a different uri with the same domain
Like https://github.com/coder/code-server/issues
it will be resolved as the last uri which has been cached.
image
The uri displayed here is not correct
Before there's no resolvers registered by default so external uri is not resolved but after this feature added, cache will take effect
image
Hope there's a solutaion for this. Thank you!
Uh oh!
There was an error while loading. Please reload this page.
This PR fixes
asExternalUri
to use code-server's built-in proxy orVSCODE_PROXY_URI
if it's been set.Todos
VSCODE_PROXY_URI
VSCODE_PROXY_URI
Fixes #1936