C# Class Microsoft.VisualStudio.LanguageServices.Implementation.VisualStudioDocumentTrackingService

Inheritance: IDocumentTrackingService, IVsSelectionEvents, IDisposable
Exibir arquivo Open project: lodejard/AllNetCore Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
DocumentFrameShowing ( IVsWindowFrame frame, DocumentId id, bool firstShow ) : void

Called via the DocumentProvider's RDT OnBeforeDocumentWindowShow notification when a workspace document is being shown.

GetActiveDocument ( ) : DocumentId

Get the DocumentId of the active document. May be called from any thread. May return null if there is no active document or the active document is not part of this workspace.

GetVisibleDocuments ( ) : ImmutableArray

Get a read only collection of the DocumentIds of all the visible documents in the workspace.

OnCmdUIContextChanged ( uint dwCmdUICookie, int fActive ) : int
OnElementValueChanged ( uint elementid, object varValueOld, object varValueNew ) : int
OnNonRoslynViewOpened ( ITextView view ) : void
OnSelectionChanged ( IVsHierarchy pHierOld, uint itemidOld, IVsMultiItemSelect pMISOld, ISelectionContainer pSCOld, IVsHierarchy pHierNew, uint itemidNew, IVsMultiItemSelect pMISNew, ISelectionContainer pSCNew ) : int
VisualStudioDocumentTrackingService ( IServiceProvider serviceProvider ) : System

Private Methods

Method Description
GetDebuggerDisplay ( ) : string
RemoveFrame ( FrameListener frame ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DocumentFrameShowing() public method

Called via the DocumentProvider's RDT OnBeforeDocumentWindowShow notification when a workspace document is being shown.
public DocumentFrameShowing ( IVsWindowFrame frame, DocumentId id, bool firstShow ) : void
frame IVsWindowFrame The frame containing the document being shown.
id DocumentId The of the document being shown.
firstShow bool Indicates whether this is a first or subsequent show.
return void

GetActiveDocument() public method

Get the DocumentId of the active document. May be called from any thread. May return null if there is no active document or the active document is not part of this workspace.
public GetActiveDocument ( ) : DocumentId
return DocumentId

GetVisibleDocuments() public method

Get a read only collection of the DocumentIds of all the visible documents in the workspace.
public GetVisibleDocuments ( ) : ImmutableArray
return ImmutableArray

OnCmdUIContextChanged() public method

public OnCmdUIContextChanged ( uint dwCmdUICookie, int fActive ) : int
dwCmdUICookie uint
fActive int
return int

OnElementValueChanged() public method

public OnElementValueChanged ( uint elementid, object varValueOld, object varValueNew ) : int
elementid uint
varValueOld object
varValueNew object
return int

OnNonRoslynViewOpened() public method

public OnNonRoslynViewOpened ( ITextView view ) : void
view ITextView
return void

OnSelectionChanged() public method

public OnSelectionChanged ( IVsHierarchy pHierOld, uint itemidOld, IVsMultiItemSelect pMISOld, ISelectionContainer pSCOld, IVsHierarchy pHierNew, uint itemidNew, IVsMultiItemSelect pMISNew, ISelectionContainer pSCNew ) : int
pHierOld IVsHierarchy
itemidOld uint
pMISOld IVsMultiItemSelect
pSCOld ISelectionContainer
pHierNew IVsHierarchy
itemidNew uint
pMISNew IVsMultiItemSelect
pSCNew ISelectionContainer
return int

VisualStudioDocumentTrackingService() public method

public VisualStudioDocumentTrackingService ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
return System