Repository navigation
Replace deprecated url.parse in proxy resolution - #129
Open
Trivikram Kamat (trivikr) wants to merge 1 commit into
Open
Trivikram Kamat (trivikr) wants to merge 1 commit into
Trivikram Kamat (trivikr) wants to merge 1 commit into
Conversation
Co-authored-by: Joshua Mouch <3098820+joshmouch@users.noreply.github.com>
Author
|
Christof Marti (@chrmarti) could you review this when you get a chance? It replaces Extensions can't suppress the warning because VS Code strips This supersedes #114, which has had conflicts since October. |
|
Thank you for the fix. |
Author
|
Christof Marti (@chrmarti) Dmitriy Vasyura (@dmitrivMS) friendly ping. Jason Dent (@Jason3S)'s comment above shows other extensions hit this DEP0169 warning too, and extension authors can't suppress it from their side. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Replaces
url.parse()with WHATWGURLinuseProxySettings()so the patchedfetchin the extension host and agent host no longer emitsDEP0169.Supersedes #114 (rebased onto main, Josh Mouch (@joshmouch) credited as co-author).
URLAPI. Strip IPv6 brackets fromhostnameso localhost andnoProxychecks still see::1, and match the normalized::ffff:7f00:1form of::ffff:127.0.0.1.protocol//host. Credentials in the request URL are no longer part of the key.Tested:
npm run compile,npm run test:unit. The DEP0169 test fails without the change.