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); 339_session.UndoManager.CreateConflictResolutionUndoTransaction(_subjectBuffer, () => 341using var edit = _subjectBuffer.CreateEdit(EditOptions.DefaultMinimalChange, null, s_propagateSpansEditTag); 465_subjectBuffer.CurrentSnapshot.CreateTrackingSpan(conflict.ToSpan(), SpanTrackingMode.EdgeInclusive, TrackingFidelityMode.Forward), 485_subjectBuffer.CurrentSnapshot.CreateTrackingSpan( 510_subjectBuffer.CurrentSnapshot.CreateTrackingSpan(replacement.NewSpan.ToSpan(), SpanTrackingMode.EdgeInclusive, TrackingFidelityMode.Forward), 617using (var edit = _subjectBuffer.CreateEdit(EditOptions.None, null, s_calculateMergedSpansEditTag)) 679var snapshot = openTextBufferManager._subjectBuffer.CurrentSnapshot; 723var snapshot = _openTextBufferManager._subjectBuffer.CurrentSnapshot; 743var snapshot = _openTextBufferManager._subjectBuffer.CurrentSnapshot;