Document DiagnosticSet, SyntaxMap
This commit is contained in:
parent
b65cf6d2d9
commit
058f39c180
4 changed files with 45 additions and 5 deletions
|
@ -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>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue