Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
gregli-msft committed Feb 28, 2024
1 parent 985f145 commit 844d3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public OptionSetInfoFunction()

public async Task<FormulaValue> InvokeAsync(FormulaValue[] args, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();

switch (args[0])
{
case ErrorValue errorValue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void EnableRegExFunctions(this PowerFxConfig config, TimeSpan regE
}
}

[Obsolete("OptionSetInfo function is deprecated. Use the Value function on an option set backed by a number and the Boolean function on an option set bacekd by a Boolean instead. A new ChoiceInfo function is in the works for access to logical names.")]
[Obsolete("OptionSetInfo function is deprecated. Use the Value function on an option set backed by a number and the Boolean function on an option set backed by a Boolean instead. A new ChoiceInfo function is in the works for access to logical names.")]
public static void EnableOptionSetInfo(this PowerFxConfig powerFxConfig)
{
powerFxConfig.AddFunction(new OptionSetInfoFunction());
Expand Down

0 comments on commit 844d3a4

Please sign in to comment.