mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 00:35:30 +01:00
da03e4ef04
* extensions: add delayed auto-update mode to extensions.autoUpdate
Folds a 6-hour delayed auto-update mode into the existing
`extensions.autoUpdate` setting, which is now a string enum
('on' | 'delayed' | 'off') and policy-controllable via the
ExtensionsAutoUpdate policy.
When set to 'delayed', an extension whose newer version was published
less than 6 hours ago is treated as outdated-but-delayed: it is excluded
from auto-update and the activity badge, and surfaces an info status
explaining when it will be auto updated. Manual updates still work.
Includes startup migration from legacy values (true/'all'/
'onlyEnabledExtensions' -> 'on'; false/'none'/'onlySelectedExtensions'
-> 'off') plus defensive read-time normalization, and unit tests for the
new logic.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* update policy file
* extensions: address code review feedback for delayed auto-update
- Type IExtensionsConfiguration.autoUpdate as AutoUpdateConfigurationValue
- Keep ExtensionStatusAction.update() returning void; add recomputeStatus()
for callers that need to await the computed status
- Preserve the higher-priority warning CSS class when the delayed info status
is also applied to an outdated extension
- Hover awaits recomputeStatus() instead of update()
- Update pluginAutoUpdate doc comment to the on/delayed/off enum values
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* update policies data
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>