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
eleanorjboyd
added
debt
labels
Dec 12, 2025This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters