Oleksandr T
e064817371
feat(42639): allow narrowing type in 'in' operator with the identifier on the left side ( #44893 )
2021-07-21 09:10:32 -07:00
TypeScript Bot
1e2c77e728
Update package-lock.json
2021-07-21 06:07:17 +00:00
Andrew Branch
31d98ec44a
Don’t try to create auto import provider when host program doesn’t exist ( #45126 )
...
* Guard against creating auto import provider without host program
* Also don’t pre-seed auto import provider if updateGraph didn’t produce a program
* Rename `isFirstLoad`
2021-07-20 11:16:58 -07:00
Ron Buckton
365b25693c
Fix and validate post-increment/decrement in module emit ( #44968 )
2021-07-19 13:34:42 -07:00
Andrew Branch
476054ea57
Fix auto import crashes caused by unrelocatable symbols ( #45055 )
...
* Add failing test
* Fix auto import crashes caused by unrelocatable symbols
* Use util for testing if symbol is an external module
2021-07-19 10:32:47 -07:00
Andrew Branch
36225c3260
Detect preference for Unode:
-prefixed node core modules ( #45080 )
2021-07-19 09:56:24 -07:00
csigs
ddbd829ea1
LEGO: Merge pull request 45092
...
LEGO: Merge pull request 45092
2021-07-18 16:17:56 -07:00
csigs
a84ca309e0
LEGO: Merge pull request 45088
...
LEGO: Merge pull request 45088
2021-07-17 22:14:11 -07:00
csigs
64e19ffc3f
LEGO: Merge pull request 45087
...
LEGO: Merge pull request 45087
2021-07-17 16:17:42 -07:00
csigs
7ad76171f7
LEGO: Merge pull request 45085
...
LEGO: Merge pull request 45085
2021-07-17 10:13:32 -07:00
TypeScript Bot
4ca716ceb3
Update package-lock.json
2021-07-17 06:06:08 +00:00
csigs
5e55501ac6
LEGO: Merge pull request 45083
...
LEGO: Merge pull request 45083
2021-07-16 22:14:50 -07:00
csigs
cf8217fc29
LEGO: Merge pull request 45081
...
LEGO: Merge pull request 45081
2021-07-16 16:13:58 -07:00
Andrew Branch
b300ef4bc7
Check for watched directories before clearing map ( #44947 )
2021-07-16 15:35:38 -07:00
Oleksandr T
1aac3555f7
fix(45049): fix diagnostic for missing property initializer ( #45052 )
2021-07-16 15:10:42 -07:00
Oleksandr T
ba2e2600c8
fix(44701): allow renaming string literal in rhs/lhs of equality ( #44708 )
2021-07-16 14:45:06 -07:00
Anders Hejlsberg
193b7494d0
Properly propagate silentNeverType in intersections ( #45073 )
...
* Properly propagate silentNeverType in intersections
* Add regression test
2021-07-16 11:20:04 -07:00
Wesley Wigham
d0efe9065e
Dont swallow declaration emit errors when issued on nodes without names ( #44995 )
2021-07-16 10:30:22 -07:00
csigs
7ef66f647b
LEGO: Merge pull request 45072
...
LEGO: Merge pull request 45072
2021-07-16 10:13:11 -07:00
Andrew Casey
d8f2aaeebf
Shorten baseline names ( #45054 )
...
Fixes #45051
2021-07-16 10:01:36 -07:00
Oleksandr T
00596e19f5
fix(44168): exclude adding export to existing exported identifier ( #44755 )
2021-07-16 09:40:17 -07:00
Oleksandr T
23ebe04563
fix(44902): resolve members in Union or Intersection types ( #44904 )
2021-07-16 09:07:52 -07:00
csigs
e4da7a97a0
LEGO: Merge pull request 45067
...
LEGO: Merge pull request 45067
2021-07-16 04:13:22 -07:00
Wesley Wigham
8268f2adec
Avoid bogus circularity error on context sensitive constructor property assignments ( #44601 )
...
* Avoid bogus circularity error on context sensitive constructor property assignments
* Add JS case and ensure its fixed
2021-07-15 17:06:56 -07:00
csigs
87cff4e3bb
LEGO: Merge pull request 45060
...
LEGO: Merge pull request 45060
2021-07-15 16:13:30 -07:00
Andrew Branch
6d3772f357
Fix auto import require of CJS module with module:es2015+ and allowSyntheticDefaultExports ( #44955 )
2021-07-15 16:08:05 -07:00
Josh Goldberg
541e553163
Specific diagnostic suggestions for unexpected keyword or identifier ( #43005 )
...
Error message improvement for unexpected tokens in the following situations:
* A word was parsed that seems to have a low edit distance from a known common keyword
* A word was parsed that seems to be a known common keyword and a name _without_ a space in-between
* Parsing in a particular type of node (mostly a class property declaration) got a different word or token than expected
___
* Specific diagnostic suggestions for unexpected keywords or identifier
* Don't reach into there, that's not allowed
* Improved error when there is already an initializer
* Specific module error message for invalid template literal strings
* Skip 'unexpected keyword or identifier' diagnostics for declare nodes
* Improve error for function calls in type positions
* Switch class properties to old diagnostic
* Corrected errors in class members and reused existing textToKeywordObj map
* Corrected more baselines from the merge
* Update src/compiler/parser.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
* Mostly addressed feedback
* Clarified function call type message
* Split up and clarified parsing vs error functions
* Swap interface name complaints back, and skip new errors on unknown (invalid) tokens
* Used tokenToString, not a raw semicolon
* Inline getExpressionText helper
* Remove remarks in src/compiler/parser.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2021-07-14 13:50:55 -07:00
Gabriela Araujo Britto
3358f137c6
Fix namespace name conflict detection in "Convert named imports to namespace import" action ( #45019 )
...
* fix namespace conflict detection
2021-07-14 11:07:12 -07:00
jjangga0214
2b8296b7ad
chore(typo): fix comment ( #45016 )
2021-07-14 09:28:48 -07:00
TypeScript Bot
9247ef115e
Update package-lock.json
2021-07-14 06:06:00 +00:00
Jean Pierre
40ec8392a1
Fixes JSDoc @type function with variable args is interpreted incorrectly ( #44864 )
...
* Fixes #44386
* Add test
* Move test from fourslash to conformance
2021-07-13 17:17:24 -07:00
Daniel Rosenwasser
0996bff509
Support syntactic diagnostics in partial mode ( #44859 )
...
* Initial work to support syntactic diagnostics in partial mode.
* Test out 'syntacticDiagnosticsSync' requests.
* Added a 'geterr' test.
* Accepted baselines.
* Remove/clean up comments.
2021-07-13 11:22:34 -07:00
caojoshua
acdf62fa1e
Fix "Union types are not being narrowed down correctly in 4.3 #44401 " ( #44771 )
...
* Fix "Union types are not being narrowed down correctly in 4.3 #44401 "
* On undefined constraint, add the original type to constraints.
2021-07-13 11:02:18 -07:00
TypeScript Bot
c17fd8c479
Update package-lock.json
2021-07-13 06:06:06 +00:00
csigs
f453a28ed0
LEGO: Merge pull request 45000
...
LEGO: Merge pull request 45000
2021-07-12 22:13:14 -07:00
Wesley Wigham
8e855d140b
Watch mode watches for changes in package.json files used in resolution ( #44935 )
...
* watch mode watches for changes in package.json files used in resolution
* Pathify result of realpath
* Actually accept pathified baselines
2021-07-12 17:23:08 -07:00
csigs
0746f70fe5
LEGO: Merge pull request 44989
...
LEGO: Merge pull request 44989
2021-07-12 10:14:10 -07:00
csigs
3c604f1c0a
LEGO: Merge pull request 44987
...
LEGO: Merge pull request 44987
2021-07-12 04:13:35 -07:00
csigs
ed6007d316
LEGO: Merge pull request 44982
...
LEGO: Merge pull request 44982
2021-07-11 22:18:01 -07:00
csigs
bcb1911abd
LEGO: Merge pull request 44979
...
LEGO: Merge pull request 44979
2021-07-11 16:18:31 -07:00
csigs
db561931a7
LEGO: Merge pull request 44977
...
LEGO: Merge pull request 44977
2021-07-11 10:13:09 -07:00
Ron Buckton
66c3063b06
Add collision check for 'Reflect' when using super in static initializers ( #44876 )
...
* Add collision check for 'Reflect' when using super in static initializers
* PR feedback
* Accept baseline for new failing test
2021-07-10 12:48:54 -07:00
TypeScript Bot
6ee8154b2b
Update package-lock.json
2021-07-10 06:05:44 +00:00
TypeScript Bot
8e795108eb
Update package-lock.json
2021-07-09 06:05:48 +00:00
Oleksandr T
a15030ff6f
fix(35050): Decorator emit incorrect within try
block ( #41951 )
...
* fix(35050): fix decorated block-scoped class emit
* Only use internal name when targeting ES5/3
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2021-07-08 10:48:02 -07:00
Andrew Branch
e881a69939
Detect circularities printing recursive conditional types ( #43733 )
2021-07-08 09:19:58 -07:00
TypeScript Bot
2f3cd38121
Update package-lock.json
2021-07-08 06:06:03 +00:00
Ron Buckton
8590f0db40
Fix decorator emit regression for static fields ( #44933 )
2021-07-07 16:58:36 -07:00
Oleksandr T
c0821aeacd
fix(44926): change noImplicitOverride description ( #44929 )
2021-07-07 18:43:44 +01:00
TypeScript Bot
1de29af709
Update package-lock.json
2021-07-07 06:06:13 +00:00