sway_lsp::capabilities::on_enter

Function on_enter

Source
pub fn on_enter(
    config: &OnEnterConfig,
    documents: &Documents,
    temp_uri: &Url,
    params: &OnEnterParams,
) -> Option<WorkspaceEdit>
Expand description

If the change was an enter keypress or pasting multiple lines in a comment, it prefixes the line(s) with the appropriate comment start pattern (// or ///).