menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Any guidance?

May 24, 2020 at 3:10pm
I want to be able to open certain file extensions in a new tab, .mp3/.mp4 or possibly make a new pane renderer to run these files within editor, maybe a playlist and such features? Is this doable, simply by extensions? Where should I look into?

May 24, 2020 at 7:57pm
are you looking into creating a theia extension or are you thinking of developing and then using a vscode extension within theia? Just as a heads-up, the question has been similarly asked before: https://github.com/eclipse-theia/theia/issues/7219

May 25, 2020 at 8:28pm
From what I can see on the related question, Extension seems like a better option, the idea was to either build a renderer like settings/file-editor,image-viewer are, but for mp3. flac. and other extensions, basically to support any type of file to open within the Theia, I would definitely go in direction to extend it to a point to make a player if possible.
I am using Theia as my ... UI for my whole userspace, so playing music would be ultimate finishing touch :D
you are right that extensions will give you the most flexibility and control :) In theory it should be possible, you can likely create your own OpenHandler (for .mp3 and .mp4 files), and from there decide on what you want to do. We currently have custom OpenHandlers for images and markdown files if you'd like to take a look (as a starting point): https://github.com/eclipse-theia/theia/blob/500432b7ce052731918528820462eeccba85e2c4/packages/preview/src/browser/markdown/markdown-preview-handler.ts#L32
like-fill
1

May 26, 2020 at 5:21pm
Thank you for an awesome answer, I will look trough contribution guide on github, and see how far I can get into this, seems very interesting, exactly what I was looking for, blew my expectations :D !