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

Live Server: Feature request #17081

Closed
ModernWebService opened this issue Dec 12, 2016 · 18 comments
Closed

Live Server: Feature request #17081

ModernWebService opened this issue Dec 12, 2016 · 18 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Milestone

Comments

@ModernWebService
Copy link

This a feature request for a live server or live reload equivalent extension that can refresh or display love code without having to push cmd+r /ctr+r every time.

@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 13, 2016
@mjbvz
Copy link
Contributor

mjbvz commented Dec 13, 2016

Closing as a duplicate of #15614

@mjbvz mjbvz closed this as completed Dec 13, 2016
@schmuli
Copy link

schmuli commented Dec 15, 2016

@mjbvz If I understand correctly, this is not related to #15614, the OP is asking for a Hot Reload/Live Reload extension in VSCode, useful when working with JS, CSS and HTML in a browser.

For example: https://www.google.com/#safe=off&q=hot+reloading

I don't know if this is something that the VSCode team is interested in, but please re-evaluate closing this issue if so.

@mjbvz mjbvz removed the *duplicate Issue identified as a duplicate of another issue(s) label Dec 16, 2016
@mjbvz
Copy link
Contributor

mjbvz commented Dec 16, 2016

@schmuli Thanks for the clarification. Reopening as this is a different use case.

@mjbvz mjbvz reopened this Dec 16, 2016
@kieferrm
Copy link
Member

@ModernWebService @schmuli you are talking about extension development, correct? I.e. I launch a new instance from the workspace that contains the code for my extension. When I now make changes to the code, you want the launched instance to pickup those changes without the need to reload the window.

@kieferrm kieferrm added the feature-request Request for new features or functionality label Dec 16, 2016
@ModernWebService
Copy link
Author

ModernWebService commented Dec 16, 2016

Thank you @schmuli. @kieferrm @weinand What I mean in the initial post was an extension (whether it be in the side bar with the debugger, file search, etc. That when called, you can have a server started that will display your code in the browser and then once you save changes, the browser is forced to refresh. Other editors achieve this by using a plug named atom-live server in Atom and browser sync or livereload in sublime text, or there is Brackets live preview.

Granted this is not a make or break feature for me cause I can use gulp live reload, it is a feature I feel would benefit most developers when working on things like the UI. As of now I know of express server in the extensions market but that only host your project on a random port and does not provide a refresh or live preview.

Hope that clarifies the request more.

@weinand
Copy link
Contributor

weinand commented Dec 19, 2016

This feature does not seem to be related to extension development.
@roblourens Is this feature just live edit for the "Debugger for Chrome"?

@roblourens
Copy link
Member

I think this is not 'live edit', just reloading the page when a file is changed. You can use browser-sync or any other similar tool which is what I would recommend. It could also be covered by an extension, live atom-live-server.

@ModernWebService
Copy link
Author

ModernWebService commented Dec 20, 2016 via email

@roblourens
Copy link
Member

It sounds like atom-live-server just gives you a keyboard shortcut for live-server https://www.npmjs.com/package/live-server which you can use on its own with vscode too.

@ModernWebService
Copy link
Author

ModernWebService commented Dec 20, 2016 via email

@Fred-Vatin
Copy link

I seems #12080 is a duplicate of this one.

Live Reload feature is a must have when you design a site and the competitors have it.

Since Code wants to stay light, I would suggest the team produce an extension that may embed BrowserSync. It would add at least 3 commands:

  1. Open the current project on the server
    • If the project have an index.html file, go for it
    • Else if there is only one other html file, take it
    • Else throw error
  2. Open the current html file and automatically add its ressources (CSS, JS) to the files list survey.
  3. Stop server

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues *extension-candidate Issue identified as good extension implementation help wanted Issues identified as good community contribution opportunities labels Apr 6, 2017
@weinand weinand added this to the Backlog milestone Apr 6, 2017
@weinand weinand removed their assignment Apr 6, 2017
@architchandra
Copy link

Any update on when this would be implemented or any alternatives? I use Browser-Plus for this in Atom. Any similar extensions for VSCode? I tried to find but couldn't.

@jonaskuske
Copy link

Interested in updates on this as well, having to open Dreamweaver for easy-to-use live preview is quite cumbersome...

@ritwickdey
Copy link
Contributor

ritwickdey commented Oct 5, 2017

@amc123-glitch
Copy link

amc123-glitch commented Oct 5, 2017

@ritwickdey That is a nice extension, would still be nice to have something like live reload that I can use when needing to use a server or command line tool to run the project. Example, Laravel has php artisan serve and then you can add browser sync but you can also just turn on liverload in other editors and your browser and it'll do it without any configuration required.

@ritwickdey
Copy link
Contributor

Hi, @AnthonyMichaelc. That is on the way 😃.

Demo:

I'm testing a normal php project.

@amc123-glitch
Copy link

amc123-glitch commented Oct 18, 2017

@ritwickdey Would definitely like to know more about that extension. Let me/us know how it goes. Like if it loads its own server or it will work on something like mamp, php artisan serve, npm server command, etc

@isidorn isidorn added *extension-candidate Issue identified as good extension implementation and removed *extension-candidate Issue identified as good extension implementation labels Nov 17, 2017
@vscodebot
Copy link

vscodebot bot commented Nov 17, 2017

This issue has been closed because it is not within the scope of the core product, but could be addressed by an extension. The VS Code Marketplace shows all existing extensions and you can get started writing your own extension in a few simple steps. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Nov 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests