on_opening_delimiter_typed

Function on_opening_delimiter_typed 

Source
fn on_opening_delimiter_typed(
    file: &Parse<SourceFile>,
    offset: TextSize,
    opening_bracket: char,
    edition: Edition,
) -> Option<TextEdit>
Expand description

Inserts a closing delimiter when the user types an opening bracket, wrapping an existing expression in a block, or a part of a use item (for {).