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