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; 85if (trimmedValue != Session.ReplacementText) 87Session.ApplyReplacementText(trimmedValue, propagateEditImmediately: true, updateSelection: false); 97public bool AllowFileRename => Session.FileRenameInfo == InlineRenameFileRenameInfo.Allowed && _isReplacementTextValid; 98public bool ShowFileRename => Session.FileRenameInfo != InlineRenameFileRenameInfo.NotAllowed; 100public string FileRenameString => Session.FileRenameInfo switch 147get => Session.Options.RenameInComments; 151Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInComments = value }); 157get => Session.Options.RenameInStrings; 161Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameInStrings = value }); 167get => Session.Options.RenameFile; 171Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameFile = value }); 177get => Session.PreviewChanges; 181Session.SetPreviewChanges(value); 187get => Session.Options.RenameOverloads; 191Session.RefreshRenameSessionWithOptionsChanged(Session.Options with { RenameOverloads = value }); 216=> !Session.MustRenameOverloads; 219=> Session.HasRenameOverloads; 242Session.CommitAsync(previewChanges: false, editorOperationContext: null) 250Session.Cancel(); 335Session.ReplacementTextChanged -= OnReplacementTextChanged; 336Session.ReplacementsComputed -= OnReplacementsComputed; 337Session.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)