1 write to _subjectBuffer
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
64_subjectBuffer = subjectBuffer;
28 references to _subjectBuffer
Microsoft.CodeAnalysis.EditorFeatures (28)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (28)
68_subjectBuffer.ChangedLowPriority += OnTextBufferChanged; 70foreach (var view in session._textBufferAssociatedViewService.GetAssociatedTextViews(_subjectBuffer)) 105using var readOnlyEdit = _subjectBuffer.CreateReadOnlyRegionEdit(); 117var editableSpans = GetEditableSpansForSnapshot(_subjectBuffer.CurrentSnapshot); 118var entireBufferSpan = _subjectBuffer.CurrentSnapshot.GetSnapshotSpanCollection(); 135if (editableSpans.All(s => s.End < _subjectBuffer.CurrentSnapshot.Length)) 137_readOnlyRegions.Add(readOnlyEdit.CreateDynamicReadOnlyRegion(new Span(_subjectBuffer.CurrentSnapshot.Length, 0), SpanTrackingMode.EdgeExclusive, EdgeInsertionMode.Deny, _isBufferReadOnly)); 182_session.UndoManager.UndoTemporaryEdits(_subjectBuffer, disconnect: false); 191_subjectBuffer.CurrentSnapshot.CreateTrackingSpan(renameableSpan.ToSpan(), SpanTrackingMode.EdgeInclusive, TrackingFidelityMode.Forward), 202ActiveTextView.GetSpanInView(_subjectBuffer.CurrentSnapshot.GetSpan(s.ToSpan())).Count != 0) // spans were successfully projected 265.Select(renameTrackingSpan => renameTrackingSpan.TrackingSpan.GetSpan(_subjectBuffer.CurrentSnapshot)) 267s.End <= _subjectBuffer.CurrentSnapshot.Length && // span is valid for the snapshot 268ActiveTextView.GetSpanInView(_subjectBuffer.CurrentSnapshot.GetSpan(s)).Count != 0); // spans were successfully projected 282_subjectBuffer, 288var snapshot = _subjectBuffer.CurrentSnapshot; 289_session.UndoManager.UpdateSelection(this.ActiveTextView, _subjectBuffer, _referenceSpanToLinkedRenameSpanMap[_activeSpan.Value].TrackingSpan); 299_subjectBuffer.ChangedLowPriority -= OnTextBufferChanged; 311_session.UndoManager.UndoTemporaryEdits(_subjectBuffer, disconnect: true); 328_session.UndoManager.UndoTemporaryEdits(_subjectBuffer, disconnect: false); 338_session.UndoManager.CreateConflictResolutionUndoTransaction(_subjectBuffer, () => 340using var edit = _subjectBuffer.CreateEdit(EditOptions.DefaultMinimalChange, null, s_propagateSpansEditTag); 463_subjectBuffer.CurrentSnapshot.CreateTrackingSpan(conflict.ToSpan(), SpanTrackingMode.EdgeInclusive, TrackingFidelityMode.Forward), 483_subjectBuffer.CurrentSnapshot.CreateTrackingSpan( 508_subjectBuffer.CurrentSnapshot.CreateTrackingSpan(replacement.NewSpan.ToSpan(), SpanTrackingMode.EdgeInclusive, TrackingFidelityMode.Forward), 614using (var edit = _subjectBuffer.CreateEdit(EditOptions.None, null, s_calculateMergedSpansEditTag)) 673var snapshot = openTextBufferManager._subjectBuffer.CurrentSnapshot; 717var snapshot = _openTextBufferManager._subjectBuffer.CurrentSnapshot; 737var snapshot = _openTextBufferManager._subjectBuffer.CurrentSnapshot;