Skip to content

Conversation

zth
Copy link
Member

@zth zth commented Sep 11, 2023

Another quality-of-life thing. Previously, this: someArray->Array.map(<com> would ignore the pipe and complete as the first argument to Array.map, which would be the array itself, rendering a [] suggestion. With this change we instead get a function template suggested, like v => {}.

Next level on this would be to track the path/name of Array.map and change the suggested variable name in the function template to something nicer than the generic v, like item.

@zth zth requested a review from cristianoc September 11, 2023 11:30
@zth zth merged commit ec59c6a into master Sep 11, 2023
@zth zth deleted the pipe-in-unlabelled-completion branch September 11, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants