Move highlighting to editor code and implement proto message types for hover response
This commit is contained in:
parent
c7cc07aafb
commit
67d9abc00f
7 changed files with 279 additions and 184 deletions
|
@ -444,7 +444,7 @@ pub struct Editor {
|
|||
pub autocomplete: AutocompleteStyle,
|
||||
pub code_actions_indicator: Color,
|
||||
pub unnecessary_code_fade: f32,
|
||||
pub hover_popover: ContainerStyle,
|
||||
pub hover_popover: HoverPopover,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Default)]
|
||||
|
@ -622,4 +622,11 @@ impl<'de> Deserialize<'de> for SyntaxTheme {
|
|||
|
||||
Ok(result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Default)]
|
||||
pub struct HoverPopover {
|
||||
pub container: ContainerStyle,
|
||||
pub block_style: ContainerStyle,
|
||||
pub prose: TextStyle,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue