microsoft / microsoft/Power-Fx

Cannot add description in Custom ReflectionFunction

Open
#2,928 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

Description

I've created a custom function (named "RelatedItems") deriving from ReflectionFunction and using Language Server package in order to provide suggestions and hint in monaco editor; but there is NO way to configure or set the function description.

Image

looking at the source code, all other functions are created from BuiltInFunction that is NOT exposed.
Can you extend ReflectionFunction in order to have similar functionalities of built-in functions?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read ReflectionFunction and the BuiltInFunction implementation used by other functions, then trace how the Language Server obtains function descriptions for Monaco suggestions. Done means a custom ReflectionFunction can configure a description and the language-server suggestions expose it like built-in functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.