Titian Cernicova-Dragomir
d2c9d6cc1b
Improved parameter names for call signatures resulting from unions when only one parameter name is available. ( #32056 )
2019-07-11 10:06:49 -07:00
Andrew Branch
8eb3822ae0
Merge pull request #28290 from rflorian/add-codefix-cannot-find-name-in-for-loop
...
Add codefix for 'Cannot find name' diagnostic
2019-07-10 21:47:36 -07:00
Florian Regensburger
f273448925
Added addMissingConst codefix for comma separated initializers
2019-07-10 02:11:02 +02:00
Florian Regensburger
1de7881141
Add negative test case for addMissingConst codeFix with unexpected array elements
2019-07-09 02:07:54 +02:00
Florian Regensburger
384669a1ce
Finish addMissingConst codefix for single variable and array literal assignments
2019-07-09 01:56:50 +02:00
Florian Regensburger
7d08f172d8
Added fourslash tests for standalone and array initialization cases and started implementing them
2019-07-07 13:56:34 +02:00
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
Florian Regensburger
bd9f39dbcc
Merge branch 'master' into add-codefix-cannot-find-name-in-for-loop
2019-07-02 00:41:27 +02:00
Florian Regensburger
41ebeec057
Revert unrelated fourslash test changes
2019-07-02 00:36:44 +02: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