microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.21k stars 327 forks source link

REPL: Get function help #2004

Closed MikeStall closed 9 months ago

MikeStall commented 1 year ago

We can get function names, but we need information such as the function's description, documentation link, category, and any other relevant details. Ideally also parameter information.

MikeStall commented 11 months ago

We should be able to pull the raw information from the same source as LSP / intellisense.

MikeStall commented 11 months ago

PAD will need this too, particularly Function description and category.

MikeStall commented 10 months ago

For category, this is an array.

We should expose here: https://github.com/microsoft/Power-Fx/blob/c4ed8db676f213958ad2f58aee3c57e042077ca1/src/libraries/Microsoft.PowerFx.Core/Public/FunctionInfo.cs#L42

See localized strings here: https://github.com/microsoft/Power-Fx/blob/c4ed8db676f213958ad2f58aee3c57e042077ca1/src/strings/PowerFxResources.en-US.resx#L2372

Categories on a function are defined as a flags enum: https://github.com/microsoft/Power-Fx/blob/f75a9244873da8ddf8619e2c4b1f6ce480c3482b/src/libraries/Microsoft.PowerFx.Core/Functions/TexlFunction.cs#L346C16-L346C35

MikeStall commented 9 months ago

Fixed with #2154