-
Notifications
You must be signed in to change notification settings - Fork 3k
Add “Watcher” Mode to Monitor Local File Changes #512
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Ted Thibodeau Jr <[email protected]>
|
I ran into an error when I clicked the Watcher button, we should add I like the idea though, good job! Let's wait for comments on the PR for now. 🏁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial watch state does not transfer the file to the editor, it transfers it when changes are made. Can you also resolve the initial watch state here?

Description
This PR introduces a new “Watcher” mode under the File > Import menu, allowing users to monitor changes to a selected local file and automatically update the editor and graph.
Motivation
I work a lot with generating JSON files and I use jsoncrack.com a lot to view the generation, but having to re-import the JSON every time it is regenerated really disrupts my workflow. jsoncrack.com is already perfect, but I thought that if the tool had a watch mode it would be much better, so I implemented that option.
Implementation Details
window.showOpenFilePicker) opens for the user to select a file.setIntervalruns every 3 seconds to check for changes usingfileHandle.getFile().Benefits