Register test commands before first await to prevent activation race condition by Copilot · Pull Request #25654 · microsoft/vscode-python

- Extract command registration logic from UnitTestManagementService into standalone registerTestCommands function
- Call registerTestCommands synchronously in activateLegacy before async operations
- This ensures commands are available immediately when extension activates, preventing "command not found" errors

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
…vation

- Register test services (unitTestsRegisterTypes) before any async operations in extension.ts
- Register test commands immediately after service registration, before experimentService.activate()
- Remove duplicate registrations from extensionActivation.ts activateLegacy()
- This ensures commands are available synchronously when extension activates

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>

Copilot AI changed the title [WIP] Fix issue with test command not registering on extension activation Register test commands before first await to prevent activation race condition

Dec 12, 2025

@eleanorjboyd

@eleanorjboyd

@eleanorjboyd eleanorjboyd added debt

Covers everything internal: CI, testing, refactoring of the codebase, etc.

skip tests

Updates to tests unnecessary

labels

Dec 12, 2025

dshvvvshr

@eleanorjboyd

rzhao271