Commit Graph

3307 Commits

Author SHA1 Message Date
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
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
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
Sheetal Nandi
edad317395 Fourslash server tests 2019-06-06 10:41:33 -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
Sheetal Nandi
bbfbf8fa95 Use import export sepcifier as declaration for the property name of import export as well 2019-05-30 14:55:25 -07:00
Sheetal Nandi
f37ae23f7e More test fixes 2019-05-30 13:17:57 -07:00
Sheetal Nandi
8948fe415f Rename declarationRange to declarationRangeIndex 2019-05-30 12:45:11 -07:00
Sheetal Nandi
6a961b5bc5 More tests 2019-05-28 16:14:44 -07:00
Sheetal Nandi
1d830ffe7a Start fixing fourslash tests 2019-05-24 16:29:27 -07:00
Daniel Rosenwasser
38f3b05cb1 31304 - Autocomplete for enum values fails when typing "/" (#31362)
31304 - Autocomplete for enum values fails when typing "/"
2019-05-24 16:17:25 -07:00
Alexander T
8dba4d6467 Merge branch 'master' of https://github.com/Microsoft/TypeScript into bug/29880 2019-05-24 18:39:03 +03:00
Andrew Branch
7359ff8158 Add test 2019-05-23 13:33:38 -07:00
Andrew Branch
f97f57c155 Fix containsPrecedingToken for tokens whose preceding token is a missing node 2019-05-23 12:15:50 -07:00
Alexander T
6cd992132d Add string properties declaration to the completion list 2019-05-23 11:08:19 +03:00
Andrew Branch
ad9c36e0ec Expose ts.Diagnostics to fourslash 2019-05-22 10:00:09 -07:00