swls_core/feature/
code_action.rs1use bevy_ecs::{component::Component, schedule::ScheduleLabel, world::World};
2
3#[derive(Component, Debug, Default)]
5pub struct CodeActionRequest(pub Vec<crate::lsp_types::CodeAction>);
6
7#[derive(ScheduleLabel, Clone, Eq, PartialEq, Debug, Hash)]
9pub struct Label;
10
11pub fn setup_schedule(world: &mut World) {
12 let mut schedule = bevy_ecs::schedule::Schedule::new(Label);
13 schedule.add_systems((
14 crate::systems::add_missing_prefix_code_action,
15 crate::systems::unknown_property_code_action,
16 ));
17 world.add_schedule(schedule);
18}