I tried using AppCode as my Swift IDE and I was surprised at how autocomplete offers multiple suggestions when there are default parameters in a function. It's so good. Is this related to SourceKit-LSP and there any plans to implement something like that?
blangmuir
(Ben Langmuir)
2
The default behaviour in SourceKit today is to show two completions for each function that has default arguments: one with none of the default arguments, and one with all of them.
@rintaro
Another improvement would be to allow for API authors to indicate the order of completions in a given function context (or even omit the auto complete… like for things like .none to optionals). I am not sure how that all could be spelled but it could be a powerful way of indicating hints to API users.
2 Likes