Start work on autocomplete for chat mentions

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Nathan <nathan@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld 2024-01-19 13:12:33 -08:00
parent 1ceccdf03b
commit 139986d080
6 changed files with 165 additions and 22 deletions

View file

@ -380,7 +380,9 @@ pub trait LspAdapter: 'static + Send + Sync {
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CodeLabel {
pub text: String,
/// Determines the syntax highlighting for the label
pub runs: Vec<(Range<usize>, HighlightId)>,
/// Which part of the label participates
pub filter_range: Range<usize>,
}