Improve lsp notifications (#10220)

1. They now will not go off-screen
2. You can scroll long messages.
3. Only one notification per language server is shown at a time
4. The title/text are now distinguished visually
5. You can copy the error message to the clipboard

Fixes: #10217
Fixes: #10190
Fixes: #10090

Release Notes:

- Fixed language server notifications being too large
([#10090](https://github.com/zed-industries/zed/issues/10090)).
This commit is contained in:
Conrad Irwin 2024-04-06 10:17:18 -06:00 committed by GitHub
parent 3aa242e076
commit 0325bda89a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 83 additions and 47 deletions

View file

@ -638,7 +638,7 @@ impl Workspace {
project::Event::LanguageServerPrompt(request) => {
let mut hasher = DefaultHasher::new();
request.message.as_str().hash(&mut hasher);
request.lsp_name.as_str().hash(&mut hasher);
let id = hasher.finish();
this.show_notification(id as usize, cx, |cx| {