madskristensen / browserreloadonsave Goto Github PK
View Code? Open in Web Editor NEWA Visual Studio extension
License: Other
A Visual Studio extension
License: Other
Editing a file in Visual Studio does not trigger a reload, but editing a file using notepad does
Note browserlink is working and refreshing via the reload button works, but the automatic save reload doesn't
Currently the reload doesn't happen on browsers after editing a page
Reload should occur on browsers after editing a page
Does not seem to be working on VS 15.9.7
Feature request - I'm running webpack + HMR in an ASP.NET Core 2 project and want to allow webpack to handle the sass updating (without page reloads) and, to let Browser Reload to handle cshtml changes.
As it stands I've added a '\wwwroot\dist' item to the Ignore patterns option. This works, but of course now this applies to all solutions and projects. Would it be possible to add, say, a 'browserreload.config' file to the project and these options would override the app level ones instead?
Microsoft Visual Studio Community 2017
Version 15.8.8
Hi, I have been trying to use Visual Studio with Browser Reload for a personal project. I have a terminal open with a gulp task to watch and build any changes applied to css and js, and I'm referencing this files in my razor pages. Both files take the same time to transpile (around 200ms).
When applying changes to CSS, everything is smooth. Once I press ctrl+s, the browser syncs perfectly.
Once I apply changes to JS files, the browser reload also works, but no changes are applied. After a few seconds, it detects another change and sends another reload to the browser, this time with the changes applied.
I'm not sure this is a browser reload issue, so I'm looking for some guidance.
cshtml changes aren't reflected
Nothing changes need to manually refresh the page
Changes should occur
[UPDATE]
Issue is related to #7 (read for update)
Does not work with Firefox (work fine with Chrome)
ReferenceError: browserLink is not defined[Więcej informacji] page.js:4:9
interval moz-extension://e19ef023-73df-44a0-a1c0-4b749074d8de/page.js:4
So since you can compile RCL (Razor Class Library) Views/Pages at runtime it would really be awesome if it would reload the webpage in the browser as well.
Per https://twitter.com/mkristensen/status/863070980381462528?cn=cmVwbHk%3D&refsrc=email
Mads requested that I create an issue to track the possibility of reloading the browser after a successful build, as opposed to, or in addition to, reloading on save.
Honestly, I don't know if this is the correct repo to be creating this issue given the name of the repo -- "Reload on Save". I'm not sure if people would expect a "Reload on Save" extension to "Reload on Build". I'll be happy to recreate this issue in another repo if necessary.
The general idea is that it would be helpful if the browser would reload after a successful compilation. Often, I find myself writing back-end code for a page, and I'd love to have something that would refresh the browser once the build finishes.
The page is not refreshed after a successful compilation.
The page should refresh after a successful compilation.
Cannot install extension on Visual Studio 2017. I can only choose vs2015.
Browser doesn't reload on save if you are on an error page
If I get an error page and I make a correction in my code, I use the CTRL + S hotkey combination to save the file, but the page does not refresh.
I would expect that the page would refresh regardless of what kind of page it is... error or otherwise (within reason -- ie-a page related to the site being worked on)
The extension was working property until I updated my Visual Studio
Now when I save some file the browser doesn't reload like before. And I have to manually reload the page after saving. Also in the options Enable Reload on Save is checked.
not use for me.but it is work when i enter 'ctrl+alt+enter'.Browser Link panel shows that the connection is alive.
thanks for help me!
vs2015 enterprise update2 .i am using aspx file.
Reload is not working when changing cshtml pages
Reload doesn't show edits.
Reload should show edits
Enable Reload on Save is... enabled
The weird thing was, before I updated to VS 16.3.2 it was working fine. No issues. :/
Hej Mads,
When running an ASP.NET Core application (1.1 running on top of 1.1 Core) Browserlink is enabled and working across browsers (IE, Chrome, Edge, Firefox). Saving a JS or CSS file triggers an automatic reload of all browsers.
BUT on saving changes to a razor view cshtml file does not trigger a reload.
I was expecting the browser to reload on any change to any of the files listed in the file filter in [Options\Web\Browser reload on save]
Reload .... 🎱
Make the extension available in Visual Studio 2022.
Message that it is already installed to all applicable products appears even though it is not installed in Visual Studio 2022.
It is also not listed in Online Extensions in Manage Extensions Visual Studio 2022.
Installs and works in Visual Studio 2022.
Note: Sorry for the all the extra details. I probably could have stopped with the title on this one.
A lot of my projects use NancyFX as owin middleware and the SystemWeb host, will this work for those types of projects?
I've run the web app under the debugger, a browser is open to the page. I've stopped the debugger to make further changes.
I now change one of the files that trigger linked browser reload, and the browser updates to show an error page. This is annoying because it is often useful to be able to see the "old" state of the page when changing to the "new".
If reload is enabled it always reloads even if, because the debugger is not running, the page cannot be reloaded.
Please add another state to the enabled setting: reload, disabled, and "reload under debugger"
Replace this text with a short description
Explain what it's doing and why it's wrong
Explain what it should be doing after it's fixed.
Reload not working.
Page not reloaded.
Page should reload.
Hi @madskristensen,
Firstly we appreciate the effort you make towards all your extensions.
This issue keeps getting closed, even though it doesn't always get fully fixed:
It was first noted here:
#5
Then the same type of issue was opened here:
#6
In both cases the issue gets closed without someone verifying that it actually is fixed
Just to recap:
CSHTML - NOT WORKING
CSS - WORKING
JS - WORKING
Again I'll open the invitation to you, if you would like to remote into my computer and test this out yourself you are welcome to, let's try and get this issue resolved
UPDATE
I finally got the the browser to reload on save for .cshtml
The issue is that my projects are on my D drive under D:\Programming\Projects
I then moved one of my projects onto the C drive and it instantly worked
I'm not sure why it doesn't work on another drive as yet... I'll keep investigating, could be a permission problem?
We are using proxying requests through to IIS Express via https://github.com/webpack/webpack-dev-server. When we access a page that has been proxy'd through when this extension is active, VS crashes.
Best info I could dig up by attaching another copy of VS:
System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Value cannot be null.
I'm not actually fussed about this extension working in this scenario (I imagine it's some limitation with proxying web socket requests), and webpack-dev-server is fulfilling this role, however would be good for VS to keep on trucking.
At the moment, having to enable/disable this plugin depending on the particular project and the tools used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.