Skip to main content

remove_list_item

Function remove_list_item 

Source
pub fn remove_list_item(
    cst: &CabalCst,
    field_node: NodeId,
    item_prefix: &str,
) -> Vec<TextEdit>
Expand description

Remove an item from a list field by prefix match on the item name.

For dependencies, item_prefix is typically the package name. The removal matches if the item’s name starts with item_prefix.