1 write to _smartRenameSession
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
127
_smartRenameSession
= smartRenameSession;
19 references to _smartRenameSession
Microsoft.CodeAnalysis.EditorFeatures.Wpf (19)
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (17)
38
private TimeSpan AutomaticFetchDelay =>
_smartRenameSession
.AutomaticFetchDelay;
47
public bool IsAvailable =>
_smartRenameSession
.IsAvailable;
49
public bool HasSuggestions =>
_smartRenameSession
.HasSuggestions;
51
public bool IsInProgress =>
_smartRenameSession
.IsInProgress;
53
public string StatusMessage =>
_smartRenameSession
.StatusMessage;
55
public bool StatusMessageVisibility =>
_smartRenameSession
.StatusMessageVisibility;
128
_smartRenameSession
.PropertyChanged += SessionPropertyChanged;
157
var listenerToken = _asyncListener.BeginAsyncOperation(nameof(
_smartRenameSession
.GetSuggestionsAsync));
168
await Task.Delay(
_smartRenameSession
.AutomaticFetchDelay, cancellationToken)
196
_ = await
_smartRenameSession
.GetSuggestionsAsync(smartRenameContext, cancellationToken)
201
_ = await
_smartRenameSession
.GetSuggestionsAsync(cancellationToken)
217
if (e.PropertyName == nameof(
_smartRenameSession
.SuggestedNames))
223
foreach (var name in
_smartRenameSession
.SuggestedNames.Take(3))
260
_smartRenameSession
.OnCancel();
267
_smartRenameSession
.OnSuccess(finalIdentifierName);
274
_smartRenameSession
.PropertyChanged -= SessionPropertyChanged;
276
_smartRenameSession
.Dispose();
InlineRename\UI\SmartRename\SmartRenameViewModel_Telemetry.cs (2)
54
m["smartRenameSessionInProgress"] =
_smartRenameSession
.IsInProgress;
65
m["smartRenameSessionInProgress"] =
_smartRenameSession
.IsInProgress;