diff --git a/src/Tools/ExternalAccess/OmniSharp/InlineHints/OmniSharpInlineHintsService.cs b/src/Tools/ExternalAccess/OmniSharp/InlineHints/OmniSharpInlineHintsService.cs index 9f169fd6ef96b..6e299f2e99e7d 100644 --- a/src/Tools/ExternalAccess/OmniSharp/InlineHints/OmniSharpInlineHintsService.cs +++ b/src/Tools/ExternalAccess/OmniSharp/InlineHints/OmniSharpInlineHintsService.cs @@ -22,6 +22,7 @@ public static async Task> GetInlineHintsAsyn var hints = await service.GetInlineHintsAsync(document, textSpan, roslynOptions, displayAllOverride: false, cancellationToken).ConfigureAwait(false); return hints.SelectAsArray(static h => new OmniSharpInlineHint( h.Span, + h.Ranking, h.DisplayParts, h.ReplacementTextChange, h.GetDescriptionAsync)); @@ -34,17 +35,20 @@ internal readonly struct OmniSharpInlineHint public OmniSharpInlineHint( TextSpan span, + double ranking, ImmutableArray displayParts, TextChange? replacementTextChange, Func>> getDescriptionAsync) { Span = span; + Ranking = ranking; DisplayParts = displayParts; ReplacementTextChange = replacementTextChange; _getDescriptionAsync = getDescriptionAsync; } public readonly TextSpan Span { get; } + public readonly double Ranking { get; } public readonly ImmutableArray DisplayParts { get; } public readonly TextChange? ReplacementTextChange { get; } diff --git a/src/Tools/ExternalAccess/OmniSharp/InternalAPI.Unshipped.txt b/src/Tools/ExternalAccess/OmniSharp/InternalAPI.Unshipped.txt index a290c148e41c7..fb8a6f4c939c6 100644 --- a/src/Tools/ExternalAccess/OmniSharp/InternalAPI.Unshipped.txt +++ b/src/Tools/ExternalAccess/OmniSharp/InternalAPI.Unshipped.txt @@ -88,7 +88,8 @@ Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.DisplayParts.get -> System.Collections.Immutable.ImmutableArray Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.GetDescriptionAsync(Microsoft.CodeAnalysis.Document! document, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task>! Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.OmniSharpInlineHint() -> void -Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.OmniSharpInlineHint(Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Immutable.ImmutableArray displayParts, Microsoft.CodeAnalysis.Text.TextChange? replacementTextChange, System.Func>!>! getDescriptionAsync) -> void +Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.OmniSharpInlineHint(Microsoft.CodeAnalysis.Text.TextSpan span, double ranking, System.Collections.Immutable.ImmutableArray displayParts, Microsoft.CodeAnalysis.Text.TextChange? replacementTextChange, System.Func>!>! getDescriptionAsync) -> void +Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.Ranking.get -> double Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.ReplacementTextChange.get -> Microsoft.CodeAnalysis.Text.TextChange? Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHint.Span.get -> Microsoft.CodeAnalysis.Text.TextSpan Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.InlineHints.OmniSharpInlineHintsOptions