-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vscode] support CustomEditor API #6636
Comments
VS Code team is working on new API: Webview Editor. But it is very raw, unstable and not completely implemented. I would prefer to wait till it is stabilized and complete, and only after align with it. Before it we have to find a version of extension which does not use |
Ah, this extension was added to prototype webview editors. So there is no such version which we can use. |
Adding a link to the proposed API (at the time of writing this comment it looks to be planned for their February 2020 release): microsoft/vscode#77131 (comment) I'm wondering if we should stub the API for the moment, until the proposed API has been approved. |
@vince-fugnitto would it make an extension work? I doubt |
I doubt it too, I was wondering if we should stub only so that we can add such |
@vince-fugnitto not sure what you mean by side effects, if a built-in does not work we should not add it without fixing |
I may just be overthinking it but I was thinking that perhaps a builtin might work partially (everything besides |
We should try for sure and see, but i don't want to port each bug and experiment from VS Code to Theia just to support 1-2 extensions each month. Don't think it is an effort well spent. But generally yes we should try which latest builtins work and migrate to them and if not collect bugs and reevaluate after each release whether we should take actions on already on them. |
Sounds good! I was likely just thinking out loud 🙈 |
Not urgent yet, but the python extension already has a mode in which it makes use of custom editors. |
This API was finalised in VS Code: https://code.visualstudio.com/api/extension-guides/custom-editors |
@akosyakov @vince-fugnitto |
We have not planed anything yet. But this issue indeed become important. The current goal is to get proper VS Code fs API support and simplify integration of new Monaco editor. That's enough work till August, so maybe in Autumn given the summer break. |
Python extension uses Some related references:
We'll start working on it most likely by the end of June. |
fyi: we have to postpone this work for some time |
@azatsarynnyy is someone working on this item or we can take it? |
@amiramw you can take it as we won't be able to look at it for the next 1-2 month |
Thanks @amiramw for picking-up this one - I hope we're able to include your merged PR in next month's release. |
@amiramw , will your work also include the implementation of registerCustomEditorProvider ? |
Yes, It will |
Hi @azatsarynnyy , I see this topic has been removed from 1.9.0 milestone. Is there a new milestone set when we can expect this? Is there probably already a version available we can try? |
@hansbank we are working on it. Hopefully @danarad05 can create initial PR for review next week. |
@tolusha @akosyakov @vince-fugnitto @hansbank @azatsarynnyy @amiramw @marcdumais-work @benoitf @cbos @hallvard FYI, created PR for this issue. Anyone interested in reviewing is welcome. |
Hi @danarad05 , |
Hi @hansbank |
Description
It can be tested with @theia/vscode-builtin-image-preview@latest.
Allows to preview images of such formats:
*.jpg
,*.jpe
,*.jpeg
*.png
*.bmp
*.gif
*.ico
*.tga
*.webp
The text was updated successfully, but these errors were encountered: