Skip to content

activation onCommand leads to 'command x not found' if using executeCommandProvider #293

Open

Description

Steps to reproduce:

  1. Register commands with an extension and use onCommand:myExtension.myCommand in activationEvents in the package.json.
  2. Add a language server with an executeCommandProvider for myExtension.myCommand
  3. Start debugging the language server and execute myExtension.myCommand in the command palette.

Result:
The language server is activated correctly, but the command is not executed. Instead a Command 'myExtension.myCommand' not found. error pops up.

Executing the command a second time works as the language server is already running.

Activity

  1. dbaeumer commented on Dec 21, 2017

    @dbaeumer
    Member

    This can only be fixed by adding constructor support for commands to the LSP client. In VS Code commands need to be registered in the activate function synchronously to make this work.

  2. added
    feature-request
    and removed on Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions