How do I refresh?
Opened this issue · 8 comments
First, thank you for a great extension.
I have a question. How do I refresh a page when I'm in "Proxy mode at side panel" without saving a modified file?
It's a Node.js app and from time to time in development it crashes. After crash the auto refresh on save doesn't work anymore and I have to move it or split it on the workspace to make it work again.
Do you mean something like F5 in the browser to refresh the side panel? In the earlier version of vscode, this can be done by clicking the file on the side panel, but it seems they have removed this feature. I need to check the API whether it is possible to do refresh. The current workaround may be split the side panel and delete existing one.
split the side panel and delete existing one
This is exactly what I'm doing. The problem (the reason I'm here) it starts from / instead from current url when it crashes and I have to navigate back to that state and is a challenge sometimes. I'll be ok with whatever you come out with.
Just add command Browser Sync: Refresh Side Panel
to refresh the side panel in version 1.3.0
I noticed. Thank you. It looks like it does't remember the state like localhost/path/path/etc it refreshes from localhost/, would save some time, the time going back to that state.
I don't know if is the right place here but another feature I would find useful is the console.log to show in Debug Console in VS. Sometimes the app outputs something with console.log on the client side. Also sometimes I want to output something with the console and I have to open the app outside VS. I now the extension uses an iframe and I don't know how much of a challenge is to implement something like this.
Anyways Thank You for the awesome extension, because I can run VS in full screen and have everything in it while working.
It's possible to log simple message, you can view the message at Help -> Toggle Developer Tool. I don't know if it is possible to refresh to the state like localhost/path/path/etc
, need to do some investigation.
Help -> Toggle Developer Tool
I didn't know about it. Already found it helpful.
Thank for "Refresh Side Panel" enhancement. I'm back again because I found that a slight modification will make it perfect: To save all files before refreshing. Will save some time because I always have to use "Save All" before "Refresh Side Panel"
I added this function in recent commits, will publish its update in a few days.