use bevy_ecs::{
component::Component,
schedule::{IntoScheduleConfigs, Schedule, ScheduleLabel},
world::World,
};
pub use crate::{
systems::{hover_class, hover_property, hover_types, infer_types},
util::triple::get_current_triple,
};
#[derive(Component, Debug, Default)]
pub struct HoverRequest(pub Vec<String>, pub Option<crate::lsp_types::Range>);
#[derive(ScheduleLabel, Clone, Eq, PartialEq, Debug, Hash)]
pub struct Label;
pub fn setup_schedule(world: &mut World) {
let mut hover = Schedule::new(Label);
hover.add_systems((
infer_types,
get_current_triple,
hover_types
.before(hover_class)
.before(hover_property)
.after(get_current_triple)
.after(infer_types),
hover_class.after(get_current_triple),
hover_property.after(get_current_triple),
));
world.add_schedule(hover);
}