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

How do I refresh? #6

Open
alinq opened this issue Oct 21, 2017 · 8 comments
Open

How do I refresh? #6

alinq opened this issue Oct 21, 2017 · 8 comments

Comments

@alinq
Copy link

alinq commented Oct 21, 2017

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.

@Jasonlhy
Copy link
Owner

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.

@alinq
Copy link
Author

alinq commented Oct 23, 2017

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.

@Jasonlhy
Copy link
Owner

Just add command Browser Sync: Refresh Side Panel to refresh the side panel in version 1.3.0

@alinq
Copy link
Author

alinq commented Oct 25, 2017

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.

@Jasonlhy
Copy link
Owner

Jasonlhy commented Oct 27, 2017

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.

@alinq
Copy link
Author

alinq commented Oct 27, 2017

Help -> Toggle Developer Tool

I didn't know about it. Already found it helpful.

@alinq
Copy link
Author

alinq commented Mar 20, 2018

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"

@Jasonlhy
Copy link
Owner

Jasonlhy commented Apr 8, 2018

I added this function in recent commits, will publish its update in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants