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:
parent
3aa242e076
commit
0325bda89a
2 changed files with 83 additions and 47 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue