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;
70
foreach (var view in session._textBufferAssociatedViewService.GetAssociatedTextViews(
_subjectBuffer
))
105
using var readOnlyEdit =
_subjectBuffer
.CreateReadOnlyRegionEdit();
117
var editableSpans = GetEditableSpansForSnapshot(
_subjectBuffer
.CurrentSnapshot);
118
var entireBufferSpan =
_subjectBuffer
.CurrentSnapshot.GetSnapshotSpanCollection();
135
if (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),
202
ActiveTextView.GetSpanInView(
_subjectBuffer
.CurrentSnapshot.GetSpan(s.ToSpan())).Count != 0) // spans were successfully projected
265
.Select(renameTrackingSpan => renameTrackingSpan.TrackingSpan.GetSpan(
_subjectBuffer
.CurrentSnapshot))
267
s.End <=
_subjectBuffer
.CurrentSnapshot.Length && // span is valid for the snapshot
268
ActiveTextView.GetSpanInView(
_subjectBuffer
.CurrentSnapshot.GetSpan(s)).Count != 0); // spans were successfully projected
282
_subjectBuffer
,
288
var 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
, () =>
341
using 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),
617
using (var edit =
_subjectBuffer
.CreateEdit(EditOptions.None, null, s_calculateMergedSpansEditTag))
679
var snapshot = openTextBufferManager.
_subjectBuffer
.CurrentSnapshot;
723
var snapshot = _openTextBufferManager.
_subjectBuffer
.CurrentSnapshot;
743
var snapshot = _openTextBufferManager.
_subjectBuffer
.CurrentSnapshot;