Alexander T
4c278aa33b
fix(34934): exclude private properties from Js completion list
2020-05-22 15:11:39 +03:00
Daniel
d3d282cb45
Less code
2020-05-22 01:49:26 +00:00
Daniel
a008792d01
Updated baselines.
2020-05-22 01:02:37 +00:00
Daniel
afe90f1314
Feed generalized source type to elaboration.
2020-05-22 01:02:27 +00:00
Daniel
b38b0c70b3
Updated baselines.
2020-05-22 00:40:43 +00:00
Daniel
a04ecb592c
Check constraints deeply on singleton types.
2020-05-22 00:40:28 +00:00
Daniel
8cf2466110
Merge remote-tracking branch 'origin/master' into literal-to-primitive-relation-reporting
2020-05-22 00:09:52 +00:00
Nathan Shively-Sanders
3eaa7c65f6
Merge pull request #38719 from microsoft/revert-32011
...
Revert "Wrap classes with decorators or static properties in an IIFE,…
2020-05-21 16:45:05 -07:00
Nathan Shively-Sanders
79f1ec32bd
Revert "Wrap classes with decorators or static properties in an IIFE, even for ES2015+ ( #32011 )"
...
This reverts commit 7cc4a8df9482ffdfa6b3500a009c0454681d5f4b.
2020-05-21 16:23:04 -07:00
Nathan Shively-Sanders
802e87b1eb
Merge branch 'master' into always-error-on-property-override-accessor
2020-05-21 16:08:09 -07:00
Wesley Wigham
0018b8f988
Preserve module marker in es2015+ module emit for tool compatability ( #38712 )
2020-05-21 14:44:23 -07:00
Daniel Rosenwasser
62675a58d6
Merge pull request #38481 from a-tarasyuk/bug/38463
...
fix(38463): No indexed access completions after Record<...>
2020-05-21 13:44:44 -07:00
Wesley Wigham
59d0ceef5e
Fix recently added test so it is cross-plat
2020-05-21 11:45:23 -07:00
Nathan Shively-Sanders
38715c7b48
remove errant tab
2020-05-21 09:26:42 -07:00
Nathan Shively-Sanders
66f48e303f
Switch to isSymbolAccessible for both.
...
1. Switch to isSymbolAccessible for both types and values, then unify to
a single function.
2. Remove inaccesible base error. We can put it back after making
@implements type reference lookup looser (which may or may not happen).
2020-05-21 09:20:56 -07:00
Nathan Shively-Sanders
9b4a83e8df
Merge branch 'master' into fix-implements-tag-emit
2020-05-21 08:21:16 -07:00
Alexander T
c00aeb5486
fix(33286): add outlining for arrow function with one parameter ( #38631 )
2020-05-21 08:07:47 -07:00
Alexander T
e40a2bca57
Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38463
2020-05-21 16:33:35 +03:00
kingwl
fed922a5cb
Accept baseline
2020-05-21 10:53:24 +08:00
kingwl
2997860c2e
fix names
2020-05-21 10:23:00 +08:00
kingwl
b73411c985
Fix type and simplify code
2020-05-21 10:19:36 +08:00
Nathan Shively-Sanders
45cf20ca70
Merge pull request #37800 from jtbandes/diagnose-accidental-accessor-call
...
Better error message for accidental calls to get-accessors
2020-05-20 17:17:12 -07:00
Nathan Shively-Sanders
0b531720d4
Make new error an error, not message
2020-05-20 16:53:17 -07:00
Nathan Shively-Sanders
fc83d10388
Merge branch 'master' into diagnose-accidental-accessor-call
2020-05-20 16:46:34 -07:00
Nathan Shively-Sanders
3340142dda
Merge pull request #38607 from a-tarasyuk/bug/38295
...
fix(38295): Duplicated object key in const not detected when the key is a number preceded by `-` or `+`
2020-05-20 14:52:09 -07:00
Nathan Shively-Sanders
2bb0dabb0f
fix untagged argument lint
2020-05-20 14:43:08 -07:00
Alexander T
4e945fbc98
fix(38299): use string literals as keys to creating rest result ( #38600 )
2020-05-20 13:52:52 -07:00
Nathan Shively-Sanders
68f8f22032
Merge pull request #38425 from dsherret/fixJSDocTagFactoryFuncReturnTypes
...
Fix some JSDoc factory function return types
2020-05-20 13:22:21 -07:00
Nathan Shively-Sanders
c526b425ef
Merge pull request #38498 from ShuiRuTian/make-atomics.notify-type-correct
...
make Atomics.notify last parameter optional
2020-05-20 11:55:01 -07:00
Anders Hejlsberg
a56960303d
Intersection check for empty object type shouldn't cause circularities ( #38673 )
...
* isEmptyAnonymousObjectType shouldn't require full member resolution
* Add regression test
2020-05-20 10:56:14 -07:00
Nathan Shively-Sanders
c5f66716cf
Fix @implements emit for namespaced base types
...
Fixes #38640
2020-05-20 10:29:39 -07:00
Alexander T
bbf56b044b
Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38295
2020-05-20 20:13:50 +03:00
Alexander T
a7364bf534
Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38463
2020-05-20 19:42:55 +03:00
Alexander T
2cea9d9d95
fix(38682): use stable typescript version ( #38683 )
2020-05-20 09:32:51 -07:00
Dmitry Makhnev
dbaeed5ad8
Add d.ts for Intl.RelativeTimeFormat ( #36084 )
...
* feat(lib/es2020.intl): Add `Intl.RelativeTimeFormat` (part of #29129 );
* fix(lib/es2020.intl): fix for tests and linters `Intl.RelativeTimeFormat` (part of #29129 );
* feat(lib/es2020.intl): Add TSDoc for `Intl.RelativeTimeFormat` by review request https://github.com/microsoft/TypeScript/pull/36084#issuecomment-584769420 ;
* fix(lib/es2020.intl): Fix for tests;
Co-authored-by: Dmitry Makhnev <dmitriy.makhnev@jugru.org>
2020-05-20 11:06:28 -04:00
Alexander T
e04ab6938a
fix(38295): handle duplicate object literal keys which contain '+' and '-' tokens
2020-05-20 14:32:41 +03:00
Alexander T
528d82afd1
Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38463
2020-05-20 11:04:55 +03:00
Alexander T
1c72da6e49
fix(38463): show completions for index access properties
2020-05-20 10:17:20 +03:00
kingwl
b59e4c51ae
Merge branch 'master' into logical_assignment
2020-05-20 10:18:20 +08:00
Wesley Wigham
5f597e69b2
Support naming tuple members ( #38234 )
...
* Initial draft of named tuple members
* Show tuple labels and documentation in completions
* Swap allowed syntax to parameter-like
* Add quickfix for labeled tuple syntax mistakes
* Add refactoring to convert list of signatures to single overload
* Fix small bug in visitor verification
* Signature help for rest parameters which are unions of tuples are displayed as seperate entries now
* Expand sanity check test cases in conformance suite
* Add tests and code for preserving tuple names through spreads where possible
* More refactoring tests, some comment preservation and some fixed formatting of multiline tuples
* Handle missing parameter named in isValidDeclarationForTupleLabel
* Minor text fixes
2020-05-19 15:54:02 -07:00
csigs
24f53b06d2
LEGO: Merge pull request 38670
...
LEGO: Merge pull request 38670
2020-05-19 15:12:05 -07:00
csigs
0e4f1cb407
LEGO: check in for master to temporary branch.
2020-05-19 22:11:18 +00:00
Jack Works
7ec467e270
fix: extract const in jsx ( #37912 )
...
* fix: extract const in jsx
* Update src/services/refactors/extractSymbol.ts
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
* Update src/services/refactors/extractSymbol.ts
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-05-19 14:29:49 -07:00
Daniel Rosenwasser
46f100f8ac
Merge pull request #38500 from a-tarasyuk/bug/38485
...
regression(38485): Unable to specify `rawText` when programmatically creating tagged template literals
2020-05-19 14:24:25 -07:00
Nathan Shively-Sanders
415b2e7969
Merge pull request #38656 from a-tarasyuk/bug/33233
...
fix(33233): Code Folding on es5 object functions does not work (getOutliningSpans)
2020-05-19 14:18:42 -07:00
Nathan Shively-Sanders
c5cca0ec18
Merge pull request #38659 from TimvdLippe/patch-3
...
Remove mentions of runtests-browser in CONTRIBUTING.md
2020-05-19 14:07:25 -07:00
Anders Hejlsberg
7ba0a6592d
No contextual types from circular mapped type properties ( #38653 )
...
* No contextual types from circular mapped type properties
* Add regression test
2020-05-19 13:42:30 -07:00
Nathan Shively-Sanders
2227ba749c
Merge branch 'master' into patch-3
2020-05-19 13:20:25 -07:00
Nathan Shively-Sanders
f7007174f6
Merge pull request #38660 from TimvdLippe/patch-4
...
Fix debug command for Node debugging
2020-05-19 13:18:03 -07:00
Andrew Branch
707e977056
Ensure formatter can always get a newline character ( #38579 )
...
* Ensure formatter can always get a newline character
* Make FormatContext.host optional since it’s not necessary if format options are all applied
* Make FormattingHost required again
2020-05-19 13:14:32 -07:00