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

Updating the view #9

Closed
GiorgioB0nny opened this issue Apr 9, 2023 · 1 comment
Closed

Updating the view #9

GiorgioB0nny opened this issue Apr 9, 2023 · 1 comment

Comments

@GiorgioB0nny
Copy link

It seems the button "reload" is useful when you change the parser so that it immediatly updates the view, however if you change the file content the viewer does not responde to the changes so you have to manually close the tab and open it again... It would be cool to add a feature that set the update to automatic keeping track of content that is changing.

@maziac
Copy link
Owner

maziac commented Apr 10, 2023

Thanks for the suggestion.

There is a limit in the vscode API. The problem is described a little bit here: FileWatcher.

vscode captures file changes only if done from within vscode and from within the same vscode window.
I.e. changes that would be done outside from vscode (the normal case for binary files), the API wouldn't notice.
That's the reason why a reload button is implemented.

BTW automatic reload should work in case you are changing the parser file and save it.
But only (vscode restriction) if the parser uses the same vscode window as the view of the content.

@maziac maziac closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants