1 write to ApplicableToSpan
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionSet.cs (1)
42ApplicableToSpan = applicableToSpan;
16 references to ApplicableToSpan
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
SuggestedActionsSource.cs (1)
221unifiedSuggestedActionSet.ApplicableToSpan?.ToSpan());
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActionsSource.cs (1)
221unifiedSuggestedActionSet.ApplicableToSpan?.ToSpan());
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Features\UnifiedSuggestions\UnifiedSuggestedActionSetComparer.cs (4)
54if (!_targetSpan.HasValue || !x.ApplicableToSpan.HasValue || !y.ApplicableToSpan.HasValue) 60var distanceX = Distance(x.ApplicableToSpan, _targetSpan); 61var distanceY = Distance(y.ApplicableToSpan, _targetSpan);
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (6)
358if (set.ApplicableToSpan.HasValue) 360var currentStart = set.ApplicableToSpan.Value.Start; 361var currentEnd = set.ApplicableToSpan.Value.End; 723=> new(set.OriginalSolution, set.CategoryName, set.Actions, set.Title, priority, set.ApplicableToSpan); 761actionSet.ApplicableToSpan); 796: new UnifiedSuggestedActionSet(set.OriginalSolution, set.CategoryName, actions.ToImmutable(), set.Title, set.Priority, set.ApplicableToSpan);
Handler\CodeActions\CodeActionHelpers.cs (4)
70applicableRange: set.ApplicableToSpan.HasValue ? ProtocolConversions.TextSpanToRange(set.ApplicableToSpan.Value, documentText) : null, 138applicableRange: nestedActionSet.ApplicableToSpan.HasValue 139? ProtocolConversions.TextSpanToRange(nestedActionSet.ApplicableToSpan.Value, documentText) : null,