提交 96cad53c 编写于 作者: C CyrusNajmabadi

Rollback API change to unbreak TypeScript.

上级 21b9256e
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
......@@ -17,7 +18,7 @@ private class InlineRenameLocationSet : IInlineRenameLocationSet
private readonly RenameLocations _renameLocationSet;
private readonly SymbolInlineRenameInfo _renameInfo;
public ImmutableArray<InlineRenameLocation> Locations { get; }
public IList<InlineRenameLocation> Locations { get; }
public InlineRenameLocationSet(SymbolInlineRenameInfo renameInfo, RenameLocations renameLocationSet)
{
......
......@@ -111,7 +111,7 @@ internal interface IInlineRenameLocationSet
/// has entered in the inline rename session. These are the locations are all relative
/// to the solution when the inline rename session began.
/// </summary>
ImmutableArray<InlineRenameLocation> Locations { get; }
IList<InlineRenameLocation> Locations { get; }
/// <summary>
/// Returns the set of replacements and their possible resolutions if the user enters the
......
......@@ -250,7 +250,7 @@ private void UpdateReferenceLocationsTask(Task<IInlineRenameLocationSet> allRena
var asyncToken = _asyncListener.BeginAsyncOperation("UpdateReferencesTask");
_allRenameLocationsTask = allRenameLocationsTask;
allRenameLocationsTask.SafeContinueWith(
t => RaiseSessionSpansUpdated(t.Result.Locations),
t => RaiseSessionSpansUpdated(t.Result.Locations.ToImmutableArray()),
_cancellationTokenSource.Token,
TaskContinuationOptions.OnlyOnRanToCompletion,
ForegroundTaskScheduler).CompletesAsyncOperation(asyncToken);
......
......@@ -140,7 +140,7 @@ public InlineRenameLocationSet(IXamlRenameInfo renameInfo, Solution solution, Im
Locations = locations;
}
public ImmutableArray<InlineRenameLocation> Locations { get; }
public IList<InlineRenameLocation> Locations { get; }
public bool IsReplacementTextValid(string replacementText)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册