Skip to content

Signature help - handle pipes #624

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

Merged
merged 3 commits into from
Nov 8, 2022
Merged

Signature help - handle pipes #624

merged 3 commits into from
Nov 8, 2022

Conversation

zth
Copy link
Collaborator

@zth zth commented Nov 7, 2022

Previously, the signature help wouldn't understand pipes, meaning signature help for piped expressions would always be off by one when having unlabelled arguments. This diff fixes the signature help to account for pipes when present.

Closes #618

@zth zth requested a review from cristianoc November 7, 2022 17:16
if !foundFunctionApplicationExpr = None then
foundFunctionApplicationExpr := Some r
in
let searchForArgWithCursor ~isPipeExpr ~args ~exp =
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole function body is just moved in here from below, with very minor changes.

@zth zth merged commit 4184e3b into master Nov 8, 2022
@zth zth deleted the signature-help-pipe branch November 8, 2022 05:54
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.

Signature help should account for pipe
2 participants