lsp_core/feature/
inlay.rs

1use bevy_ecs::{component::Component, schedule::ScheduleLabel, world::World};
2use derive_more::{AsMut, AsRef, Deref, DerefMut};
3
4/// [`Component`] indicating that the current document is currently handling a Inlay request.
5#[derive(Component, AsRef, Deref, AsMut, DerefMut, Debug)]
6pub struct InlayRequest(pub Option<Vec<lsp_types::InlayHint>>);
7
8/// [`ScheduleLabel`] related to the Inlay schedule
9#[derive(ScheduleLabel, Clone, Eq, PartialEq, Debug, Hash)]
10pub struct Label;
11pub fn setup_schedule(world: &mut World) {
12    let inlay = bevy_ecs::schedule::Schedule::new(Label);
13    // inlay.add_systems(inlay_triples);
14    world.add_schedule(inlay);
15}