SnippetTextEdit class
A snippet edit represents an interactive edit that is performed by the editor.
Note that a snippet edit can always be performed as a normal {@link TextEdittext edit}. This will happen when no matching editor is open or when a {@link WorkspaceEditworkspace edit} contains snippet edits for multiple files. In that case only those that match the active editor will be performed as snippet edits and the others as normal text edits.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- SnippetTextEdit(Range range, SnippetString snippet)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
insert(
Position position, SnippetString snippet) → SnippetTextEdit - Utility to create an insert snippet edit.
-
replace(
Range range, SnippetString snippet) → SnippetTextEdit - Utility to create a replace snippet edit.