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

Reload problem with previewHtml #15437

Closed
tulayang opened this issue Nov 14, 2016 · 3 comments
Closed

Reload problem with previewHtml #15437

tulayang opened this issue Nov 14, 2016 · 3 comments
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@tulayang
Copy link

  • VSCode Version:1.0.3
  • OS Version: ubuntu 14.04

I'm writting some visualization capabilities via vscode.previewHtml. I found that my page will be reloaded when toggling editors. Here is a gif which recording the process:

vscode.previewHtml

How can I disable it?

@jrieken
Copy link
Member

jrieken commented Nov 14, 2016

You cannot. The previewHtml isn't designed to build custom UI but to preview a document. When not visible (like changing tabs) we will dispose the state/document and recreate things on load. Also, when dragging tabs around we will rebuilt everything.

@jrieken jrieken closed this as completed Nov 14, 2016
@jrieken jrieken added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Nov 14, 2016
@tulayang
Copy link
Author

tulayang commented Nov 14, 2016

@jrieken

Is there any other way to write HTML document?

@jrieken
Copy link
Member

jrieken commented Nov 14, 2016

No, we don't have an UI-extensibility story

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants