Skip to content

Secondary windows for custom widgets #13570

Answered by tsmaeder
KR155E asked this question in Q&A
Discussion options

You must be logged in to vote

If you add the following to your theia extensions, it will include the CSS reachable from the mentioned module in the secondary window:

"theiaExtensions": [
    {
      "secondaryWindow": "lib/browser/terminal-frontend-module",
      ...

From there, it's a question of your widget being able to live in one window, but having it's html in another: There are a couple of caveates, for example, you cannot use the global window object, since that is the original window, or the HTML Element classes are per Windows, so "instanceof" with the class name will not work for html elements in the secondary window. With a bit of luck, though, your widget will "just work".

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KR155E
Comment options

@tsmaeder
Comment options

Answer selected by KR155E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants