Partager via


IEditorHostService Interface

Definition

Rehydrates Editor RPC contracts into thick objects.

public interface IEditorHostService : IDisposable
type IEditorHostService = interface
    interface IDisposable
Public Interface IEditorHostService
Implements IDisposable
Implements

Remarks

Extensions should rarely need to interact with this service. Rather, it's merely supporting infrastructure for the frameworks composing the Visual Studio Extensibility system.

Methods

CreateActiveTextViewAsync(IReadOnlyDictionary<String,Object>, CancellationToken)

Creates a new ITextViewSnapshot from the properties contained in clientContext.

CreatePositionAsync(Uri, Int32, TextPositionContract, CancellationToken)

Creates a new TextPosition from a serializable TextPositionContract RPC contract and other version metadata.

CreatePositionAsync(VersionedTextDocumentPositionContract, CancellationToken)

Creates a new TextPosition from a serializable VersionedTextDocumentPositionContract RPC contract and other version metadata.

CreateSpanAsync(Uri, Int32, Range, CancellationToken)

Creates a new TextRange from a serializable Range RPC contract and other version metadata.

CreateSpanAsync(VersionedTextDocumentRangeContract, CancellationToken)

Creates a new TextRange from a serializable Range RPC contract and other version metadata.

CreateTextDocumentAsync(TextDocumentContract, CancellationToken)

Creates a new ITextDocumentSnapshot from a serializable TextDocumentContract RPC contract.

CreateTextViewAsync(TextViewContract, CancellationToken)

Creates a new ITextViewSnapshot from a serializable TextViewContract RPC contract.

Applies to