An edit the applies a paste operation.

Constructors

Properties

additionalEdit?: WorkspaceEdit

An optional additional edit to apply on paste.

insertText: string | SnippetString

The text or snippet to insert at the pasted locations.

If your edit requires more advanced insertion logic, set this to an empty string and provide an additional edit instead.

Kind of the edit.

title: string

Human readable label that describes the edit.

yieldTo?: readonly DocumentDropOrPasteEditKind[]

Controls ordering when multiple paste edits can potentially be applied.

If this edit yields to another, it will be shown lower in the list of possible paste edits shown to the user.