4 writes to TrackingSession
Microsoft.CodeAnalysis.EditorFeatures (4)
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (4)
192
this.
TrackingSession
= new TrackingSession(this, new SnapshotSpan(eventArgs.Before, originalSpan), _asyncListener);
212
this.
TrackingSession
= null;
247
this.
TrackingSession
= null;
332
this.
TrackingSession
= _committedSessions[trackingSessionId];
19 references to TrackingSession
Microsoft.CodeAnalysis.EditorFeatures (19)
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (2)
104
var snapshotSpan = stateMachine.
TrackingSession
.TrackingSpan.GetSpan(stateMachine.Buffer.CurrentSnapshot);
106
var displayText = string.Format(EditorFeaturesResources.Rename_0_to_1, stateMachine.
TrackingSession
.OriginalName, newName);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (2)
92
var options = new SymbolRenameOptions(RenameOverloads: _stateMachine.
TrackingSession
.ForceRenameOverloads);
187
var textChange = new TextChange(new TextSpan(_snapshotSpan.Start, _snapshotSpan.Length), _stateMachine.
TrackingSession
.OriginalName);
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (13)
106
if (this.
TrackingSession
== null)
115
var trackingSpanInNewSnapshot = this.
TrackingSession
.TrackingSpan.GetSpan(e.After);
132
if (this.
TrackingSession
.IsDefinitelyRenamableIdentifier())
134
this.
TrackingSession
.CheckNewIdentifier(this, Buffer.CurrentSnapshot);
208
if (this.
TrackingSession
!= null)
211
var previousTrackingSession = this.
TrackingSession
;
232
if (this.
TrackingSession
!= null && this.
TrackingSession
.IsDefinitelyRenamableIdentifier())
246
var previousTrackingSession = this.
TrackingSession
;
261
var existingIndex = _committedSessions.IndexOf(
TrackingSession
);
268
_committedSessions.Insert(index,
TrackingSession
);
278
trackingSession = this.
TrackingSession
;
340
if (this.
TrackingSession
== trackingSession)
RenameTracking\RenameTrackingTaggerProvider.Tagger.cs (2)
36
if (_stateMachine.
TrackingSession
!= null)
38
TagsChanged(this, new SnapshotSpanEventArgs(_stateMachine.
TrackingSession
.TrackingSpan.GetSpan(_stateMachine.Buffer.CurrentSnapshot)));