Skip to content

Commit

Permalink
Moving ISuggestionAwareFunction interface to Core.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-joyle committed Mar 11, 2024
1 parent 07c9a30 commit 5f93aed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

namespace Microsoft.PowerFx.Core.Functions
{
/// <summary>
/// Interface used for TexlFunctions to override the default behavior for intellisense suggestions.
/// </summary>
internal interface ISuggestionAwareFunction
{
// Returns true if it's valid to suggest ThisItem for this function as an argument.
bool CanSuggestThisItem { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace Microsoft.PowerFx.Core.Texl.Builtins
{
// Collect(collection:*[...], item1:![...]|*[...], ...)
internal class CollectFunction : BuiltinFunction
internal class CollectFunction : BuiltinFunction, ISuggestionAwareFunction
{
public override bool AffectsCollectionSchemas => true;

Expand Down

0 comments on commit 5f93aed

Please sign in to comment.