Skip to content
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

API for extensions previewing in HTML #1308

Closed
mohsen1 opened this issue Dec 14, 2015 · 7 comments
Closed

API for extensions previewing in HTML #1308

mohsen1 opened this issue Dec 14, 2015 · 7 comments
Assignees
Labels
api feature-request Request for new features or functionality
Milestone

Comments

@mohsen1
Copy link

mohsen1 commented Dec 14, 2015

Like Markdown preview, I want to build extensions that preview other types of files in HTML/CSS/JS. Please open up API for this type of extensions.

@dbaeumer dbaeumer added feature-request Request for new features or functionality api labels Dec 15, 2015
@dbaeumer dbaeumer added this to the Backlog milestone Dec 15, 2015
@Stephanvs
Copy link

Actually I was trying to do something similar like this for my graphviz extension, I want to be able to generate some html based on the current active document and preview it in a similar way as the Markdown preview. I found the way the Markdown extension does this, but it's not available as public API's

@jrieken
Copy link
Member

jrieken commented Dec 15, 2015

Yeah, the markdown stuff isn't an extension yet. I can think of either a special HTMLTextDocument, a mode when opening an editor, or some command. Needs some thinking...

@Stephanvs
Copy link

Also I noticed the OpenPreviewToSideAction and related Action class, which can toggle the preview mode, something like that would also be useful to do.

@jrieken
Copy link
Member

jrieken commented Dec 15, 2015

yeah, tho that action takes undocumented context... We need to elevate it

@alefragnani
Copy link

I was also looking for this 👍
@jrieken , you could also look (when deciding the new APIs) for other supported file types, like images (png, jpg).

@jrieken
Copy link
Member

jrieken commented Dec 22, 2015

related to #272. Idea goes like this:

  1. extension creates a virtual document with Uri & content
  2. have command to preview html/md from Uri

@be5invis
Copy link
Contributor

And maybe the API can support more preview types, for example, TeX?

@jrieken jrieken modified the milestones: Jan 2016, Backlog Jan 13, 2016
@egamma egamma mentioned this issue Jan 18, 2016
59 tasks
@jrieken jrieken closed this as completed Jan 20, 2016
@egamma egamma mentioned this issue Feb 1, 2016
97 tasks
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
joaomoreno pushed a commit that referenced this issue Jun 16, 2020
show error dialog at permanent failure with reload window
joaomoreno pushed a commit that referenced this issue Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants