Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[fn param hints] Optional parameter is incorrectly including the next parameter inside square brackets. #4748

Closed
RaymondLim opened this issue Aug 11, 2013 · 2 comments

Comments

@RaymondLim
Copy link
Contributor

  1. Type $.get(.
  2. Bring up param hint with Ctrl+Shift+Space.

Result: String url, [Object data, function(String, String, function():Object):Object success], [String dataType] shows up as parameter hint.

Expected: String url, [Object data], function ..., [String dataType]

@dloverin
Copy link

The current behavior is intentional. It shows if the optional parameter "data" is passed, then "success" is required. Both are shown as optional parameters by enclosing them in brackets. It looks odd to me to see an optional parameter in brackets followed by a parameter not in brackets, but I guess this is a matter of taste.

@RaymondLim
Copy link
Contributor Author

Closing since it is intentional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants