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
Mikayla Maki
89e8e6ef22
Fixed failing serialization issues
2022-12-03 16:04:10 -08:00
Mikayla Maki and
6fe27c486c
Started working on dock panes
...
co-authored-by: kay@zed.dev
2022-12-03 16:04:10 -08:00
Mikayla Maki and
cd84a3ee88
Refactored workspaces API and corrected method headers + fixed bug caused by migration failures
...
co-authored-by: kay@zed.dev
2022-12-03 16:04:10 -08:00
Mikayla Maki and
9551bebee2
Rebase - Got Zed compiling and fixed a build error due to conflicting dependencies that cargo didn't catch :(
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:04:10 -08:00
Mikayla Maki
23af638ba8
WIP: fixing up behavior of workspace initialization
2022-12-03 16:04:10 -08:00
Mikayla Maki
656c5c6530
Figured out a good schema for the pane serialization stuff
2022-12-03 16:04:10 -08:00
Mikayla Maki
cca47fa053
WIP: Writing tests
2022-12-03 16:04:10 -08:00
Mikayla Maki
d603530edf
added stubs for more tests
2022-12-03 16:04:10 -08:00
Mikayla Maki
6b2aa648af
Tidied up code, managed errors, etc.
2022-12-03 16:04:10 -08:00
Mikayla Maki
ad7dc9588e
All workspace tests passing :D
2022-12-03 16:04:10 -08:00
Mikayla Maki
6126f2d1f6
Rebase - Successfully detecting workplace IDs :D
2022-12-03 16:04:10 -08:00
Mikayla Maki
256ac50057
Rebase fix + Started writing the real SQL we're going to need
2022-12-03 16:04:10 -08:00
K Simmons
0a387bc34c
rebase fix - almost have serialize_workspace piped to the workspace constructor. Just a few compile errors left
2022-12-03 16:04:10 -08:00
K Simmons
c42e629292
wip
2022-12-03 16:04:10 -08:00
K Simmons
7d11a3b37f
WIP
2022-12-03 16:04:10 -08:00
Mikayla Maki and
a611c97eea
Built first draft of workspace serialization schemas, started writing DB tests
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:04:10 -08:00
Mikayla Maki
d7c7873bc2
Rebase fix - Reworking approach to sql for take
2022-12-03 16:04:10 -08:00
Mikayla Maki
20f13c46ce
Fix rebase - Broken tab
2022-12-03 16:04:10 -08:00
Julia
3dcd884c93
Cleanup dbg
2022-12-02 16:42:49 -05:00
Julia and Max Brunsfeld
3a5fbe5398
Fix tab following order test to wait for file open to propagate
...
Now it can actually repro the original bug
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-12-02 16:09:37 -05:00
Antonio Scandurra and Max Brunsfeld
ae3c568e51
WIP: Manually rollback transactions to avoid spurious savepoint failure
...
TODO:
- Avoid unwrapping transaction after f(tx)
- Remove duplication between `transaction` and `room_transaction`
- Introduce random delay before and after committing a transaction
- Run lots of randomized tests
- Investigate diverging diagnostic summaries
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-12-02 20:36:50 +01:00
Antonio Scandurra and Max Brunsfeld
fca76d9abe
Remove stale Error variant
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-12-02 19:20:51 +01:00
Antonio Scandurra
3fac823050
Merge branch 'main' into reconnections-2
2022-12-02 19:09:33 +01:00
Antonio Scandurra
1df91393a5
Delete empty rooms
2022-12-02 16:56:41 +01:00
Antonio Scandurra
21f5e6d8a6
Clear stale data on startup
...
This is a stopgap measure until we introduce reconnection support.
2022-12-02 16:30:00 +01:00
Antonio Scandurra
2b3b729895
Move modules into collab library as opposed to using the binary
...
This ensures that we can use collab's modules from the seed script
as well.
2022-12-02 14:37:52 +01:00
Antonio Scandurra
ed7b6e3eb1
Make all tests pass again after migration to sea-orm
2022-12-02 14:22:36 +01:00
Antonio Scandurra
8a5f89eb56
Use i32 to represent Postgres INTEGER types in Rust
2022-12-02 13:58:54 +01:00
Antonio Scandurra
0ddca2b768
Finish porting remaining db methods to sea-orm
2022-12-02 13:58:23 +01:00
Julia
a23a2ba5ad
Add test that should have exercised tab reordering while following
...
Except it doesn't, it passes both with and without the prior commit.
Investigate further
2022-12-02 00:31:16 -05:00