Support overwrite updates on DarwinUpdateService (#288129)

* Update DarwinUpdateService to handle pending updates during checks and errors

* wip: test update server

* refactor: remove pending update handling from DarwinUpdateService

* show action

* feat: enhance update service to support explicit and overwrite states

* feat: add redirect functionality to update server

* fix: when checking for newer update, make the right call against the update service

also add logs since we're not getting the commit id :(

* fix: darwin auto update should use correct commit version

* fix: cleanup the code a bit

* updates

* feat: add Overwriting state to update process and update related logic

* fix: enhance update check with cancellation support and timeout handling

* nit: language

* do not attempt to overwrite updates twice

* remove test update server scripts
This commit is contained in:
João Moreno
2026-01-22 16:50:50 +01:00
committed by GitHub
parent 4ab234336d
commit 88fa47422c
11 changed files with 234 additions and 116 deletions

View File

@@ -28,6 +28,7 @@ Visual Studio Code is built with a layered architecture using TypeScript, web AP
The core architecture follows these principles:
- **Layered architecture** - from `base`, `platform`, `editor`, to `workbench`
- **Dependency injection** - Services are injected through constructor parameters
- If non-service parameters are needed, they need to come after the service parameters
- **Contribution model** - Features contribute to registries and extension points
- **Cross-platform compatibility** - Abstractions separate platform-specific code