Share via


EditorExtensibility Class

Definition

Framework object exposing methods for getting and interacting with ITextViewSnapshots and ITextDocumentSnapshots and performing document edits and other state changes.

public sealed class EditorExtensibility : Microsoft.VisualStudio.Extensibility.ExtensibilityPoint
type EditorExtensibility = class
    inherit ExtensibilityPoint
Public NotInheritable Class EditorExtensibility
Inherits ExtensibilityPoint
Inheritance
EditorExtensibility

Remarks

You can get an instance of EditorExtensibility by calling Editor(VisualStudioExtensibility) within an ExtensionPart or Command.

Constructors

EditorExtensibility(VisualStudioExtensibility, IEditorHostService)

Initializes a new instance of the EditorExtensibility class.

Properties

IsDisposed

Gets a value indicating whether the object is disposed.

(Inherited from ExtensibilityPoint)
LocalServiceProvider

Gets the local service provider.

(Inherited from ExtensibilityPoint)
ResourceDictionary

Gets the resource dictionary instance for querying localized strings.

(Inherited from ExtensibilityPoint)
ServiceBroker

Gets the underlying service broker instance.

(Inherited from ExtensibilityPoint)
ServiceBrokerClient

Gets the service broker client instance that can be used to query for brokered services.

(Inherited from ExtensibilityPoint)
TraceSource

Gets the trace source instance to utilize for logging.

(Inherited from ExtensibilityPoint)

Methods

Dispose() (Inherited from ExtensibilityPoint)
Dispose(Boolean)

Disposes the instane and underlying proxies.

(Inherited from ExtensibilityPoint)
EditAsync(Action<IEditBatch>, CancellationToken)

Initiates an edit request in the host Visual Studio process, enabling the extension to atomically request one or more ITextDocumentSnapshot edits, caret position changes, or other state changes.

GetActiveTextViewAsync(IClientContext, CancellationToken)

Gets the currently focused ITextViewSnapshot in the host Visual Studio process.

SubscribeToOptionChangesAsync<T>(ITextDocumentSnapshot, TextDocumentOption<T>, CancellationToken, Func<T,Task>)

Registers to listen for option changes in the scope of a text document.

SubscribeToOptionChangesAsync<T>(ITextViewSnapshot, TextViewOption<T>, CancellationToken, Func<T,Task>)

Registers to listen for option changes in the scope of a text view.

ThrowIfDisposed()

Throws if object is disposed.

(Inherited from ExtensibilityPoint)

Events

Disposing

Raised when object is being disposed.

(Inherited from ExtensibilityPoint)

Applies to