Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Listen for external prefs.json changes #7375

Open
peterflynn opened this issue Apr 1, 2014 · 1 comment
Open

Listen for external prefs.json changes #7375

peterflynn opened this issue Apr 1, 2014 · 1 comment

Comments

@peterflynn
Copy link
Member

Currently, if you edit prefs.json using an external app...

  1. Brackets doesn't reflect the changes until the next restart
  2. If you change any preferences within Brackets after doing the external edit, but before restarting, they will be lost

We could fix both of these by listening for prefs.json changes with a file watcher.

Implementing this involves two wrinkles:

  • It means having two watch roots active at once (one for the user's project, one for the prefs storage location). The code supports this but it hasn't been heavily tested yet.
  • Overlapping watch roots aren't supported currently, so to handle the case where the user's project contains the prefs folder we'd have to do extra work -- either add support for overlapping roots, or remove the prefs watchers when opening such projects and reinstate it when closing them.

So this may be MTB.

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

No branches or pull requests

2 participants