Commit Graph
31406 Commits
Author SHA1 Message Date
Piotr Osiewicz 426fd176b8 Add test for new DeploySearch behaviour 2024-01-11 18:39:28 +01:00
Piotr Osiewicz 97251f0ef8 project search: Do not open a new existing item in the current pane for DeploySearch
Fixes https://github.com/zed-industries/community/issues/2395 using the first approach suggested in the original post (focus the existing search without bringing it over to a pane).
2024-01-11 18:39:28 +01:00
Conrad Irwin 049e2b23ee Guard against infinite loop in focus handling 2024-01-11 10:38:08 -07:00
Joseph T. Lyons b6f58f07e6 Return a single Option from EventCoalescer 2024-01-11 12:27:59 -05:00
Antonio Scandurra edffb1c720 Move back to sorting entries in the depth map as we insert them 2024-01-11 18:24:07 +01:00
Joseph T. Lyons 9d094249c4 Only return environment when period ends 2024-01-11 11:30:22 -05:00
Joseph T. Lyons 4a26e632f6 Fix bug with improperly reported environment
When logging the edit environment, we were logging the newest environment being sent into the EventCoalescer on the latest activity log, when we should've been logging the environment that was associated with the ended period within the EventCoalescer.
2024-01-11 11:24:55 -05:00
Antonio Scandurra a0bc7b4f2a 💄 2024-01-11 16:59:33 +01:00
Kirill Bulatov c12d3cfe32 Show abs path matches in file finder (#4018)
Deals with https://github.com/zed-industries/community/issues/2158

Release Notes:

- Make File finder to show matching file for the abs path queries
2024-01-11 17:57:31 +02:00
Antonio Scandurra ec0cd0bcc2 Reuse line layouts when reusing view 2024-01-11 16:57:06 +01:00
Kirill Bulatov 08c9f2f621 Show abs path matches in file finder 2024-01-11 17:49:46 +02:00
Kirill BulatovandMarshall Bowers 9b1583509e Fix whitespace symbol colors in the editor, use zed1 one
co-authored-by: Marshall Bowers <marshall@zed.dev>
2024-01-11 17:43:49 +02:00
Kirill Bulatov f00655a3d8 Restore hover action in the editor 2024-01-11 16:19:44 +02:00
Antonio Scandurra f18354c6fe Reuse cursor style when reusing a view tree 2024-01-11 15:03:34 +01:00
Kirill Bulatov caf1395376 Do not split on only external directories being drag and dropped (#4015)
Release Notes:

- Fixed drag and dropped folders opening an empty split pane
2024-01-11 15:23:53 +02:00
Joseph T. Lyons 7cb390bf63 Instrument edit events (#4006)
The goal of this PR is to send up events that contain the duration of
keyboard activity within Zed. I built the `EventCoalescer`, which gets
called called each time a key is pressed, within any environment (in the
case of this PR, within "editor" and "terminal). The" `EventCoalescer`
holds a start and end DateTime and adjusts the end instant as events
come in, until a timeout from the last event is hit.

I did my best to keep this mechanism efficient (avoiding vectors to
store moments in time, avoiding spawning timers threads, etc.), because
I know this is going to be per keystroke, but its behind a lock on the
telemetry struck, since it has to know when the environment changes, in
which point, it will automatically end the activity period, even if
there is no timeout. Because we have to have access to it from different
parts of the system, we have to go through the lock, which worried me a
bit (@mikayla-maki's intuition is that it should be fine).

As for the event, I take the time between the durations reported by the
event coalescer and send that up to zed - the indention is to
reconstruct the start and end times on zed.dev, in the same way we use
the event offset times and the time on zed.dev to get the official event
timestamp, and avoid the issue of the user having their system clocks
set wrong.

I'd really appreciate it if @nathansobo or @maxbrunsfeld could check
this out.

Release Notes:

- N/A
2024-01-11 08:19:29 -05:00
Kirill Bulatov c6687935f7 Do not split on only external directories being drag and dropped 2024-01-11 15:09:43 +02:00
Kirill Bulatov 43abe91a02 Enforce no dbg! and todo! in Rust code via clippy lints in the CI job (#4005)
Release Notes:

- N/A
2024-01-11 14:25:31 +02:00
Antonio Scandurra c495bde3da Reuse input handler when reusing a view tree 2024-01-11 13:22:59 +01:00
Kirill BulatovandPiotr 392bce9452 Remove redundant install Rust steps
Those were not installing Rust but configuring it via rustup, and
those configurations were done on `stable` toolchain which is not what we use (see rust-toolchain.toml)

co-authored-by: Piotr <piotr@zed.dev>
2024-01-11 14:11:13 +02:00
Kirill BulatovandPiotr a889ce308c Properly require clippy installation, try to shuffle clippy arguments
co-authored-by: Piotr <piotr@zed.dev>
2024-01-11 13:56:28 +02:00
Antonio Scandurra 34a965059a Explicitly push a node in the dispatch tree when painting a new view 2024-01-11 12:48:05 +01:00
Antonio Scandurra 7524367853 Avoid casting view ids to u32
Also, it looks like using a u64 directly doesn't work well with Metal
shaders, so we unpack the u64 into two u32s.
2024-01-11 12:28:48 +01:00
Piotr Osiewicz 1061bc9dbf editor: extend diff hunk range for custom transform blocks. (#4012)
Reported by Mikayla:

![image](https://github.com/zed-industries/zed/assets/24362066/b744d82e-328f-4554-becf-96f9fa92bfc8)
Note how the line with rust analyzer error does not have a git diff
hunk.
vs:

![image](https://github.com/zed-industries/zed/assets/24362066/e285af7a-b8ab-40e9-a9c6-b4ab8d6c4cd0)

Release Notes:
- N/A
2024-01-11 12:26:12 +01:00
Mikayla 10f7f2c447 enviroment -> environment 2024-01-10 22:57:58 -08:00
Joseph T. Lyons 9ed59ba8c3 Increase debug mode queue size 2024-01-11 01:12:49 -05:00
Joseph T. Lyons 8aa67fbe3d Never send an an empty set of events 2024-01-11 01:12:30 -05:00
Conrad Irwin 60f7c45d35 Stop following when project is unshared
Before this change the views would continue to update in the background
of the "disconnected" dialogue, which was disconcerting.
2024-01-10 23:09:09 -07:00
Mikayla Maki 901c0a21a2 Uncomment last tests (#4009)
With this, we're done all known things that need porting. 

Release Notes:

-
2024-01-10 20:00:14 -08:00
Mikayla eff615bf7d Reverse context arrays in child predicate test 2024-01-10 19:54:39 -08:00
MikaylaandConrad 97db22ad7d Add remaining tests
co-authored-by: Conrad <conrad@zed.dev>
2024-01-10 19:39:43 -08:00
Mikayla 7f6a640cb9 Fix first few asserts 2024-01-10 18:26:01 -08:00
Joseph T. Lyons 78913b5f7c Add reminder for the future 2024-01-10 21:02:34 -05:00
Mikayla Maki 8030f73034 Remove remaining port related todos (#3994)
TODO:
- [x] Audit all TODO comments in Zed source and mark port related ones
with a !
- [x] Resolve all todos written as `todo!`

Release Notes:

- N/A
2024-01-10 17:31:05 -08:00
Max Brunsfeld 110f58e218 Handle reconnects to the livekit server in which local tracks are unpublished (#3992)
Release notes:

* Fixed a bug where network interruptions could cause audio and screen
sharing to stop working without indicating that they were stopped, and
there was no way to restart the audio stream.
2024-01-10 16:34:11 -08:00
Mikayla 2e98907766 Add back ime_key 2024-01-10 16:29:00 -08:00
Max BrunsfeldandJulia fc871851db Detect when a track is unpublished due to reconnecting to livekit
Co-authored-by: Julia <julia@zed.dev>
2024-01-10 16:12:26 -08:00
Max BrunsfeldandJulia 4e6d9913e6 Expose a single updates stream from live_kit_client::Room
Co-authored-by: Julia <julia@zed.dev>
2024-01-10 16:10:52 -08:00
Conrad Irwin 90ebdc0c26 Fix fold-related panic (#4008)
Although it's not super clear why this fails; in zed1 we used to have a
bounds
check. Restoring the bounds check for now, but leaving a debug_assert!
in case
a local reproduction happens.

Release Notes:

- Fix a panic that happened sometimes when rendering folds
2024-01-10 16:53:25 -07:00
Conrad Irwin 93fdfa6305 Fix fold-related panic 2024-01-10 15:51:13 -07:00
Joseph T. Lyons bf796791a1 Rename field in telemetry struct 2024-01-10 17:41:02 -05:00
Kirill BulatovandMax 6dde745b2e Remove active call data when it was accepted
That hopefully helps with call notifications sometimes not being closed

co-authored-by: Max <max@zed.dev>
2024-01-11 00:35:00 +02:00
Kirill Bulatov 49f7129b68 Enfoce no dbg! and todo! in Rust code via clippy lints in the CI job 2024-01-11 00:26:46 +02:00
Antonio Scandurra 15c38a9daf Rename reuse_geometry to reuse_view 2024-01-10 23:06:10 +01:00
Joseph T. Lyons 082a81f0a8 WIP 2024-01-10 17:04:26 -05:00
Antonio Scandurra 68b53e2fac Merge remote-tracking branch 'origin/main' into cache
# Conflicts:
#	crates/copilot/src/sign_in.rs
#	crates/gpui/src/window.rs
#	crates/workspace/src/pane_group.rs
2024-01-10 22:58:52 +01:00
Joseph T. Lyons 37caf3e06c Merge branch 'main' into instrument-keyboard-events 2024-01-10 16:03:01 -05:00
Mikayla f2bdd30ffc Remove last todos 2024-01-10 12:13:12 -08:00
Mikayla 6de4edbc68 Restore GPUI test 2024-01-10 11:43:52 -08:00
Piotr Osiewicz a1dd2cfd0c Remove todo from search tests 2024-01-10 11:26:11 -08:00