Move r-a status into the activity indicator (#32726)
Deals with the noisy pop-ups by moving r-a **status messages** into the activity indicator, where the rest of the LSP statuses is displayed. https://github.com/user-attachments/assets/e16fb374-d34d-4d03-b5f1-41f71f61c7c7 https://github.com/user-attachments/assets/67c611aa-8b73-4adb-a76d-b0c8ce3e2f94 Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
parent
1edaeebae5
commit
baefec3849
7 changed files with 247 additions and 136 deletions
|
@ -8,9 +8,9 @@ use collections::BTreeMap;
|
|||
use extension::ExtensionHostProxy;
|
||||
use fs::{FakeFs, Fs, RealFs};
|
||||
use futures::{AsyncReadExt, StreamExt, io::BufReader};
|
||||
use gpui::{AppContext as _, SemanticVersion, SharedString, TestAppContext};
|
||||
use gpui::{AppContext as _, SemanticVersion, TestAppContext};
|
||||
use http_client::{FakeHttpClient, Response};
|
||||
use language::{BinaryStatus, LanguageMatcher, LanguageRegistry};
|
||||
use language::{BinaryStatus, LanguageMatcher, LanguageRegistry, LanguageServerStatusUpdate};
|
||||
use lsp::LanguageServerName;
|
||||
use node_runtime::NodeRuntime;
|
||||
use parking_lot::Mutex;
|
||||
|
@ -717,9 +717,18 @@ async fn test_extension_store_with_test_extension(cx: &mut TestAppContext) {
|
|||
status_updates.next().await.unwrap(),
|
||||
],
|
||||
[
|
||||
(SharedString::new("gleam"), BinaryStatus::CheckingForUpdate),
|
||||
(SharedString::new("gleam"), BinaryStatus::Downloading),
|
||||
(SharedString::new("gleam"), BinaryStatus::None)
|
||||
(
|
||||
LanguageServerName::new_static("gleam"),
|
||||
LanguageServerStatusUpdate::Binary(BinaryStatus::CheckingForUpdate)
|
||||
),
|
||||
(
|
||||
LanguageServerName::new_static("gleam"),
|
||||
LanguageServerStatusUpdate::Binary(BinaryStatus::Downloading)
|
||||
),
|
||||
(
|
||||
LanguageServerName::new_static("gleam"),
|
||||
LanguageServerStatusUpdate::Binary(BinaryStatus::None)
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue