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

Default Live Preview. HTML. Not updated at change a attached files #16081

Closed
IgorNovozhilov opened this issue Nov 25, 2016 · 1 comment
Closed
Assignees
Labels
feature-request Request for new features or functionality webview Webview issues

Comments

@IgorNovozhilov
Copy link

IgorNovozhilov commented Nov 25, 2016

Preview is not updated when you change the stylesheets, and scripts attached to the html file using the tags link and script.

  • VSCode Version:
    image

  • OS Version: Linux Mint 18 x64

Steps to Reproduce:
Files from the example: test-files.zip

  1. If I embed the styles and scripts directly in the html, when you change the code preview is updated.

image

  1. If I use the tags link and script code changes not covered in the preview.

sample html
image

change code in file test2.js, the changes are not applied
image

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 13, 2017

I believe this was actually using the markdown preview, which used to allow viewing any file as markdown. Html content also happens to be valid markdown but previewing html was never a scenario we officially supported. We have since restricted the markdown preview to markdown files

#12080 tracks official support for a html live preview. There are a few extensions in the marketplace that you can try that already add this, such as https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

@mjbvz mjbvz closed this as completed Oct 13, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality webview Webview issues
Projects
None yet
Development

No branches or pull requests

3 participants