Skip to content

Commit

Permalink
Remove obsolete external access API now that intellicode has switched…
Browse files Browse the repository at this point in the history
… over (#61635)
  • Loading branch information
dibarbet authored Jun 1, 2022
1 parent 63fb830 commit 0b0125e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ internal readonly struct IntentSource
/// </summary>
public readonly string Title { get; }

/// <summary>
/// The text changes that should be applied to the <see cref="IntentRequestContext.CurrentSnapshotSpan"/>
/// TODO - Remove once intellicode switches over to reading <see cref="DocumentChanges"/> instead.
/// </summary>
[Obsolete("Use DocumentChanges instead")]
public readonly ImmutableArray<TextChange> TextChanges { get; }

/// <summary>
/// The text changes that should be applied to each document.
/// </summary>
Expand All @@ -94,11 +87,8 @@ internal readonly struct IntentSource
/// </summary>
public readonly string ActionName { get; }

public IntentSource(string title, ImmutableArray<TextChange> textChanges, string actionName, ImmutableDictionary<DocumentId, ImmutableArray<TextChange>> documentChanges)
public IntentSource(string title, string actionName, ImmutableDictionary<DocumentId, ImmutableArray<TextChange>> documentChanges)
{
#pragma warning disable CS0618 // Type or member is obsolete
TextChanges = textChanges;
#pragma warning restore CS0618 // Type or member is obsolete
Title = title ?? throw new ArgumentNullException(nameof(title));
ActionName = actionName ?? throw new ArgumentNullException(nameof(actionName));
DocumentChanges = documentChanges;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task<ImmutableArray<IntentSource>> ComputeIntentsAsync(IntentReques
}
}

return new IntentSource(processorResult.Title, results[originalDocument.Id], processorResult.ActionName, results.ToImmutableDictionary());
return new IntentSource(processorResult.Title, processorResult.ActionName, results.ToImmutableDictionary());
}

private static async Task<ImmutableArray<TextChange>?> GetTextChangesForDocumentAsync(
Expand Down

0 comments on commit 0b0125e

Please sign in to comment.