Commit graph

12 commits

Author SHA1 Message Date
Alex T d7cd405bb2
feat(14751): show static members at the top of the list for a class like completion (#40428) 2020-09-11 14:48:24 -07:00
Wenlu Wang 8d78984558
Add support of contextual quick info (#37451)
* Add support of contextual quick info

* Avoid document comment map

* Make lint happy

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-05-06 15:05:31 -07:00
Andy c97fc64972
Always use verify.completions when testing completions (#28137) 2018-10-29 10:03:25 -07:00
Nathan Shively-Sanders 03fff50fa4
Simplify getJSDocCommentAndTags (#24997)
Previously, getJSDocCommentAndTags could recur up to four times if any
of four predicates matched. However, to avoid duplicates, the predicates
have been tuned to be mutually exclusive, which means that the recursion
can be turned into a while loop. The while loop is much simpler and
safer, since it is guaranteed to only walk up the tree one time. In
addition, the extra check that adds jsdoc from initializers only runs
once, before the loop, further reducing the opportunity for duplicate
jsdocs.

I thought about further simplifying the code that gets the next node to
check, but to know when to stop the loop, I'd need a predicate that is
as complicated as the code in `getNextJSDocCommentLocation`, so I kept
the existing code, just reordering it for compactness.
2018-06-19 10:14:47 -07:00
Andy e1f22ac568
Combine signatureHelp testing methods (#24132) 2018-05-15 12:34:53 -07:00
Andy Hanson 9f20077914 Use "completionList" methods instead of "memberList" ones, since they're identical 2016-12-07 13:36:11 -08:00
Nathan Shively-Sanders f8f244f68a Merge branch 'master' into new-jsdoc-parser 2016-09-15 11:53:04 -07:00
Andy Hanson 956c582786 Simplify quick-info tests 2016-09-13 11:49:01 -07:00
Nathan Shively-Sanders 2b9624672d Update/add baselines for jsdoc/emitter changes 2016-09-01 09:26:44 -07:00
Nathan Shively-Sanders d030889166 Update baselines
1. Display of `this` changes for quick info.
2. The type of Function.call/apply/bind is more precise.
2016-01-29 14:52:47 -08:00
Cyrus Najmabadi eed6f0deca Use an output format for quickinfo that more closely matches the original source.
i.e. use  "var v: string" instead of "(var) v: string".

The parens case should only be used when we're using an english description instead of
an actual language construct.
2015-03-24 00:16:49 -07:00
Sheetal Nandi 3294c2b2db Enable test cases for comments/type name format validation 2014-09-30 17:10:16 -07:00