diff --git a/src/EditorFeatures/Core/ExternalAccess/IntelliCode/Api/IIntentSourceProvider.cs b/src/EditorFeatures/Core/ExternalAccess/IntelliCode/Api/IIntentSourceProvider.cs index 465e595ad2804..201b9bc882416 100644 --- a/src/EditorFeatures/Core/ExternalAccess/IntelliCode/Api/IIntentSourceProvider.cs +++ b/src/EditorFeatures/Core/ExternalAccess/IntelliCode/Api/IIntentSourceProvider.cs @@ -75,13 +75,6 @@ internal readonly struct IntentSource /// public readonly string Title { get; } - /// - /// The text changes that should be applied to the - /// TODO - Remove once intellicode switches over to reading instead. - /// - [Obsolete("Use DocumentChanges instead")] - public readonly ImmutableArray TextChanges { get; } - /// /// The text changes that should be applied to each document. /// @@ -94,11 +87,8 @@ internal readonly struct IntentSource /// public readonly string ActionName { get; } - public IntentSource(string title, ImmutableArray textChanges, string actionName, ImmutableDictionary> documentChanges) + public IntentSource(string title, string actionName, ImmutableDictionary> 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; diff --git a/src/EditorFeatures/Core/ExternalAccess/IntelliCode/IntentProcessor.cs b/src/EditorFeatures/Core/ExternalAccess/IntelliCode/IntentProcessor.cs index 193291410bdcd..179fd30c48f0e 100644 --- a/src/EditorFeatures/Core/ExternalAccess/IntelliCode/IntentProcessor.cs +++ b/src/EditorFeatures/Core/ExternalAccess/IntelliCode/IntentProcessor.cs @@ -118,7 +118,7 @@ public async Task> 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?> GetTextChangesForDocumentAsync(