-
Notifications
You must be signed in to change notification settings - Fork 99
Add preference for release channel #7534
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
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.
Pull Request Overview
This PR adds a configurable release channel preference for Positron updates.
- Introduces a new nested configuration property "update.positron.channel" to allow selection of the update channel.
- Updates the relauncher and update service to observe and use the new "positron.channel" configuration.
- Removes the old UpdateChannel enum and adds a corresponding configuration contribution with limited enum options.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.ts | Added a "positron" object with a "channel" property to the update configuration and registered it to trigger relaunch on change. |
src/vs/platform/update/electron-main/abstractUpdateService.ts | Replaced the deprecated UpdateChannel enum with a dynamic configuration value for the update channel. |
src/vs/platform/update/common/update.config.contribution.ts | Introduced a new configuration entry for "update.positron.channel" with specific allowed values and descriptions. |
E2E Tests 🚀 |
@@ -93,7 +86,7 @@ export abstract class AbstractUpdateService implements IUpdateService { | |||
*/ | |||
protected async initialize(): Promise<void> { | |||
// --- Start Positron --- | |||
const updateChannel = process.env.POSITRON_UPDATE_CHANNEL ?? UpdateChannel.Prereleases; | |||
const updateChannel = process.env.POSITRON_UPDATE_CHANNEL ?? this.configurationService.getValue<string>('update.positron.channel'); |
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.
Would recommend emitting a log statement when we ignore the user-set value in favor of the environment variable.
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.
Good idea!
Address #6489
Adds a preference for choosing where to get updates. The environment variable can still override the preference.
This allows users to switch to getting updates from the dailies.
Altering the preference will prompt the user to restart for the changes to take effect.
Release Notes
New Features
Bug Fixes
QA Notes