1 write to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (1)
26Session = session;
39 references to Session
Microsoft.CodeAnalysis.EditorFeatures.Wpf (39)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (4)
323_model.Session.Cancel(); 334_model.Session.Commit(); 342var notificationService = _model.Session.Workspace.Services.GetService<INotificationService>(); 348var errorReportingService = _model.Session.Workspace.Services.GetService<IErrorReportingService>();
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (35)
29Session.ReferenceLocationsChanged += OnReferenceLocationsChanged; 30Session.ReplacementsComputed += OnReplacementsComputed; 31Session.ReplacementTextChanged += OnReplacementTextChanged; 147public bool AllowFileRename => Session.FileRenameInfo == InlineRenameFileRenameInfo.Allowed && _isReplacementTextValid; 148public bool ShowFileRename => Session.FileRenameInfo != InlineRenameFileRenameInfo.NotAllowed; 149public string FileRenameString => Session.FileRenameInfo switch 160return string.Format(EditorFeaturesResources.Rename_colon_0, Session.OriginalSymbolName); 168return string.Format(EditorFeaturesResources.New_name_colon_0, Session.ReplacementText); 176return Session.OriginalSymbolName == Session.ReplacementText; 226=> Session.HasRenameOverloads ? Visibility.Visible : Visibility.Collapsed; 229=> !Session.MustRenameOverloads; 233get => Session.Options.RenameOverloads; 239Session.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameOverloads, value); 240Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameOverloads = value }); 247get => Session.Options.RenameInStrings; 251Session.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInStrings, value); 252Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInStrings = value }); 258get => Session.Options.RenameInComments; 262Session.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInComments, value); 263Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInComments = value }); 269get => Session.Options.RenameFile; 272Session.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameFile, value); 273Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameFile = value }); 279get => Session.PreviewChanges; 283Session.RenameService.GlobalOptions.SetGlobalOption(InlineRenameSessionOptionsStorage.PreviewChanges, value); 284Session.SetPreviewChanges(value); 288public string OriginalName => Session.OriginalSymbolName; 292Session.ReplacementTextChanged -= OnReplacementTextChanged; 293Session.ReferenceLocationsChanged -= OnReferenceLocationsChanged; 294Session.ReplacementsComputed -= OnReplacementsComputed;