提交 7339398e 编写于 作者: C Cyrus Najmabadi

Add assert

上级 e9887018
......@@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.CodeAnalysis.Shared.Utilities;
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
......@@ -46,5 +47,11 @@ internal sealed class SuggestedActionWithNestedActions : SuggestedAction
public sealed override Task<IEnumerable<SuggestedActionSet>> GetActionSetsAsync(CancellationToken cancellationToken)
=> Task.FromResult<IEnumerable<SuggestedActionSet>>(NestedActionSets);
protected override void InnerInvoke(IProgressTracker progressTracker, CancellationToken cancellationToken)
{
// A code action with nested actions is itself never invokable. So just do nothing if this ever gets asked.
Debug.Fail("Invoke should not be called on a SuggestedActionWithNestedActions");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册