Table of Contents

Class PasteOperation

Namespace
NMF.Glsp.Protocol.Clipboard
Assembly
NMF.Glsp.dll

Requests a paste operation from the server by providing the current clipboard data. Typically this means that elements should be created based on the data in the clipboard.

public class PasteOperation : Operation
Inheritance
PasteOperation
Inherited Members

Fields

PasteOperationKind

The kind value used for this kind of action

public const string PasteOperationKind = "paste"

Field Value

string

Properties

ClipboardData

The clipboard data that should be pasted to the editor's last recorded mouse position (see editorContext).

public IDictionary<string, object> ClipboardData { get; }

Property Value

IDictionary<string, object>

EditorContext

The current editor context.

public EditorContext EditorContext { get; set; }

Property Value

EditorContext

Kind

Unique identifier specifying the kind of action to process.

public override string Kind { get; }

Property Value

string

Methods

ExecuteAsync(IGlspSession)

Executes the action in the context of the given session

public override Task ExecuteAsync(IGlspSession session)

Parameters

session IGlspSession

The session in which to execute the action

Returns

Task