1 write to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
51
Session
= session;
36 references to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (36)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (33)
54
Session
.ReplacementTextChanged += OnReplacementTextChanged;
55
Session
.ReplacementsComputed += OnReplacementsComputed;
56
Session
.ReferenceLocationsChanged += OnReferenceLocationsChanged;
57
Session
.CommitStateChange += CommitStateChange;
60
var smartRenameSession = smartRenameSessionFactory?.Value.CreateSmartRenameSession(
Session
.TriggerSpan);
70
=> Visibility = this.
Session
.IsCommitInProgress ? Visibility.Collapsed : Visibility.Visible;
76
get =>
Session
.ReplacementText;
79
if (value !=
Session
.ReplacementText)
81
Session
.ApplyReplacementText(value, propagateEditImmediately: true, updateSelection: false);
91
public bool AllowFileRename =>
Session
.FileRenameInfo == InlineRenameFileRenameInfo.Allowed && _isReplacementTextValid;
92
public bool ShowFileRename =>
Session
.FileRenameInfo != InlineRenameFileRenameInfo.NotAllowed;
94
public string FileRenameString =>
Session
.FileRenameInfo switch
141
get =>
Session
.Options.RenameInComments;
145
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameInComments = value });
151
get =>
Session
.Options.RenameInStrings;
155
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameInStrings = value });
161
get =>
Session
.Options.RenameFile;
165
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameFile = value });
171
get =>
Session
.PreviewChanges;
175
Session
.SetPreviewChanges(value);
181
get =>
Session
.Options.RenameOverloads;
185
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameOverloads = value });
210
=> !
Session
.MustRenameOverloads;
213
=>
Session
.HasRenameOverloads;
232
Session
.InitiateCommit();
239
Session
.Cancel();
324
Session
.ReplacementTextChanged -= OnReplacementTextChanged;
325
Session
.ReplacementsComputed -= OnReplacementsComputed;
326
Session
.CommitStateChange -= CommitStateChange;
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (3)
226
var document = this.BaseViewModel.
Session
.TriggerDocument;
231
var renameLocations = await this.BaseViewModel.
Session
.AllRenameLocationsTask.JoinAsync(cancellationToken)
233
var context = await editorRenameService.GetRenameContextAsync(this.BaseViewModel.
Session
.RenameInfo, renameLocations, cancellationToken)