Ensure editors context menus get at least 3 lines of height

This commit is contained in:
Max Brunsfeld 2024-01-19 15:47:42 -08:00
parent 139986d080
commit 4fb3e6d812
3 changed files with 15 additions and 9 deletions

View file

@ -379,10 +379,11 @@ pub trait LspAdapter: 'static + Send + Sync {
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CodeLabel {
/// The text to display.
pub text: String,
/// Determines the syntax highlighting for the label
/// Syntax highlighting runs.
pub runs: Vec<(Range<usize>, HighlightId)>,
/// Which part of the label participates
/// The portion of the text that should be used in fuzzy filtering.
pub filter_range: Range<usize>,
}