Daniel Rosenwasser
e01927271e
Undo CRLF -> LF change.
2021-11-16 12:34:00 -07:00
Daniel Rosenwasser
5bcffa11d8
Merge branch 'main' into codeFixesHaveFunctionNames
2021-11-16 11:32:31 -07:00
Kevin Tan
fcdbc932bf
implement code fix for override of js files ( #45780 )
...
* feat: code fix for override in js files
Co-Authored-By: Wenlu Wang <kingwenlu@gmail.com>
* fix comments
Co-Authored-By: Wenlu Wang <kingwenlu@gmail.com>
* remove tryMergeJsdocTags
* fix: bring the two methods back as functions
* revert emitter changes
* fix comments
* fix: test failures
Co-authored-by: Wenlu Wang <kingwenlu@gmail.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-11-16 08:01:43 -08:00
TypeScript Bot
7615547d42
Update package-lock.json
2021-11-15 06:06:28 +00:00
Oleksandr T
719ab0b477
fix(43359): emit default exports with named exports that have the same names with types ( #44718 )
2021-11-12 11:25:52 -08:00
Mohammad Aziz
fe3e117cb2
fix(46712): Add "exceptZero" for "signDisplay" option of Intl.NumberFormat() ( #46740 )
2021-11-12 11:12:21 +00:00
Andrew Branch
1298f498f4
Revert changes to matchFiles/readDirectory made since 4.3 ( #46787 )
...
* Revert "Fix RWC missing file detection (#46673 )"
This reverts commit 4a065f524c
.
* Revert "Pass absolute path to directoryExists (#46086 )"
This reverts commit 55b4928e82
.
* Revert "Reduce exceptions (#44710 )"
This reverts commit c0d5c29080
.
* Add back system watcher limit
2021-11-11 15:24:20 -08:00
Armando Aguirre
7b86a65f22
Removed replacement from jsx completions ( #46767 )
...
* Removed replacement from jsx completions
* Fixed tests
2021-11-10 18:18:15 -08:00
Oleksandr T
b12d5c5dc5
fix(46605): show completions in object literal parameters ( #46743 )
2021-11-09 14:50:26 -08:00
Daniel Rosenwasser
416571ca90
Remove unnecessary annotations/casts/aliases ( #46727 )
...
* Remove unnecessary annotation.
* Remove more unnecessary stuff.
* Remove unnecessary assertion.
2021-11-09 12:17:54 -08:00
Gabriela Araujo Britto
e5a6ae397d
Fix extra newline in class member snippet completions ( #46737 )
...
* fix extra newline
* fix test
2021-11-09 12:03:07 -08:00
Wesley Wigham
4a065f524c
Fix RWC missing file detection ( #46673 )
2021-11-09 10:41:18 -08:00
TypeScript Bot
e040e8516f
Update package-lock.json
2021-11-09 06:06:42 +00:00
Oleksandr T
a05d851dc3
fix(45907): don't use static member name to inherit JSDocs from instance members ( #46274 )
2021-11-08 15:05:08 -08:00
Daniel Rosenwasser
c9f6b0750a
Remove double space.
2021-11-08 10:54:50 -08:00
Nathan Shively-Sanders
9713cc1a75
Big[U]Int64Array.at returns bigint, not number ( #46733 )
...
bigint is needed to represent all 64-bit ints that these arrays could
contain.
2021-11-08 09:50:02 -08:00
Daniel Rosenwasser
f6a993f394
Add function names for code fixes.
2021-11-08 09:44:56 +00:00
Oleksandr T
3ef3cdddb3
fix(45692): merge non-primitive in spread-union ( #45729 )
2021-11-05 15:41:06 -07:00
Oleksandr T
0a628ff0c9
fix(44059): omit duplicate types ( #45739 )
2021-11-05 15:36:08 -07:00
Oleksandr T
2d4b243195
fix(33325): allow extract refactoring on selected statement without trailing semicolon ( #45765 )
2021-11-05 10:00:31 -07:00
Oleksandr T
4fca1e1fcd
fix(46666): add outlining spans for comments preceding call expressions ( #46682 )
2021-11-04 12:43:01 -07:00
Kagami Sascha Rosylight
ae582a22ee
Add target: "es2022"
( #46291 )
...
* Add `target: "es2022"`
* Add Object.hasOwn
* formatToParts is es2018
* ref update
* optional parameter
* Revert "optional parameter"
This reverts commit e67d6e5f60
.
* undefined
* error cause
* Lint fix
Co-authored-by: Orta <git@orta.io>
2021-11-04 10:55:11 -07:00
Oleksandr T
ff75b8a180
fix(46615): remove useless assertion. change error suggestion for rest params ( #46628 )
2021-11-03 14:11:39 -07:00
Wesley Wigham
d53630fac3
Make specifier generation from export map information conditional on module resolution mode ( #46670 )
2021-11-03 13:10:44 -07:00
Oleksandr T
7264cf7db5
fix(46589): omit ? in method signature completion for optional methods ( #46594 )
2021-11-03 12:56:17 -07:00
Andrew Casey
e2f47a2db1
Duplicate GDPR fragment from VS Code repo ( #46625 )
...
* Duplicate GDPR fragment from VS Code repo
...because the tool doesn't handle cross-repro references.
* Explain functionality in more detail
2021-11-03 10:37:31 -07:00
Anders Hejlsberg
831b770b95
Control flow analysis for destructured discriminated unions ( #46266 )
...
* CFA for dependent variables destructured from discriminated union
* Accept new baselines
* Add tests
* Limit calls to isSymbolAssigned
* Fix wrong operator
2021-11-02 15:48:13 -07:00
Wesley Wigham
de23842e45
Allow import assertions on esm imports under module: nodenext ( #46630 )
...
* Allow import assertions on esm imports under module: nodenext
* Changes to copy
Co-authored-by: Andrew Branch <andrew@wheream.io>
2021-11-02 15:34:37 -07:00
Oleksandr T
b8f8fd7a3e
fix(46512): allow to use tag names containing keywords with - ( #46546 )
2021-11-02 15:12:10 -07:00
Anders Hejlsberg
33fe1b6ffc
Fix contextual typing for symbol-named properties ( #46558 )
...
* Properly handle symbol-named properties in contextual types
* Update index signature in PropertyDescriptorMap
* Add regression tests
2021-11-02 14:05:41 -07:00
Anders Hejlsberg
373accf28f
Improve recursion depth checks ( #46599 )
...
* Decrease recursion depth limit to 3 + smarter check for recursion
* Accept new baselines
* Always set last type id
* Keep indexed access recursion depth check
* Less expensive and corrected check for broadest equivalent keys
2021-11-02 14:05:17 -07:00
Anders Hejlsberg
56f81075f9
Properly check whether union type contains only primitive types ( #46645 )
...
* Properly check whether union type contains only primitive types
* Add regression test
* Remove 'export' modifier from test
2021-11-02 12:46:26 -07:00
Andrew Branch
7f8bf0b9c4
Fix git remote in cherry pick script ( #46647 )
2021-11-02 12:39:42 -07:00
Anders Hejlsberg
7cbcfeea99
Exclude identity relation from mapped type relation check ( #46632 )
...
* Exclude identity relation from mapped type relation check
* Add regression test
2021-11-02 06:54:35 -07:00
TypeScript Bot
2424d0e575
Update package-lock.json
2021-11-02 06:06:22 +00:00
Oleksandr T
5142e37f2d
fix(43292): forbid highlighting multiline template strings ( #46531 )
2021-11-01 14:21:38 -07:00
Eli Barzilay
fa2ad1a35a
Fix findUpDir.ts
and uses
...
Missed a bunch of stuff in #46414 (556098e
).
2021-11-01 16:45:49 -04:00
Daniel Rosenwasser
d89076381e
Bump version to 4.6 and accept baselines. ( #46612 )
2021-11-01 11:45:22 -07:00
Daniel Rosenwasser
6d33d8797b
Check for type parameters on original type when getting type argument completions ( #46614 )
...
* Add failing test.
* Check for type parameters on the original type when asking for the type argument constraint.
* Update tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts
2021-11-01 11:41:43 -07:00
csigs
bf6d164bd5
LEGO: Merge pull request 46601
...
LEGO: Merge pull request 46601
2021-10-29 22:17:49 -07:00
Gabriela Araujo Britto
6b1e8f7baf
remove placeholders in class member snippets ( #46598 )
2021-10-29 16:55:59 -07:00
csigs
e3fab9fc20
LEGO: Merge pull request 46597
...
LEGO: Merge pull request 46597
2021-10-29 16:13:23 -07:00
Andrew Branch
7742cf2180
Set hasAddedOrRemovedSymlinks when discovering an existing file by its link ( #46569 )
...
* Set hasAddedOrRemovedSymlinks when discovering an existing file by its link
* Make it optional
2021-10-29 15:47:48 -07:00
Andrew Branch
eeaa595196
Enable auto imports in member snippet completions ( #46592 )
2021-10-29 14:43:32 -07:00
Anders Hejlsberg
b0ab2a54bb
Fix mapped type instantiation circularity ( #46586 )
...
* Don't obtain constraint if doing so would cause circularity
* Add regression test
* Address CR feedback
2021-10-29 14:01:27 -07:00
Wesley Wigham
28e3cd3a80
Add error on new module/moduleResolution modes when used in non-nightly TS ( #46557 )
...
* Add error on new module/moduleResolution modes when used in non-nightly TS
* Update diagnostic
2021-10-29 11:46:19 -07:00
Jack Bates
9b1ba8f1e3
Fix react-jsx spread children invalid emit ( #46565 )
...
* Fix react-jsx spread children invalid emit
* Update Baselines and/or Applied Lint Fixes
* Change childrenLength parameter -> isStaticChildren
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2021-10-29 10:54:46 -07:00
Andrew Casey
325435891a
Update GDPR comment formatting ( #46585 )
...
...so that they are picked up properly by the tooling.
2021-10-29 10:48:28 -07:00
Gabriela Araujo Britto
9cdbb7248b
Improve errors on module: node12 and extensionless relative imports ( #46486 )
...
* add new error + suggestions
* push down assert defined
* remove comment
* fix esm module import detection, update baselines
* add and update new tests
* fix review comments
* remove renamed baseline references
* update node modules test baselines
* fix error message, add new tests
* update old tests with new error message
2021-10-29 10:25:03 -07:00
csigs
f1a69ec93e
LEGO: Merge pull request 46584
...
LEGO: Merge pull request 46584
2021-10-29 10:14:21 -07:00