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)
38private TimeSpan AutomaticFetchDelay => _smartRenameSession.AutomaticFetchDelay; 47public bool IsAvailable => _smartRenameSession.IsAvailable; 49public bool HasSuggestions => _smartRenameSession.HasSuggestions; 51public bool IsInProgress => _smartRenameSession.IsInProgress; 53public string StatusMessage => _smartRenameSession.StatusMessage; 55public bool StatusMessageVisibility => _smartRenameSession.StatusMessageVisibility; 128_smartRenameSession.PropertyChanged += SessionPropertyChanged; 157var listenerToken = _asyncListener.BeginAsyncOperation(nameof(_smartRenameSession.GetSuggestionsAsync)); 168await Task.Delay(_smartRenameSession.AutomaticFetchDelay, cancellationToken) 196_ = await _smartRenameSession.GetSuggestionsAsync(smartRenameContext, cancellationToken) 201_ = await _smartRenameSession.GetSuggestionsAsync(cancellationToken) 217if (e.PropertyName == nameof(_smartRenameSession.SuggestedNames)) 223foreach (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)
54m["smartRenameSessionInProgress"] = _smartRenameSession.IsInProgress; 65m["smartRenameSessionInProgress"] = _smartRenameSession.IsInProgress;