Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest supplier when typing a period after a function name #272

Open
MeAmAnUsername opened this issue Mar 8, 2022 · 0 comments
Open

Suggest supplier when typing a period after a function name #272

MeAmAnUsername opened this issue Mar 8, 2022 · 0 comments
Labels
Component: editor Priority: low Status: proposal Enhancement in the proposal stage Type: enhancement New feature or request

Comments

@MeAmAnUsername
Copy link
Owner

Summary
Suggest supplier when typing a period after a function name

Todo

Example
Given

func foo(x: int) -> unit = {}
func use() -> unit = foo

If the user types . at the end (after foo) so it becomes foo., suggest foo.supplier($Exp)

Description
Only show suggestion while the user is typing any part of .supplier(, not when just moving the cursor with the arrow keys.
Only show on function names where an expression is expected.
Also show if identifier could be either a function name or a value. In that case, show suggestions for both supplier of function (this issue) or for methods on the data type ([todo: create issue for suggestions for methods], #82).
Number of placeholder arguments matches the number of parameters of the function.
Also show even when a supplier would lead to type errors (there is nothing else a user could intend when typing . after a function name.

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: editor Priority: low Status: proposal Enhancement in the proposal stage Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant