Introduce a LanguageServerId wrapper type
Clarify the meaning of all the usizes in use in all of these struct fields an method signatures.
This commit is contained in:
parent
c5f86bc6af
commit
4dd917c123
16 changed files with 166 additions and 117 deletions
|
@ -436,6 +436,7 @@ mod tests {
|
|||
use indoc::indoc;
|
||||
|
||||
use language::{Diagnostic, DiagnosticSet};
|
||||
use lsp::LanguageServerId;
|
||||
use project::HoverBlock;
|
||||
use smol::stream::StreamExt;
|
||||
|
||||
|
@ -620,7 +621,7 @@ mod tests {
|
|||
}],
|
||||
&snapshot,
|
||||
);
|
||||
buffer.update_diagnostics(0, set, cx);
|
||||
buffer.update_diagnostics(LanguageServerId(0), set, cx);
|
||||
});
|
||||
|
||||
// Hover pops diagnostic immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue