-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
JSDoc autocomplete should not apply to classes #7325
Comments
I don't think we'd have construct-specific options or behavior for this, but an option to turn it off entirely seems reasonable. |
The autocomplete for methods and functions is certainly useful, as it can save having to type out parameters, e.g. /**
*
* @param instance
* @param startPosition
* @param endPosition
* @param durationMS
*/
public top(instance: {}, startPosition: string, endPosition: string, durationMS: number) It just doesn't make sense at the class-level. |
Just want to point out that parameter-less functions can still have |
In my case I find that the return is already normally in the description, e.g "Adds an item to persistent storage and returns the id". |
Yes, I understand. I'm just saying that it shouldn't be disabled completely for parameter-less functions, but only disabled if the new option that Ryan proposed is enabled. Edit: And class-level annotations make sense for the same reason - |
Discussed and several people felt that having multi-line comments here made sense too. So without a consensus that one is better than the other and a desire to not have tons of skeletoning options, the current behavior is what we'd like to continue with |
Oh dear. I have disliked JSDoc from day one, and it only gets worse with use with its intrusive and awkward style. This is bad news. Sent from my iPhone On 17 May 2016, at 00:02, Ryan Cavanaugh <[email protected]mailto:[email protected]> wrote: Discussed and several people felt that having multi-line comments here made sense too. So without a consensus that one is better than the other and a desire to not have tons of skeletoning options, the current behavior is what we'd like to continue with You are receiving this because you authored the thread. |
Version: TS 1.8.2 / VS 2015
I find the following JSDoc autocomplete terribly annoying:
My JSDoc for classes is almost always a one-liner:
Please consider removing this autocomplete feature for classes, or at least provide an option for turning it off.
Thanks!
The text was updated successfully, but these errors were encountered: