Skip to content

Configure test command is not registered when the extension activates #21865

Closed

Description

@Tyriar

Repro:

  1. Reload window
  2. Run Python: Configure Tests

Image

Activity

  1. eleanorjboyd commented on Aug 29, 2023

    @eleanorjboyd

    Daniel Imms (@Tyriar) do you remember what your setup looked like when you got this notification? Was the python extension activated yet? Had you ever run / configured tests in this workspace before?

  2. Tyriar commented on Aug 29, 2023

    @Tyriar
    Author

    Eleanor Boyd (@eleanorjboyd) I'm pretty sure it was happening because the python extension wasn't activated, meaning python.configureTests was not working properly as an activation event.

  3. eleanorjboyd commented on Oct 4, 2023

    @eleanorjboyd

    To follow up on this, would the desired outcome just be for the action to not show in the command palette until the extension has activated?

  4. brettcannon commented on Nov 30, 2023

    @brettcannon
    Member

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

  5. Tyriar commented on Nov 30, 2023

    @Tyriar
    Author

    The user should never be able to see a message about a command missing. I think the right thing here is that all commands should be registered upon activation, otherwise there's a chance of this happening.

  6. 5 remaining items

  7. eleanorjboyd commented on Dec 15, 2023

    @eleanorjboyd

    closing as we cannot get a consistent repro, please reopen if this changes. Thanks!

  8. Tyriar commented on Dec 15, 2023

    @Tyriar
    Author

    My guess is this happens because you activate the commands after you have awaited at least once in the activate command:

    await Promise.all(this.activationServices.map((item) => item.activate(resource)));

    If so, the fix would be either:

    • Ensure command await an extension in vscode core (if this doesn't happen there is probably a good reason for it)
    • Move command registration before the first await in the activate code
  9. eleanorjboyd commented on Dec 18, 2025

    @eleanorjboyd

    fixed by dc7f9bf

  10. eleanorjboyd commented on Jan 5, 2026

    @eleanorjboyd

    dup of #22783, no need to verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions