Struct lsp_types::InsertTextMode [−][src]
pub struct InsertTextMode(_);
Expand description
How whitespace and indentation is handled during completion item insertion.
@since 3.16.0
Implementations
The insertion or replace strings is taken as it is. If the value is multi line the lines below the cursor will be inserted using the indentation defined in the string value. The client will not apply any kind of adjustments to the string.
The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.
Consider a line like this: <2tabs>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InsertTextMode
impl Send for InsertTextMode
impl Sync for InsertTextMode
impl Unpin for InsertTextMode
impl UnwindSafe for InsertTextMode
Blanket Implementations
Mutably borrows from an owned value. Read more