Michael Hensler
2d09da6df5
allow consecutive newlines in jsdoc tag comments ( #38036 )
2020-07-02 14:19:37 -07:00
Nathan Shively-Sanders
93ccc17658
Node-based @deprecated checks ( #39323 )
...
* Node-based @deprecated checks
Switch the checker to syntactic checks for `@deprecated` on
declarations. This requires a bit more checking of declarations in the
checker at times, but it
1. Gets rid of work, and a symbol flag, in the binder.
2. Skips work in the checker unless there is a `@deprecated` tag.
3. Makes it fairly simple to only issue errors on particular signatures
of overloaded functions.
* remove in-progress comment
* remove unused isTypeDeclaration
* ❤️ lint
* support jsx and tagged template functions
* Support decorators too
2020-07-02 14:09:59 -07:00
Ron Buckton
652a1c5950
Emit fallback for decorator metadata for type only imports ( #39337 )
2020-07-02 11:39:27 -07:00
Ron Buckton
8eba362a01
Fix for relating covered discriminants in unions
2020-07-02 11:09:14 -07:00
csigs
a60feb2d39
LEGO: Merge pull request 39382
...
LEGO: Merge pull request 39382
2020-07-02 03:11:36 -07:00
csigs
3d4422adf1
LEGO: check in for master to temporary branch.
2020-07-02 10:10:42 +00:00
Alexander T
d137e4a23b
fix(39346): show completion in inherited classes from the composited base interface
2020-07-02 11:40:17 +03:00
Ron Buckton
7b942b4fa8
Revert the type change to ts.Map ( #39366 )
2020-07-01 17:00:26 -07:00
Andrew Casey
852800bb98
Drop dead files from LKG ( #39330 )
...
* Delete lib/diagnosticMessages.generated.json
The values are baked in - only the localized json files are needed in
the LKG.
* Delete lib/lib.esnext files no longer found in built/local
2020-07-01 13:55:52 -07:00
Andrew Casey
0e3f25d079
Copy typesMap.json in produceLKG.ts ( #39329 )
...
* Copy typesMap.json in produceLKG.ts
It doesn't change very often and there's a hardcoded backup, but this
seems like a booby trap.
* Remove unused import
2020-07-01 13:55:35 -07:00
csigs
f27ff08776
LEGO: Merge pull request 39360
...
LEGO: Merge pull request 39360
2020-07-01 09:11:50 -07:00
csigs
222d47e878
LEGO: check in for master to temporary branch.
2020-07-01 16:10:50 +00:00
Orta Therox
479650fbca
Use MS repo for making monaco builds ( #39316 )
2020-07-01 11:18:15 -04:00
Nathan Shively-Sanders
df5981319f
Fix crash on completion in jsdoc namepath ( #39347 )
...
contextToken may be undefined, so the isAssertionExpression call in
filterGlobalCompletion needs to check for undefined.
2020-06-30 15:53:13 -07:00
Nathan Shively-Sanders
0f9d4c78d4
JSDoc uses same newlines as normal scanner ( #39351 )
...
* JSDoc uses same newlines as normal scanner
Previously, scanJsDocToken treated each newline character separately, so
the sequence \r\n would be treated as two lines. This is unexpected, and
not the way the normal scanner does it.
This change makes the jsdoc scanner behave the same as the normal
scanner.
* fix lint in test
2020-06-30 15:16:45 -07:00
Andrew Branch
e2c5a90cc3
Disable signature help on unresolved bare identifiers; add more declaration info on other unresolved calls ( #39352 )
...
* Disable signature help on unresolved bare identifiers; add more declaration info on unresolvedproperty access
* Remove stray ts-ignore
2020-06-30 14:25:27 -07:00
Wesley Wigham
ff1f449b99
Fix type of computed name following spread ( #39319 )
2020-06-30 13:37:59 -07:00
Alexander T
8b6a88700e
fix(32297): add quick-fix action to delete parameter destructuring elements ( #38764 )
2020-06-30 11:44:47 -07:00
Daniel Rosenwasser
a812a7449d
Merge pull request #38792 from microsoft/reportBaseAgainstBooleans
2020-06-30 01:58:51 -07:00
Daniel Rosenwasser
1bbd5ef36b
Merge pull request #38754 from a-tarasyuk/feat/25259
...
feat(25259): Better error report for equals instead of colon in object literals
2020-06-30 01:56:26 -07:00
Daniel
40c3ffec91
Add assertion.
2020-06-30 01:33:32 -07:00
Daniel
915d4fc060
Accepted baselines.
2020-06-30 01:33:28 -07:00
Daniel
ef40ed1ee6
Exempt bare 'boolean's from the check.
2020-06-30 01:12:45 -07:00
Alexander T
21a26ca08a
feat(25259): add better error to report for equals instead of the colon in object literals
2020-06-30 10:33:56 +03:00
Daniel Rosenwasser
619658bd44
Merge pull request #39109 from Kingwl/lambda_span
...
Add outlining spans for call expression or arrow body
2020-06-29 23:33:04 -07:00
Anders Hejlsberg
784396ce95
Infer implied arity before inferring from 'this' argument ( #39328 )
...
* Infer implied arity before inferring from 'this' argument
* Add regression test
2020-06-29 17:38:41 -07:00
Andrew Casey
932b314f81
Delete lib/lib.esnext files no longer found in built/local
2020-06-29 15:46:41 -07:00
Andrew Casey
126a95b37c
Delete lib/diagnosticMessages.generated.json
...
The values are baked in - only the localized json files are needed in
the LKG.
2020-06-29 15:45:33 -07:00
Anders Hejlsberg
9458f8acab
Consistent narrowing to 'never' in conditional and switch statements ( #39191 )
...
* Allow unions and unit types to narrow to 'never'
* Remove odd check for TypeFlags.NotUnionOrUnit
* Accept new baselines
* Accept new API baselines
2020-06-29 15:25:00 -07:00
Anders Hejlsberg
b448540644
No speculative inferences for variadic tuples ( #39281 )
...
* No speculative inferences to types like [...T, U?]
* Add tests
2020-06-29 15:24:32 -07:00
Daniel Rosenwasser
57dd722ab6
Merge pull request #38776 from a-tarasyuk/bug/29890
...
fix(29890): JSX: "extract to constant" generates invalid code
2020-06-29 14:09:52 -07:00
Wesley Wigham
99bec5067b
Use mapped rest type member when expanding rest parameter names ( #39317 )
...
* Use mapped rest type member when expanding rest parameter names
* Add test for #39228 which is also fixed by parameters having unique names
2020-06-29 12:30:23 -07:00
Alexander T
ee5c3fa57d
fix(39047): handle extra spaces after the catch statement ( #39306 )
2020-06-29 10:10:44 -07:00
Andrew Branch
58ed610ef1
Allow distinct string enum members with identical property names to form unions in mapped types ( #39101 )
2020-06-29 10:08:17 -07:00
csigs
3853bf5273
LEGO: Merge pull request 39318
...
LEGO: Merge pull request 39318
2020-06-29 09:11:23 -07:00
csigs
5f04915ccb
LEGO: check in for master to temporary branch.
2020-06-29 16:10:37 +00:00
csigs
03f0fc4cf5
LEGO: Merge pull request 39309
...
LEGO: Merge pull request 39309
2020-06-28 09:11:39 -07:00
csigs
6ed9d56cca
LEGO: check in for master to temporary branch.
2020-06-28 16:10:45 +00:00
Alexander T
c75af697af
fix(29890): wrap variable/method/property to jsx expression
2020-06-28 10:51:11 +03:00
csigs
1aaa2ec45e
LEGO: Merge pull request 39286
...
LEGO: Merge pull request 39286
2020-06-26 15:12:09 -07:00
csigs
80482e4af8
LEGO: check in for master to temporary branch.
2020-06-26 22:11:14 +00:00
Andrew Branch
3d22a4fd72
Preserve newlines between try/catch/finally, if/else, do/while ( #39280 )
...
* Preserve newlines between try/catch, if/else, do/while
* Update baselines
2020-06-26 14:48:19 -07:00
ShuiRuTian
4601a786aa
not narrow static property without type annotation in constructor. ( #39252 )
...
* fix #39226
* fix lint.
2020-06-26 11:08:35 -07:00
Ron Buckton
611b77f2e6
Migrate more places to use Map/Set
2020-06-26 10:15:53 -07:00
Ron Buckton
eb2f4e2337
Switch to ES Map/Set internally ( #33771 )
...
* Add full implemention of Map and Set to shims
* Update default Map interface
* Remove WeakMap/WeakSet
* Add tests for set shim
* Update most usages of Map<K, true> to Set
* PR Feedback
* Fix lint issues
* Change key in fsWatchCallback
* Simpler shim, more tests
* Fix typo in collection shim
2020-06-26 10:12:47 -07:00
Alexander T
95690c0aca
fix(38840): omit completions for a spread like argument in a function definition ( #38897 )
2020-06-26 09:38:05 -07:00
Alexander T
59f80970d9
fix(38785): include in NavigationBar child items from default exported functions ( #38915 )
2020-06-26 09:35:27 -07:00
csigs
535914c6d5
LEGO: Merge pull request 39276
...
LEGO: Merge pull request 39276
2020-06-26 09:11:31 -07:00
csigs
02d7c1ea1b
LEGO: check in for master to temporary branch.
2020-06-26 16:10:42 +00:00
csigs
7edc00f8bc
LEGO: Merge pull request 39270
...
LEGO: Merge pull request 39270
2020-06-25 21:11:26 -07:00