Skip to content

Latest commit

 

History

History
205 lines (124 loc) · 10.5 KB

Microsoft.VisualStudio.Extensibility.EditorHostService.md

File metadata and controls

205 lines (124 loc) · 10.5 KB

Microsoft.VisualStudio.Extensibility.EditorHostService

Contents

IMefHostExportProvider type

Namespace

Microsoft.VisualStudio.Extensibility.EditorHostService

GetExport``1() method

Summary

Gets lazy export matching the type.

Parameters

This method has no parameters.

GetExport``2() method

Summary

Gets lazy export matching the type and metadata.

Parameters

This method has no parameters.

GetExportedValue``1() method

Summary

Gets one exported object matching the type.

Parameters

This method has no parameters.

GetExportedValues``1() method

Summary

Gets all exported objects matching the type.

Parameters

This method has no parameters.

GetExports``1() method

Summary

Gets all lazy exports matching the type.

Parameters

This method has no parameters.

GetExports``2() method

Summary

Gets all lazy exports matching the type and metadata.

Parameters

This method has no parameters.

TextDocumentObserver type

Namespace

Microsoft.VisualStudio.Extensibility.EditorHostService

Summary

Document that observes an ITextDocument in another process, often in-proc in Visual Studio, and produces TextDocumentSnapshots, the OOP analogue for ITextSnapshot for consumption by OOP Gladstone extensions running in Service Hub.

TextDocumentSnapshot type

Namespace

Microsoft.VisualStudio.Extensibility.EditorHostService

Summary

Lightweight facade for exposing selected immutable elements of ITextSnapshot and ITextDocumentSnapshot to OOP language extensions hosted in Service Hub.

Equals() method

Summary

Inherit from parent.

Parameters

This method has no parameters.

GetHashCode() method

Summary

Inherit from parent.

Parameters

This method has no parameters.

op_Equality(left,right) method

Summary

Indicates whether left and right equivalent.

Returns

True if the items are equiavlent.

Parameters
Name Type Description
left Microsoft.VisualStudio.Extensibility.EditorHostService.TextDocumentSnapshot Left item.
right Microsoft.VisualStudio.Extensibility.EditorHostService.TextDocumentSnapshot Right item.

op_Inequality(left,right) method

Summary

Indicates whether left and right different.

Returns

True if the items are different.

Parameters
Name Type Description
left Microsoft.VisualStudio.Extensibility.EditorHostService.TextDocumentSnapshot Left item.
right Microsoft.VisualStudio.Extensibility.EditorHostService.TextDocumentSnapshot Right item.

TextDocumentSnapshotLine type

Namespace

Microsoft.VisualStudio.Extensibility.EditorHostService

Summary

Exposes an alternative to ITextSnapshotLine to OOP extensions hosted in Service Hub.

Remarks

TextImageLine is a comparable alternative to ITextSnapshotLine that performs one less heap allocation to acquire, so we use it instead in our wrapper.

TextDocumentSnapshotLinesCollectionFacade type

Namespace

Microsoft.VisualStudio.Extensibility.EditorHostService

Summary

Facade that presents as if it was a IReadOnlyList`1 but actually creates the wrapper objects on demand.