Compare commits

...

6 Commits

Author SHA1 Message Date
Kirill Bulatov
c844f1caa5 zed 0.156.1 2024-10-10 13:46:39 +03:00
Kirill Bulatov
597d651d93 Fix the completions being too slow (#19013)
Closes https://github.com/zed-industries/zed/issues/19005

Release Notes:

- Fixed completion items inserted with a delay
([#19005](https://github.com/zed-industries/zed/issues/19005))

---------

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2024-10-10 12:58:34 +03:00
Joseph T Lyons
f6d974f3b1 v0.156.x stable 2024-10-09 11:32:19 -04:00
Kirill Bulatov
f3bf41aea2 Always wait for completion resolve before applying the completion edits (#18907)
After https://github.com/rust-lang/rust-analyzer/pull/18167 and certain
people who type and complete rapidly, it turned out that we have not
waited for `completionItem/resolve` to finish before applying the
completion results.

Release Notes:

- Fixed completion items applied improperly on fast typing
2024-10-09 17:18:32 +03:00
Remco Smits
e6cc9f5dfa gpui: Fix uniform list horizon offset for non-horizontal scrollable lists (#18748)
Closes #18739

I'm not sure why the `+ padding.left` was added, but this was the cause
of the issue. I also tested removing the extra left padding but didn't
seem to see a difference inside the project panel. So we can maybe even
remove it?

**Before:**
![Screenshot 2024-10-04 at 21 43
34](https://github.com/user-attachments/assets/b5d67cd9-f92b-4301-880c-d351fe156c98)

**After:**
<img width="294" alt="Screenshot 2024-10-04 at 21 49 05"
src="https://github.com/user-attachments/assets/8cc84170-a86b-46b8-91c9-39def64f0bd0">

Release Notes:

- Fix code action list not horizontal aligned correctly
2024-10-04 23:09:29 +03:00
Joseph T Lyons
8ee952076a v0.156.x preview 2024-10-02 11:03:39 -04:00
5 changed files with 10 additions and 5 deletions

2
Cargo.lock generated
View File

@@ -14398,7 +14398,7 @@ dependencies = [
[[package]]
name = "zed"
version = "0.156.0"
version = "0.156.1"
dependencies = [
"activity_indicator",
"anyhow",

View File

@@ -297,7 +297,11 @@ impl Element for UniformList {
for (mut item, ix) in items.into_iter().zip(visible_range) {
let item_origin = padded_bounds.origin
+ point(
scroll_offset.x + padding.left,
if can_scroll_horizontally {
scroll_offset.x + padding.left
} else {
scroll_offset.x
},
item_height * ix + scroll_offset.y + padding.top,
);
let available_width = if can_scroll_horizontally {

View File

@@ -631,7 +631,8 @@ impl LanguageServer {
"filterText".to_string(),
"labelDetails".to_string(),
"tags".to_string(),
"textEdit".to_string(),
// NB: Do not have this resolved, otherwise Zed becomes slow to complete things
// "textEdit".to_string(),
],
}),
insert_replace_support: Some(true),

View File

@@ -2,7 +2,7 @@
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed"
version = "0.156.0"
version = "0.156.1"
publish = false
license = "GPL-3.0-or-later"
authors = ["Zed Team <hi@zed.dev>"]

View File

@@ -1 +1 @@
dev
stable