pub trait DefinitionProvider {
// Required method
fn definitions(
&self,
_text: &Rope,
_offset: usize,
_window: &mut Window,
_cx: &mut App,
) -> Task<Result<Vec<LocationLink>>>;
}
Expand description
Definition provider
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_definition
Required Methods§
Sourcefn definitions(
&self,
_text: &Rope,
_offset: usize,
_window: &mut Window,
_cx: &mut App,
) -> Task<Result<Vec<LocationLink>>>
fn definitions( &self, _text: &Rope, _offset: usize, _window: &mut Window, _cx: &mut App, ) -> Task<Result<Vec<LocationLink>>>
textDocument/definition
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_definition