Kay Simmons and Mikayla Maki
22f44c8024
make thread safe connection more thread safe
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-12-03 16:06:01 -08:00
Mikayla Maki
12ab6ca7fe
Added multi-threading problem test
2022-12-03 16:06:01 -08:00
Kay Simmons and Mikayla Maki
18494210e5
Added sql! proc macro which checks syntax errors on sql code and displays them with reasonable underline locations
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-12-03 16:06:01 -08:00
Mikayla Maki
6677fe3b14
Added basic syntax checker to sqlez
2022-12-03 16:06:01 -08:00
Kay Simmons
6a3b636633
rename sql_method to query and adjust the syntax to more closely match function definitions
2022-12-03 16:06:01 -08:00
Kay Simmons
3c6dccdfa7
working serialized writes with panics on failure. Everything seems to be working
2022-12-03 16:06:01 -08:00
Mikayla Maki
db2f016308
Removed database test files
2022-12-03 16:06:01 -08:00
Mikayla Maki and
16654df419
Made dev tools not break everything about the db
...
Also improved multi statements to allow out of order parameter binding in statements
Ensured that all statements are run for maybe_row and single, and that of all statements only 1 of them returns only 1 row
Made bind and column calls add useful context to errors
Co-authored-by: kay@zed.dev
2022-12-03 16:06:01 -08:00
Mikayla Maki
049c348db3
Added extra sql methods
2022-12-03 16:06:01 -08:00
Mikayla Maki
28ea35bf9f
Touched up sql macro
2022-12-03 16:06:01 -08:00
Mikayla Maki
732ce40a5c
Finished terminal working directory restoration
2022-12-03 16:06:01 -08:00
Mikayla Maki
3a5f46ea21
Fixed workspace tests
2022-12-03 16:06:01 -08:00
Mikayla Maki
80df7a3698
WIP: Some bugs switching to database provided IDs, terminal titles don't reload when restored from serialized, workspace tests are no longer passing but should be easy to fix when it isn't 11:44
2022-12-03 16:06:01 -08:00
Mikayla Maki
3ea3593b1a
Added UUID based, stable workspace ID for caching on item startup. Completed first sketch of terminal persistence. Still need to debug it though....
2022-12-03 16:06:01 -08:00
Mikayla Maki
9cd1ea77cb
WIP termial implementation. need some way of getting the currently valid workspace ID
2022-12-03 16:06:01 -08:00
Mikayla Maki
1c6cbbd563
Implementing persistence for the terminal working directory, found an issue with my current data model. :(
2022-12-03 16:06:01 -08:00
Kay Simmons
1e3cc06c73
WIP serializing and deserializing editors
2022-12-03 16:06:01 -08:00
Mikayla Maki
c31f5cd9ec
removed test file
2022-12-03 16:06:01 -08:00
Mikayla Maki and
f07cde2afd
workspace level integration of serialization complete! Time for item level integration....
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:06:01 -08:00
Mikayla Maki
163ee2b188
Rebased to main
2022-12-03 16:06:01 -08:00
Mikayla Maki and
102e150d1a
Polishing workspace data structures
...
Co-authored-by: kay@zed.dev
2022-12-03 16:06:01 -08:00
Mikayla Maki
8465e9262b
Added center group deserialization
2022-12-03 16:06:01 -08:00
Kay Simmons
72faa514b4
wip serialize editor
2022-12-03 16:06:01 -08:00
Kay Simmons and Mikayla Maki
ff5f2cbed7
Dock persistence working!
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-12-03 16:06:01 -08:00
Kay Simmons
337881b490
wip
2022-12-03 16:06:01 -08:00
Mikayla Maki and
6c0a41919b
Distributed database pattern built.
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:06:01 -08:00
Mikayla Maki
dc47ffbd00
WIP
2022-12-03 16:06:00 -08:00
Mikayla Maki
a062ac2c27
Moved to workspaces crate... don't feel great about it
2022-12-03 16:05:26 -08:00
Mikayla Maki
853f0db8ec
WIP commit, migrating workspace serialization code into the workspace
2022-12-03 16:05:25 -08:00
Mikayla Maki
e097f1f598
Done first draft of strongly typed migrations
2022-12-03 16:05:25 -08:00
Kay Simmons
2a956a31db
Add typed statements
2022-12-03 16:05:25 -08:00
Mikayla Maki
4766c18379
Re-use big union statement for get_center_pane
2022-12-03 16:05:25 -08:00
Mikayla Maki and
a5e0ba4476
Finished the bulk of workspace serialization. Just items and wiring it all through.
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:05:25 -08:00
Mikayla Maki
3225aee686
Refined sqlez, implemented 60% of workspace serialization sql
2022-12-03 16:05:25 -08:00
Mikayla Maki
87a3475db3
Got Zed compiling again 🥰
2022-12-03 16:05:25 -08:00
Kay Simmons
3925874dd3
replace worktree roots table with serialized worktree roots list
2022-12-03 16:05:25 -08:00
Kay Simmons
b28c1ee0ce
more refactoring and slightly better api
2022-12-03 16:05:25 -08:00
Mikayla Maki
f673eaf54d
WIP3
2022-12-03 16:05:25 -08:00
Mikayla Maki
1c9ce768d2
WIP2
2022-12-03 16:05:25 -08:00
Mikayla Maki
1f01594267
WIP
2022-12-03 16:05:25 -08:00
Mikayla Maki
0646d7ea9e
Moved docks to a better position
2022-12-03 16:05:25 -08:00
Kay Simmons
c5095ac906
impl bind and column and adjust pane tables
2022-12-03 16:05:25 -08:00
Mikayla Maki
2e3cb9dd97
Converted to sqlez, so much nicer
2022-12-03 16:05:25 -08:00
Mikayla Maki
a8469d219e
WIP, incorporating type parsing using new sqlez patterns
2022-12-03 16:05:25 -08:00
Mikayla Maki
f5eefda672
WIP almost compiling with sqlez
2022-12-03 16:05:25 -08:00
Mikayla Maki
216a182a46
Finished implementing the workspace stuff
2022-12-03 16:05:25 -08:00
Mikayla Maki
152480f492
remove submodule
2022-12-03 16:05:25 -08:00
Mikayla Maki
98ac6099f4
Added sqlez api
2022-12-03 16:05:25 -08:00
Kay Simmons
f6847e5ecc
WIP switching to sqlez
2022-12-03 16:05:24 -08:00
Mikayla Maki
26f8c3cfe9
Abandoning rusqlite, the API is miserable
2022-12-03 16:04:10 -08:00