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