Skip to content

Comments

Inform if user is internal during update requests#297464

Merged
joaomoreno merged 1 commit intomainfrom
joao/indigo-grouse
Feb 24, 2026
Merged

Inform if user is internal during update requests#297464
joaomoreno merged 1 commit intomainfrom
joao/indigo-grouse

Conversation

@joaomoreno
Copy link
Member

The update service now includes functionality to determine if a user is internal. This change introduces a new method, setInternalOrg, which logs the internal organization when invoked. The update process will also utilize this information to adjust the update feed URL accordingly. Testing can be done by checking the logs for the internal organization information during update requests.
Fixes #297453

Copilot AI review requested due to automatic review settings February 24, 2026 19:58
@joaomoreno joaomoreno enabled auto-merge (squash) February 24, 2026 19:58
@joaomoreno joaomoreno self-assigned this Feb 24, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 24, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors how VS Code determines and communicates internal user status to the update service. Previously, the update service had a disableProgressiveReleases() method that was called when internal users (specifically Visual-Studio-Code org members) were detected. The new approach introduces a setInternalOrg() method that accepts the detected internal organization identifier ('vscode', 'github', or 'microsoft') and includes this information in update feed URL requests.

Changes:

  • Extracted internal organization detection logic into a shared getInternalOrg() utility function in platform/assignment
  • Replaced IUpdateService.disableProgressiveReleases() with setInternalOrg(internalOrg: string | undefined) across all update service implementations
  • Modified DefaultAccountUpdateContribution to detect, persist, and communicate internal org status to the update service
  • Updated update feed URL construction to include internal org information via org query parameter

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/platform/assignment/common/assignment.ts Added getInternalOrg() utility function to centralize internal organization detection logic
src/vs/workbench/services/assignment/common/assignmentFilters.ts Refactored to use shared getInternalOrg() utility instead of duplicating detection logic
src/vs/platform/update/common/update.ts Updated IUpdateService interface: replaced disableProgressiveReleases() with setInternalOrg()
src/vs/platform/update/common/updateIpc.ts Updated IPC channel to handle setInternalOrg method instead of disableProgressiveReleases
src/vs/platform/update/electron-main/abstractUpdateService.ts Implemented setInternalOrg() with logging; replaced boolean flag with string storage; added internalOrg to URL options
src/vs/platform/update/electron-main/updateService.win32.ts Updated to use getInternalOrg() and pass internalOrg to update feed URL
src/vs/platform/update/electron-main/updateService.linux.ts Updated to use getInternalOrg() and pass internalOrg to update feed URL
src/vs/platform/update/electron-main/updateService.darwin.ts Updated to use getInternalOrg() and pass internalOrg to update feed URL in both check and download flows
src/vs/platform/update/electron-main/updateService.snap.ts Added no-op setInternalOrg() implementation (not applicable for snap)
src/vs/workbench/services/update/browser/updateService.ts Added no-op setInternalOrg() implementation (not applicable in browser)
src/vs/workbench/contrib/update/browser/update.ts Refactored DefaultAccountUpdateContribution to track and persist internal org status using throttled refresh pattern and storage

@joaomoreno joaomoreno merged commit f6fcc6d into main Feb 24, 2026
24 checks passed
@joaomoreno joaomoreno deleted the joao/indigo-grouse branch February 24, 2026 22:17
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.

Requests to update service should inform if user is internal

2 participants