1 write to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (1)
32
Session
= session;
42 references to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (42)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (4)
316
_model.
Session
.Cancel();
327
_model.
Session
.InitiateCommit();
335
var notificationService = _model.
Session
.Workspace.Services.GetService<INotificationService>();
341
var errorReportingService = _model.
Session
.Workspace.Services.GetService<IErrorReportingService>();
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (38)
36
Session
.ReferenceLocationsChanged += OnReferenceLocationsChanged;
37
Session
.ReplacementsComputed += OnReplacementsComputed;
38
Session
.ReplacementTextChanged += OnReplacementTextChanged;
39
Session
.CommitStateChange += CommitStateChange;
60
=> Visibility = !
Session
.IsCommitInProgress && _textView.HasAggregateFocus
173
public bool AllowFileRename =>
Session
.FileRenameInfo == InlineRenameFileRenameInfo.Allowed && _isReplacementTextValid;
174
public bool ShowFileRename =>
Session
.FileRenameInfo != InlineRenameFileRenameInfo.NotAllowed;
175
public string FileRenameString =>
Session
.FileRenameInfo switch
204
return string.Format(EditorFeaturesResources.Rename_colon_0,
Session
.OriginalSymbolName);
212
return string.Format(EditorFeaturesResources.New_name_colon_0,
Session
.ReplacementText);
220
return
Session
.OriginalSymbolName ==
Session
.ReplacementText;
270
=>
Session
.HasRenameOverloads ? Visibility.Visible : Visibility.Collapsed;
273
=> !
Session
.MustRenameOverloads;
277
get =>
Session
.Options.RenameOverloads;
283
Session
.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameOverloads, value);
284
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameOverloads = value });
291
get =>
Session
.Options.RenameInStrings;
295
Session
.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInStrings, value);
296
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameInStrings = value });
302
get =>
Session
.Options.RenameInComments;
306
Session
.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInComments, value);
307
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameInComments = value });
313
get =>
Session
.Options.RenameFile;
316
Session
.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameFile, value);
317
Session
.RefreshRenameSessionWithOptionsChanged(
Session
.Options with { RenameFile = value });
323
get =>
Session
.PreviewChanges;
327
Session
.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.PreviewChanges, value);
328
Session
.SetPreviewChanges(value);
332
public string OriginalName =>
Session
.OriginalSymbolName;
336
Session
.ReplacementTextChanged -= OnReplacementTextChanged;
337
Session
.ReferenceLocationsChanged -= OnReferenceLocationsChanged;
338
Session
.ReplacementsComputed -= OnReplacementsComputed;
339
Session
.CommitStateChange -= CommitStateChange;