2 writes to CurrentSession
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
EventHookup\EventHookupSessionManager.cs (2)
121CurrentSession = new EventHookupSession(this, eventHookupCommandHandler, textView, subjectBuffer, asyncListener, _globalOptions, testSessionHookupMutex); 131CurrentSession = null;
19 references to CurrentSession
Microsoft.CodeAnalysis.CSharp.EditorFeatures (19)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (8)
49if (EventHookupSessionManager.CurrentSession == null) 62if (EventHookupSessionManager.CurrentSession != null) 77if (EventHookupSessionManager.CurrentSession.TESTSessionHookupMutex != null) 81EventHookupSessionManager.CurrentSession.TESTSessionHookupMutex.ReleaseMutex(); 90EventHookupSessionManager.CurrentSession.GetEventNameTask.Wait(cancellationToken); 93if (EventHookupSessionManager.CurrentSession.GetEventNameTask.Status == TaskStatus.RanToCompletion) 95eventHandlerMethodName = EventHookupSessionManager.CurrentSession.GetEventNameTask.WaitAndGetResult(cancellationToken); 99EventHookupSessionManager.CurrentSession.TextView != textView)
EventHookup\EventHookupSessionManager.cs (11)
60CurrentSession == analyzedSession && 85CurrentSession.Dismissed += () => { analyzedSession.TextView.TextSnapshot.TextBuffer.Changed -= TextBuffer_Changed; }; 88CurrentSession.Dismissed += () => { analyzedSession.TextView.Caret.PositionChanged -= Caret_PositionChanged; }; 128if (CurrentSession != null) 130CurrentSession.Cancel(); 168if (CurrentSession == null) 174var caretPoint = CurrentSession.TextView.GetCaretPoint(CurrentSession.SubjectBuffer); 181var snapshotSpan = CurrentSession.TrackingSpan.GetSpan(CurrentSession.TextView.TextSnapshot); 189=> CurrentSession != null;