f56d93b37f
Compute scrollbar markers asynchronously ( #10080 )
...
Refs #9647
Fixes https://github.com/zed-industries/zed/issues/9792
This pull request moves the computation of scrollbar markers off the
main thread, to prevent them from grinding the editor to a halt when we
have a lot of them (e.g., when there are lots of search results on a
large file). With these changes we also avoid generating multiple quads
for adjacent markers, thus fixing an issue where we stop drawing other
primitives because we've drawn too many quads in the scrollbar.
Release Notes:
- Improved editor performance when displaying lots of search results,
diagnostics, or symbol highlights in the scrollbar
([#9792 ](https://github.com/zed-industries/zed/issues/9792 )).
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Co-authored-by: Nathan <nathan@zed.dev >
2024-04-03 12:21:17 +02:00
Marshall Bowers
e977db6b94
Enable clippy::search_is_some ( #8748 )
...
This PR enables the
[`clippy::search_is_some`](https://rust-lang.github.io/rust-clippy/master/index.html#/search_is_some )
rule and fixes the outstanding violations.
Release Notes:
- N/A
2024-03-02 21:46:30 -05:00
Piotr Osiewicz
c1b17ee05e
chore: fix clippy lints for rope2, sum_tree, text2 and util
2024-01-01 23:50:14 +01:00
Max Brunsfeld and Mikayla
d5b7254ce0
Ensure collaborators cursor colors are the same in channel buffers as in projects
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-08-24 11:31:41 -07:00
Nathan Sobo
e526fd506e
Rename SumTree::push_tree to ::append
2023-06-19 19:49:33 -06:00
Mikayla Maki and Nathan
bdf7e377f8
Made the map seek target a publicly implementable interface
...
Integrated remove_range with the existing git code
co-authored-by: Nathan <nathan@zed.dev >
2023-05-12 08:37:32 -07:00
Nathan Sobo
fa0fa1075e
Add TreeMap::remove_between that can take abstract start and end points
...
This commit introduces a new adaptor trait for SeekTarget that works around
frustrating issues with lifetimes. It wraps the arguments in a newtype wrapper
that lives on the stack to avoid the lifetime getting extended to the caller
of the method.
This allows us to introduce a PathSuccessor object that can be passed as the
end argument of remove_between to remove a whole subtree.
2023-05-12 08:21:01 -07:00
Mikayla Maki
2430c6b9eb
fmt
2023-05-11 16:06:56 -07:00
Mikayla Maki and Nathan
aa69083b7f
Use more efficient sum tree traversals for removal and improve ergonomics with iter_from
...
co-authored-by: Nathan <nathan@zed.dev >
2023-05-11 16:06:25 -07:00
Mikayla Maki
491f707217
Fix test
2023-05-11 12:03:39 -07:00
Mikayla Maki
50a6410ae8
fmt
2023-05-11 12:02:25 -07:00
Mikayla Maki
4e408e7758
Added status trickle up
2023-05-11 12:01:42 -07:00
Mikayla Maki
d2ce29f171
Got basic replication working :)
2023-05-10 17:37:36 -07:00
Mikayla Maki
970bdb1ee1
Use sum tree traversal to remove paths
2023-05-10 17:37:36 -07:00
Mikayla Maki and petros
5ab87cd95c
WIP: Track live entry status in repository
...
co-authored-by: petros <petros@zed.dev >
2023-05-10 17:37:36 -07:00
Mikayla Maki
c1dcd83835
Fix TreeMap retain
2023-05-08 14:33:58 -07:00
Mikayla Maki and Nathan
627994ab94
WIP: Convert old git repository vec to new treemap based approach.
...
co-authored-by: Nathan <nathan@zed.dev >
2023-05-08 14:33:58 -07:00
Mikayla Maki and Nathan
b84f88b61a
Add a data driven representation of the current git repository state to the worktree snapshots
...
WIP: Switch git repositories to use SumTrees
Co-authored-by: Nathan <nathan@zed.dev >
2023-05-08 14:33:58 -07:00
Max Brunsfeld
42e6ac50ea
Restructure background scanner to handle refresh requests even while scanning
2023-04-12 16:29:51 -07:00
Joseph Lyons
d9a7e1fed6
Appease clippy
2023-01-01 23:50:45 -05:00
ForLoveOfCats and Mikayla
fbea44bc5c
One big cleanup pass of clippy lints
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2022-08-10 16:51:01 -07:00
Antonio Scandurra
8d996bc013
Introduce a new TreeSet struct in sum_tree
...
This is just a special case of `TreeMap<K, V>` where `V = ()`.
2022-07-18 13:40:30 +02:00
Nathan Sobo
1e76d109a3
WIP
2022-03-10 11:32:14 -07:00
Nathan Sobo and Max Brunsfeld
df5b181ad8
Send diagnostic summaries to guests when they join the project
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-01-06 12:12:09 -07:00
Antonio Scandurra
866e9bbc6a
Fix TreeMap::get always returning None
2022-01-05 15:41:30 +01:00
Antonio Scandurra
d53322bd05
Write a simple unit test for TreeMap and fix bug in remove
2021-12-13 11:20:10 +01:00
Nathan Sobo
9836638fb5
More messy progress towards selections in editors
2021-12-11 00:29:34 -07:00
Nathan Sobo
1078299acc
Relax TreeMap value bounds, fix warnings, simplify cmp
2021-12-10 23:35:24 -07:00
Nathan Sobo
ce4c84ca70
Introduce sum_tree::TreeMap<K, V>
...
I think this will be useful to avoid cloning HashMaps in certain cases such as snapshots.
2021-12-10 23:33:15 -07:00