1 write to Session
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
53Session = session;
36 references to Session
Microsoft.CodeAnalysis.EditorFeatures (36)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (33)
57Session.ReplacementTextChanged += OnReplacementTextChanged; 58Session.ReplacementsComputed += OnReplacementsComputed; 59Session.ReferenceLocationsChanged += OnReferenceLocationsChanged; 60Session.CommitStateChange += CommitStateChange; 63var smartRenameSession = smartRenameSessionFactory?.Value.CreateSmartRenameSession(Session.TriggerSpan); 73=> Visibility = this.Session.IsCommitInProgress ? Visibility.Collapsed : Visibility.Visible; 79get => Session.ReplacementText; 82if (value != Session.ReplacementText) 84Session.ApplyReplacementText(value, propagateEditImmediately: true, updateSelection: false); 94public bool AllowFileRename => Session.FileRenameInfo == InlineRenameFileRenameInfo.Allowed && _isReplacementTextValid; 95public bool ShowFileRename => Session.FileRenameInfo != InlineRenameFileRenameInfo.NotAllowed; 97public string FileRenameString => Session.FileRenameInfo switch 144get => Session.Options.RenameInComments; 148Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInComments = value }); 154get => Session.Options.RenameInStrings; 158Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInStrings = value }); 164get => Session.Options.RenameFile; 168Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameFile = value }); 174get => Session.PreviewChanges; 178Session.SetPreviewChanges(value); 184get => Session.Options.RenameOverloads; 188Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameOverloads = value }); 213=> !Session.MustRenameOverloads; 216=> Session.HasRenameOverloads; 239Session.CommitAsync(previewChanges: false, editorOperationContext: null) 247Session.Cancel(); 332Session.ReplacementTextChanged -= OnReplacementTextChanged; 333Session.ReplacementsComputed -= OnReplacementsComputed; 334Session.CommitStateChange -= CommitStateChange;
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (3)
218var document = this.BaseViewModel.Session.TriggerDocument; 223var renameLocations = await this.BaseViewModel.Session.AllRenameLocationsTask.JoinAsync(cancellationToken) 225var context = await editorRenameService.GetRenameContextAsync(this.BaseViewModel.Session.RenameInfo, renameLocations, cancellationToken)