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

Listen for external prefs.json changes #7375

@peterflynn

Description

@peterflynn

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions