Document DiagnosticSet, SyntaxMap

This commit is contained in:
Max Brunsfeld 2024-01-18 15:34:04 -08:00
parent b65cf6d2d9
commit 058f39c180
4 changed files with 45 additions and 5 deletions

View file

@ -114,10 +114,14 @@ lazy_static! {
));
}
/// Types that represent a position in a buffer, and can be converted into
/// an LSP position, to send to a language server.
pub trait ToLspPosition {
/// Converts the value into an LSP position.
fn to_lsp_position(self) -> lsp::Position;
}
/// A name of a language server.
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct LanguageServerName(pub Arc<str>);