Skip to content

Fix/marketplace connection#296029

Open
Vedag812 wants to merge 2 commits intomicrosoft:mainfrom
Vedag812:fix/marketplace-connection
Open

Fix/marketplace connection#296029
Vedag812 wants to merge 2 commits intomicrosoft:mainfrom
Vedag812:fix/marketplace-connection

Conversation

@Vedag812
Copy link
Copy Markdown
Contributor

PR Description: Fix Marketplace Connection Issue (ERR_NO_SUPPORTED_PROXIES)

Description

This PR addresses an issue where VS Code fails to connect to the marketplace, reporting ERR_NO_SUPPORTED_PROXIES.

The root cause was identified in windowImpl.ts: when no proxy is configured, VS Code was calling Electron's setProxy with an empty string for proxyRules. This caused Chromium to fail with ERR_NO_SUPPORTED_PROXIES as it couldn't find any valid proxy configuration in the empty string.

Changes

  • Modified windowImpl.ts to check if newHttpProxy is truthy before applying proxy rules.
  • If no proxy is set, the Electron session's proxy is now reset by passing an empty object {} instead of an invalid empty string. This allows Electron to correctly fall back to system defaults.

Verification

  • Verified that the logic correctly differentiates between a configured proxy and no proxy.
  • Code analysis confirms that resetting the session proxy with {} is the documented way to clear settings in Electron.

Fix spelling and grammar errors in comments only:
- strings.ts: varinats -> variants
- parcelWatcher.ts: occured -> occurred, coleasing -> coalescing, likelyhood -> likelihood
- extHostTypes.ts: seperate -> separate
- explorerViewer.ts: seperately -> separately, excpet -> except
- commandDetectionCapability.ts: depended -> dependent
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/platform/files/node/watcher/parcel/parcelWatcher.ts
  • src/vs/platform/windows/electron-main/windowImpl.ts
  • src/vs/workbench/contrib/files/browser/views/explorerViewer.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants