1 write to ApplicableToSpan
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionSet.cs (1)
42
ApplicableToSpan
= applicableToSpan;
11 references to ApplicableToSpan
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Features\UnifiedSuggestions\UnifiedSuggestedActionSetComparer.cs (4)
54
if (!_targetSpan.HasValue || !x.
ApplicableToSpan
.HasValue || !y.
ApplicableToSpan
.HasValue)
60
var distanceX = Distance(x.
ApplicableToSpan
, _targetSpan);
61
var distanceY = Distance(y.
ApplicableToSpan
, _targetSpan);
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (3)
712
=> new(set.OriginalSolution, set.CategoryName, set.Actions, set.Title, priority, set.
ApplicableToSpan
);
750
actionSet.
ApplicableToSpan
);
785
: new UnifiedSuggestedActionSet(set.OriginalSolution, set.CategoryName, actions.ToImmutable(), set.Title, set.Priority, set.
ApplicableToSpan
);
Handler\CodeActions\CodeActionHelpers.cs (4)
65
applicableRange: set.
ApplicableToSpan
.HasValue ? ProtocolConversions.TextSpanToRange(set.
ApplicableToSpan
.Value, documentText) : null,
265
applicableRange: nestedActionSet.
ApplicableToSpan
.HasValue
266
? ProtocolConversions.TextSpanToRange(nestedActionSet.
ApplicableToSpan
.Value, documentText) : null,