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