-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workspace/#640): persistence infrastructure + persist workspace …
…and window state (#1703) * add Filesystem.getStoreFolder * expose Filesystem.getOrCreateConfigFolder * add definition of Persistence "items" * add definitions for Global store * add store instantiation * add logic to write to file * trigger on state change * add Workspace store * persist workspace store on move and resize * remove cliOptions from StoreThread in favor of explicit arguments * move Cli from Core to bin_editor * fall back to persisted working directory if not specified on the command line * read store file on instantiation * add get function to retrieve an item from the store * make state.workspace non-optional * set window size and position initially based on persisted workspace settings * post-rebase fix * fix warning * add interface * refactor * special case hash for "global" * fix window positioning * add bool codec * persist maximized window state * cache store file path * use Luv for non-blocking I/O on persist * fall back to Documents instead of working directory * move Persistence infrastructure to Core * forward store infrastructure functions to builtin stores * refactor store API for great good * simplify builtin store API * fix tests * handle missing store path more gracefully * Switch to new Dir API * Use forked dir for now * Update lockfiles * Formatting Co-authored-by: bryphe <bryphe@outrunlabs.com>
- Loading branch information
Showing
37 changed files
with
1,412 additions
and
1,064 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.