5 writes to currentState
Microsoft.CodeAnalysis.EditorFeatures (5)
InlineRename\AbstractInlineRenameUndoManager.cs (5)
70this.currentState = new ActiveSpanState() 85this.currentState = null; 96this.currentState = new ActiveSpanState() 139this.currentState = this.UndoStack.Pop(); 153this.currentState = this.RedoStack.Pop();
11 references to currentState
Microsoft.CodeAnalysis.EditorFeatures (11)
InlineRename\AbstractInlineRenameUndoManager.cs (10)
65if (currentState.ReplacementText != _trackedSession.ReplacementText) 73SelectionAnchorPoint = currentState.SelectionAnchorPoint, 74SelectionActivePoint = currentState.SelectionActivePoint 107this.initialState = this.currentState; 129var anchor = new VirtualSnapshotPoint(snapshot, this.currentState.SelectionAnchorPoint + activeRenameSpan.GetStartPoint(snapshot)); 130var active = new VirtualSnapshotPoint(snapshot, this.currentState.SelectionActivePoint + activeRenameSpan.GetStartPoint(snapshot)); 138this.RedoStack.Push(this.currentState); 140this.InlineRenameService.ActiveSession.ApplyReplacementText(this.currentState.ReplacementText, propagateEditImmediately: true); 152this.UndoStack.Push(this.currentState); 154this.InlineRenameService.ActiveSession.ApplyReplacementText(this.currentState.ReplacementText, propagateEditImmediately: true);
InlineRename\UndoManagerServiceFactory.cs (1)
111ApplyReplacementText(subjectBuffer, this.UndoManagers[subjectBuffer].TextUndoHistory, propagateSpansEditTag, spans, this.currentState.ReplacementText);