Skip to content

Conversation

@eleanorjboyd
Copy link
Member

The pytest hooks use a list to track collected tests and check for duplicates with if test_id not in collected_tests_so_far, which scales poorly for large test suites (O(n) per check). Switch to using a set

Copilot AI and others added 4 commits December 12, 2025 17:54
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant