Skip to content

Cannot Register URI Handler in Activation Event #13960

@tsmaeder

Description

@tsmaeder

Bug Description:

In the context of #13306, I have implemented the onUri activation event. The logical thing to do in response to this event is to register a uri handler. However, this does not work because the activation finishes for the front end before the uri handler registration call is invoked.

Steps to Reproduce:

  1. Install the extension from the referenced PR
  2. Add the "onUri" activation event to its package.json
  3. Run Theia
  4. Open the uri theia://tylerleonhardt.open-external in the OS (in the browser, for eample)
  5. Observe: there is no message being shown by Theia
  6. Open the same uri again
  7. Observe: you get a message saying the uri has been handled by the plugin

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions