Skip to content
Discussion options

You must be logged in to vote

Hi,

this is more a Theia-related question, but I'll try to outline what is involved for this task.

In Theia there is an opener service, which you can use to open widgets or editors based on opener options. You can get the opener service injected from Theia's dependency injection container and invoke it as follows (note that you can only get things injected in classes that are instantiated by the Theia dependency injection itself):

import { OpenerService, open } from '@theia/core/lib/browser';
...
@inject(OpenerService) protected readonly openerService: OpenerService;
....
open(this.openerService, uri, openerOptions);

The opener service will then query all open handlers that are registered…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Adem-Kri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants