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