Skip to content
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

Fix plugin proxy support #12266

Merged
merged 2 commits into from
Mar 28, 2023
Merged

Fix plugin proxy support #12266

merged 2 commits into from
Mar 28, 2023

Conversation

msujew
Copy link
Member

@msujew msujew commented Mar 7, 2023

What it does

Closes #11911
Closes #12267

The actual fix for the issue is doing the following:

-resolveProxy: async url => url,
+resolveProxy: async url => workspaceExt.resolveProxy(url),

The function isn't supposed to return the original URL, but a proxied url or undefined. The current implementation broke http-requests in the plugin host if the proxy support for the plugin host wasn't turned off.

How to test

Repeat the testing steps from #11043 and confirm that nothing has regressed.

Also repeat the testing steps without a proxy in place.

Review checklist

Reminder for reviewers

@msujew msujew added the vscode issues related to VSCode compatibility label Mar 7, 2023
@msujew msujew requested a review from thegecko March 7, 2023 23:31
@thegecko
Copy link
Member

thegecko commented Mar 8, 2023

Thanks for the fix, @msujew

@erezmus @federicobozzini @CareyJWilliams can we cherry-pick and test this?

@msujew
Copy link
Member Author

msujew commented Mar 23, 2023

@thegecko Any update on this? I saw that you merged the fix into your fork.

Copy link
Contributor

@federicobozzini federicobozzini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait for @thegecko to confirm, but from what I have seen this fix works perfectly.

Copy link
Member

@thegecko thegecko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msujew msujew merged commit 9cee5f5 into master Mar 28, 2023
@msujew msujew deleted the msujew/fix-proxy-support branch March 28, 2023 15:45
@github-actions github-actions bot added this to the 1.36.0 milestone Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Failed to establish a socket connection to proxies
3 participants