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

Inheritance: IDocumentTrackingService, IVsSelectionEvents, IDisposable
Afficher le fichier Open project: lodejard/AllNetCore Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetDebuggerDisplay ( ) : string
RemoveFrame ( FrameListener frame ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DocumentFrameShowing() public méthode

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.
Résultat void

GetActiveDocument() public méthode

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
Résultat DocumentId

GetVisibleDocuments() public méthode

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

OnCmdUIContextChanged() public méthode

public OnCmdUIContextChanged ( uint dwCmdUICookie, int fActive ) : int
dwCmdUICookie uint
fActive int
Résultat int

OnElementValueChanged() public méthode

public OnElementValueChanged ( uint elementid, object varValueOld, object varValueNew ) : int
elementid uint
varValueOld object
varValueNew object
Résultat int

OnNonRoslynViewOpened() public méthode

public OnNonRoslynViewOpened ( ITextView view ) : void
view ITextView
Résultat void

OnSelectionChanged() public méthode

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
Résultat int

VisualStudioDocumentTrackingService() public méthode

public VisualStudioDocumentTrackingService ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
Résultat System