private void OnDocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs args) { if (_workspace != null && _workspace == args.Solution.Workspace) { ProcessIfThisDocument(args.Solution, args.NewActiveContextDocumentId); } }
private void OnDocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs args) { var workspace = this._workspace; if (workspace != null && workspace == args.Solution.Workspace) { EnqueueProcessSnapshotAsync(args.NewActiveContextDocumentId); } }
private void OnDocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs e) { var document = SubjectBuffer.AsTextContainer().GetOpenDocumentInCurrentContext(); if (document != null && document.Id == e.NewActiveContextDocumentId) { this.RaiseChanged(); } }
private void OnDocumentActiveContextChanged( object sender, DocumentActiveContextChangedEventArgs e ) => Reanalyze( e.Solution.Workspace, documentIds: SpecializedCollections.SingletonEnumerable( e.NewActiveContextDocumentId ), highPriority: true );
private void Workspace_DocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs e) { var textBuffer = e.SourceTextContainer.GetTextBuffer(); if (textBuffer != null && (textBuffer == _cSharpBuffer || textBuffer == _razorBuffer)) { if (Update()) { OnContextChanged(); } } }
private void OnActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs e) { // REVIEW: it would be nice for changed event to pass in both old and new document. OnSuggestedActionsChanged(e.Solution.Workspace, e.NewActiveContextDocumentId, e.Solution.WorkspaceVersion); }
private void OnDocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs e) { Reanalyze(e.Solution.Workspace, documentIds: SpecializedCollections.SingletonEnumerable(e.NewActiveContextDocumentId), highPriority: true); }
private void OnDocumentActiveContextChanged(object sender, DocumentActiveContextChangedEventArgs args) { if (_workspace != null && _workspace == args.Solution.Workspace) { ParseIfThisDocument(null, args.Solution, args.NewActiveContextDocumentId); } }