Mikayla Maki
ec9d869ac9
Wire in conflict styling
2023-05-22 10:10:47 -07:00
Mikayla Maki
90b48be8e7
Add conflict styles to project panel
2023-05-22 10:09:55 -07:00
Mikayla Maki
a2f0cf5851
Add seperate scrollbar styling
2023-05-22 10:03:02 -07:00
Antonio Scandurra
757d011496
Avoid leaking docks when adding panels
2023-05-22 18:57:14 +02:00
Kirill Bulatov
15c3165cd1
Do not refocus project search query on ESC press ( #2494 )
...
Closes
https://linear.app/zed-industries/issue/Z-1471/escape-should-not-move-focus-to-project-search
Makes ESC more predictable as a shortcut that cancels/roll backs the
state in project search panel.
Release Notes:
* Fixes ESC making focus to jump in project search panel
2023-05-22 19:56:10 +03:00
Mikayla Maki
a98f93f7c0
Wire project panel themes into rust
2023-05-22 09:55:59 -07:00
Antonio Scandurra
f0039e1e86
Uncomment persistence test
2023-05-22 18:32:28 +02:00
Antonio Scandurra
6bf2ddc461
Await closing of items in tests
2023-05-22 18:28:30 +02:00
Antonio Scandurra
edb2adab1f
Fix more tests
2023-05-22 18:21:12 +02:00
Antonio Scandurra
0bf0e226b4
Transfer focus to root view only if previously-focused view was dropped
2023-05-22 18:05:08 +02:00
Max Brunsfeld
7572455cb7
Remove assertions about behavior on invalid settings file
2023-05-22 08:48:37 -07:00
Julia
b1f85d20dd
Add test for paragraph vertical movements
2023-05-22 11:48:07 -04:00
Antonio Scandurra
eafc63873f
Fix some project panel tests
2023-05-22 16:18:53 +02:00
Antonio Scandurra
3b6f02b247
Persist project and terminal panel sizes
2023-05-22 15:55:44 +02:00
Julia
36ab9cb62e
Add paragraph based vertical movements
2023-05-22 09:12:36 -04:00
Antonio Scandurra
8f56c80d68
Merge branch 'main' into panels
2023-05-22 14:10:17 +02:00
Nathan Sobo
ef566cacd2
Enable test-support on editor in tests
2023-05-20 09:54:38 -06:00
Nathan Sobo
2e1780fc3e
Parse markdown into an OpenAI chat completion request
2023-05-20 09:43:12 -06:00
Mikayla Maki
b72cdb7362
Refactored apart the forward and the backwards iterator for diff hunks
2023-05-19 18:09:47 -07:00
Max Brunsfeld
9eb9a3cb71
Fix spurious setting error logs on non-existent setting keys
2023-05-19 17:15:05 -07:00
Mikayla Maki and max
c9a3283048
refine batched anchor conversions
...
co-authored-by: max <max@zed.dev >
2023-05-19 16:52:57 -07:00
Max Brunsfeld
24feb5c56b
Remove stray prints
2023-05-19 16:52:30 -07:00
Mikayla Maki
7786d9506a
fmt
2023-05-19 16:32:07 -07:00
Mikayla Maki
fac2510950
Rearrange git tests in worktree
...
Add support for renaming work directories
2023-05-19 16:30:00 -07:00
Mikayla Maki
23c223e09c
Fix bug where git diff hunks would not extend through a soft wrap
2023-05-19 16:23:45 -07:00
Mikayla Maki
3c35f275b4
Batch anchor conversions in git hunk iterator
2023-05-19 16:23:45 -07:00
Mikayla Maki
b4c4a9e56c
Calculate y offsets correctly
2023-05-19 16:23:45 -07:00
Max Brunsfeld
59bc869ff4
Remove expensive-to-clone fields from worktree's LocalSnapshot ( #2497 )
...
This fixes performance problems that @nathansobo and I have seen in some
cases, when a large number of files changed on disk. A lot of time was
being spent in `worktree::LocalSnapshot::clone`. I think this may have
been because of needing to clone the `removed_entry_ids` map. This
structure is only really used when *mutating* the `LocalSnapshot` in the
background scanner, so I moved it off of the snapshots.
2023-05-19 16:20:19 -07:00
Max Brunsfeld
cfabf93d1e
Avoid storing removed_entry_ids on the LocalSnapshot
2023-05-19 15:16:04 -07:00
Mikayla Maki
9cae4d8776
Add guards to other pane index removals
2023-05-19 15:10:44 -07:00
Max Brunsfeld
f4756efd54
🎨 Make worktree repositories more consistent
2023-05-19 15:04:37 -07:00
Max Brunsfeld
9c7c9419bb
Don't store next_entry_id on worktree's local snapshot
2023-05-19 13:49:24 -07:00
Kirill Bulatov
e6b8ddc62b
Do not refocus project search query on ESC press
2023-05-19 22:06:47 +03:00
Kirill Bulatov
b367041585
When the file is deleted via project panel, close it in editors ( #2490 )
...
Deals with https://github.com/zed-industries/community/issues/179 by
sending a message about it, to asynchronously apply on all workspaces.
Release Notes:
* Fixes a bug when files, deleted in the project panel were left open in
the editor
2023-05-19 21:51:37 +03:00
Max Brunsfeld
6050d35f23
Remove unnescessary double lookup in repo for ( #2492 )
...
Release Notes:
* Optimize repository queries (preview only)
2023-05-19 11:47:05 -07:00
Kirill Bulatov and Max
6ace6b78db
Use better name for the method that closes deleted buffers
...
co-authored-by: Max <max@zed.dev >
2023-05-19 21:47:00 +03:00
Mikayla Maki
eb3b204ea0
Remove unescessary methods
2023-05-19 11:30:10 -07:00
Max Brunsfeld and Mikayla
f7c6bc72c9
Optimize retrieving repos for entries when rendering the project panel
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-05-19 11:29:02 -07:00
Mikayla Maki
ae40b0f72d
Remove unnescessary double lookup
2023-05-19 11:08:58 -07:00
Antonio Scandurra
b26ccc9017
Show workspace only after initializing it
2023-05-19 19:35:00 +02:00
Antonio Scandurra
3f3354043d
Serialize and deserialize TerminalPanel
2023-05-19 19:26:32 +02:00
Max Brunsfeld
c7f462f883
Fix performance problems in reporting changed FS paths to language servers ( #2491 )
...
Fixes
https://linear.app/zed-industries/issue/Z-1611/main-thread-hangs-while-sending-filesystem-change-events-to-lsp
Release Notes:
* Fixed a lag that would sometime occur when large numbers of files
changed on disk, due to reporting the changed files to language servers.
2023-05-19 09:42:55 -07:00
Max Brunsfeld
fbad8fc1e4
Replace remaining usages of glob crate with globset
2023-05-19 09:36:46 -07:00
Max Brunsfeld
aa9891ee9e
Optimize matching of multiple file-watch globs using the globset crate
2023-05-19 09:13:34 -07:00
Kirill Bulatov
136b128d0f
When the file is deleted via project panel, close it in editors
2023-05-19 18:52:30 +03:00
Antonio Scandurra
90ce4d6ffa
Add new terminal when the terminal panel is activated, and not on focus
2023-05-19 16:07:47 +02:00
Antonio Scandurra
b6997ef75b
Toggle project panel when opening new workspace in a dock-agnostic way
2023-05-19 15:27:18 +02:00
Antonio Scandurra
f762d7f43b
Activate the correct panel when deserializing workspace
2023-05-19 14:18:11 +02:00
Kirill Bulatov
f21bc87309
Properly handle WorktreeId
2023-05-19 12:37:36 +03:00
Max Brunsfeld
fedd6cabb5
Optimize LSP watched file reporting in 2 simple ways
...
* Convert globs to relative paths in advance. This avoids needing to convert
every changed path to an absolute path before performing glob matching.
* Avoid duplicate reporting for language servers with multiple worktrees.
2023-05-18 17:08:51 -07:00