Skip to main content

unknown_property_code_action

Function unknown_property_code_action 

Source
pub fn unknown_property_code_action(
    query: Query<'_, '_, (&Triples, &RopeC, &PositionComponent, &mut CodeActionRequest), With<Open>>,
    ontologies: Res<'_, Ontologies>,
    config: Res<'_, ServerConfig>,
)
Expand description

ECS system (CodeActionLabel): offer a quick-fix that allow-lists an unknown property IRI. The action carries a Command so the editor round-trips back through workspace/executeCommand, letting the server persist the choice to the global config and clear the warning at runtime.

Only the unknown property under the cursor is offered, so the quick-fix does not show up when the cursor is elsewhere in the document.