pub trait DocumentColorProvider {
// Required method
fn document_colors(
&self,
_text: &Rope,
window: &mut Window,
cx: &mut App,
) -> Task<Result<Vec<ColorInformation>>>;
}
Required Methods§
Sourcefn document_colors(
&self,
_text: &Rope,
window: &mut Window,
cx: &mut App,
) -> Task<Result<Vec<ColorInformation>>>
fn document_colors( &self, _text: &Rope, window: &mut Window, cx: &mut App, ) -> Task<Result<Vec<ColorInformation>>>
Fetches document colors for the specified range.
textDocument/documentColor
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentColor