Power-Fx
Power-Fx copied to clipboard
Enable to pass AllowSideEffects flag when creating the RecalcEngineScope
When using the EnableSetFunction config, we also need to pass AllowSideEffect = true as parser options for the Eval.
However, it is not possible to pass any parser options when creating a RecalcEngineScope. Causing the LSP to identify the Set function as invalid in the formula bar.

It's easy to create your own scope implementation, but the root issue is that Engine.Suggest() doesn't accept these flags. Suggest() calls Check(); and Check has other overloads to accept the flags.
This probably is just adding the parameter to Suggest().
Have an overload of Suggest() that accepts a CheckResult.