Repository navigation
JSDoc autocomplete should not apply to classes #7325
Description
Activity
- addedSuggestionAn idea for TypeScriptAn idea for TypeScript
on Mar 1, 2016 RyanCavanaugh commented
on Mar 1, 2016 MemberMore actionsI don't think we'd have construct-specific options or behavior for this, but an option to turn it off entirely seems reasonable.
- addedIn DiscussionNot yet reached consensusNot yet reached consensus
on Mar 1, 2016 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
@return,@template, etc annotations, so unless globally turned off with an LS option it should still be emitted.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 -
@template,@memberof, etc.- addedWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bugand removedIn DiscussionNot yet reached consensusNot yet reached consensus
on May 16, 2016 RyanCavanaugh commented
on May 16, 2016 MemberMore actionsDiscussed 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
Reacted by Anthony CiccarelloNoelAbrahams commented
on May 16, 2016 AuthorMore actionsOh 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 <notifications@github.commailto:notifications@github.com> 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.
Reply to this email directly or view it on GitHubhttps://github.com//issues/7325#issuecomment-219573956- locked and limited conversation to collaborators
on Jun 19, 2018

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!