-
Notifications
You must be signed in to change notification settings - Fork 61
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
Parameter autocomplete improvements #81
Parameter autocomplete improvements #81
Conversation
Previously, parameter type autocomplete would be offered when no parameters were typed yet (`foo(|)`), but not when adding a second (or third, ...) parameters (`foo(bar, |)`).
e.g. in a function call, if you type a comma you would get the completion options for parameter names and such, but then if you typed a space you would lose the autocomplete, and would have to manually trigger it again.
All looks good - importing with the intention of merging as is. I'll make the single line comment addition |
@@ -60,6 +61,7 @@ pub enum AutocompleteType { | |||
Parameter { | |||
function_name: String, | |||
function_name_span: ResolvedSpan, | |||
previously_used_named_parameters: Vec<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name is pretty clear, but perhaps just one sentence that they were already used in the function already
@ndmitchell has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@ndmitchell merged this pull request in c86e26b. |
Summary: Some autocomplete improvements aimed at typing parameters: - Correctly offer parameter completion options when typing a new parameter after the first one. - Omit already used parameter names as options. - Re-offer completion when typing a space after a comma in a function call (and other such cases). X-link: facebook/starlark-rust#81 Reviewed By: stepancheg Differential Revision: D48782136 Pulled By: ndmitchell fbshipit-source-id: e64faca0292f1722106beb503801d880b4c64be4
Some autocomplete improvements aimed at typing parameters: