Commit Graph
3319 Commits
Author SHA1 Message Date
Nathan Shively-Sanders 6f0baa3ae1 Merge pull request #29717 from petersandor/jsdoc-tag-author-email-support
Support email in author JSDoc tag
2019-07-03 10:42:02 -07:00
Andrew Branch 11a62cb0ab Merge pull request #31801 from andrewbranch/semicolons
Detect semicolons before writing from TextChanges
2019-07-01 13:23:31 -07:00
Andrew Branch a890275463 Merge pull request #31912 from andrewbranch/bug/31657
Fix smartSelection returning extra span inside string quotes when cursor is outside them
2019-07-01 11:53:24 -07:00
Nathan Shively-Sanders fefb857847 Use only immediately preceding JSDoc
Now only the immediately preceding jsdoc of a node is retrieved by
getJSDoc, although it still does the correct non-local lookup for nodes
like ParameterDeclaration.

This doesn't change parsing or binding, which use the per-node Node.jsdoc
property directly. But it does change everything that relies on getJSDoc,
which includes the checker and language service.

Fixes #32062, which contains the analysis that justifies the change.
2019-06-29 08:05:10 -07:00
Nathan Shively-Sanders 2362dd4fac Add fourslash test of jsdoc backtick parsing 2019-06-27 08:49:56 -07:00
Orta a50a5d309c Merge pull request #32088 from orta/fix-32068
Handle making sure that two less thans are never converted into >>
2019-06-26 14:10:02 -07:00
Andrew Branch 871bdeeec4 Merge pull request #31480 from andrewbranch/bug/25487
Fix invalid JSXExpressions having identifier-ish things in their trivia, improve error messages for comma expressions in JSX
2019-06-26 10:13:42 -07:00
Wesley Wigham 34eb5ddf75 Fix tuple and array comparisons during identity checking (#32089) 2019-06-25 20:56:41 -07:00
Orta Therox 897fb3a2a6 Handle making sure that two less thans are never converted into >> 2019-06-25 15:16:15 -07:00
Sheetal Nandi 7ed3896a0a Merge pull request #31587 from microsoft/definitionSpan
Include declarationSpan as relevant declaration span when defintion or other places are declaration name
2019-06-18 14:07:15 -07:00
Josh Goldberg ca00b3248b Added --noImplicitThis code fix for functions used as object properties (#31138)
* Added --noImplicitThis code fix for functions used as object properties

Before trying out all the various possibilities for where these functions could be used, I figured I'd start out with a relatively simple use case to verify this is the right approach. Is it? 😄

Starts on #28964.

* Fixed function expression names; included new baselines

* Got JSDocs to work, hooray!

* Added test for 'any' case of no function uses

* Refactored for inferFunctionReferencesFromUsage

* Fixed inference bug: undefined references cause parameters to default

* Removed dead code comments
2019-06-17 19:00:15 -07:00
Andrew Branch b6c415485a Add failing test for smartSelect string literals 2019-06-14 15:42:29 -07:00
Sheetal Nandi 73bf2684ac Rename to use contextSpan 2019-06-13 12:41:21 -07:00
Benjamin Lichtman 0628adc056 Merge pull request #31865 from amcasey/FunctionHintSpan
Correct outline hint spans for functions
2019-06-12 10:13:21 -07:00
Andrew Casey 1bf28f21de Add regression test 2019-06-11 17:50:36 -07:00
Anders Hejlsberg ad322a561a Merge pull request #31838 from microsoft/emptyIntersectionReduction
Empty intersection reduction
2019-06-11 12:25:51 -07:00
Daniel Rosenwasser 79aff027f3 Merge pull request #31290 from a-tarasyuk/bug/29880
29880 - No completions for computed string properties
2019-06-10 13:45:58 -07:00
Anders Hejlsberg aa0ea51169 Update fourslash tests 2019-06-09 10:11:36 -07:00
Sheetal Nandi a84ed93f72 Merge branch 'master' into definitionSpan 2019-06-06 14:13:09 -07:00
Sheetal Nandi a67b375d0e Handle module specifiers 2019-06-06 13:39:04 -07:00
Sheetal Nandi a120c59015 Handle Lable 2019-06-06 12:04:48 -07:00
Sheetal Nandi 768c9ed8d7 Handle jsx Opening, Closing and Self closing tags 2019-06-06 11:48:45 -07:00
Andrew Branch 6282c9fb5e Add test for semicolon detection in auto-import 2019-06-06 10:55:56 -07:00
Andrew Branch 7815778fb0 Update fourslash tests that shouldn’t insert semicolons 2019-06-06 10:48:26 -07:00
Sheetal Nandi edad317395 Fourslash server tests 2019-06-06 10:41:33 -07:00
Andrew Branch ca44ee8f97 Update fourslash tests to have semicolons 2019-06-06 10:39:22 -07:00
Sheetal Nandi 018026ad52 More tests 2019-06-06 10:05:28 -07:00
Sheetal Nandi e4a2dd510f Handle export keyword of export assignment 2019-06-06 09:09:39 -07:00
Sheetal Nandi 64de998356 More tests 2019-06-06 09:01:58 -07:00
Sheetal Nandi 1163a93ed6 Handle default keyword of default export 2019-06-05 16:35:29 -07:00
Sheetal Nandi e1e1603547 More tests 2019-06-05 16:07:25 -07:00
Sheetal Nandi 6dc2ba7939 Take optional string of range text for singleReferenceGroup 2019-06-05 14:43:22 -07:00
Sheetal Nandi edffcce785 Take optional texts to verify parameter for rangesWithSameTextAreRenameLocations 2019-06-05 13:52:41 -07:00
Sheetal Nandi 35c049949f More tests 2019-06-05 12:57:09 -07:00
Sheetal Nandi 004488c0c9 Set declaration span only if its not same as own span 2019-06-04 15:37:43 -07:00
Sheetal Nandi cc1cb54e4b More tests 2019-06-04 15:11:48 -07:00
Sheetal Nandi 424f2c9e00 More tests 2019-06-04 13:06:34 -07:00
Sheetal Nandi 34624a0587 More Tests 2019-06-04 12:05:41 -07:00
Sheetal Nandi e41533acc7 Handle computed property names 2019-06-03 14:06:30 -07:00
Sheetal Nandi 01bbc4de2e More tests 2019-06-03 13:55:02 -07:00
Sheetal Nandi 0fee3b023d Handle destructuring assignments 2019-06-03 13:42:55 -07:00
Sheetal Nandi c0537d9bad More tests 2019-05-31 16:19:27 -07:00
Sheetal Nandi dfb613c6d6 Use for-of declaration list + expression as span for preview 2019-05-31 16:02:31 -07:00
Sheetal Nandi b61813ea1d More test cases 2019-05-31 15:58:11 -07:00
Sheetal Nandi 9703b3d6c1 Show property assignment for special property assignments in js files 2019-05-31 14:05:15 -07:00
Sheetal Nandi bcf7752c1f More tests 2019-05-31 11:57:43 -07:00
Sheetal Nandi 6c04a0d14e For property name of binding element use binding element as preview node 2019-05-31 11:33:36 -07:00
Sheetal Nandi bbd2d00b35 More tests 2019-05-31 11:32:25 -07:00
Sheetal Nandi 15ce996cf5 Export assignment identifier use ExportAssigment as declaration 2019-05-31 11:09:22 -07:00
Sheetal Nandi 2fc1143fe7 More tests 2019-05-31 10:23:07 -07:00