Nathan Shively-Sanders
e2ca945569
Merge branch 'master' into triple-slash-jsdoc
2020-08-06 11:04:27 -07:00
Nathan Shively-Sanders
a835635a18
Fix triple-slash reference classification
2020-08-06 10:53:08 -07:00
Nathan Shively-Sanders
ae4b29c559
Skip triple-slash references
2020-08-06 09:11:46 -07:00
Nathan Shively-Sanders
cf63bce7af
Fix scanner offset and make it easier to read
2020-08-05 16:17:56 -07:00
csigs
e9f82e4aa2
LEGO: Merge pull request 39927
...
LEGO: Merge pull request 39927
2020-08-05 15:12:12 -07:00
csigs
9ad3b47e60
LEGO: check in for master to temporary branch.
2020-08-05 22:11:17 +00:00
Nathan Shively-Sanders
70f057339d
Basic working version
...
With two testsa, one of which shows that line-joining and current-tag
maintenance isn't done yet.
2020-08-05 13:50:16 -07:00
Sheetal Nandi
da5ff57608
Renames in servermode per feedback ( #39883 )
...
* Server mode renames as per feedback
* More renames
2020-08-05 12:19:15 -07:00
Andrew Branch
7f4e1b699a
Find tagless JSDoc as preceding token ( #39912 )
2020-08-05 10:09:45 -07:00
csigs
2ebdf9fdce
LEGO: Merge pull request 39921
...
LEGO: Merge pull request 39921
2020-08-05 09:11:30 -07:00
csigs
a548e4f363
LEGO: check in for master to temporary branch.
2020-08-05 16:10:40 +00:00
csigs
58438519f9
LEGO: Merge pull request 39917
...
LEGO: Merge pull request 39917
2020-08-05 03:11:38 -07:00
csigs
7d11da17c0
LEGO: check in for master to temporary branch.
2020-08-05 10:10:46 +00:00
Nathan Shively-Sanders
c9f05af2c8
Merge pull request #37891 from Neonit/jsDocIndentationPreservation
...
Fix indentation preservation in JSDoc (#37717 )
2020-08-04 16:09:50 -07:00
csigs
4c7ea8ed4a
LEGO: Merge pull request 39913
...
LEGO: Merge pull request 39913
2020-08-04 15:12:00 -07:00
csigs
c96bad261a
LEGO: check in for master to temporary branch.
2020-08-04 22:11:06 +00:00
Sheetal Nandi
bcccae2fd4
Handle the fact that noResolveResolution resolution is reused ( #39889 )
...
Fixes #39795
2020-08-04 13:33:27 -07:00
csigs
6247364181
LEGO: Merge pull request 39904
...
LEGO: Merge pull request 39904
2020-08-04 09:11:33 -07:00
csigs
3d9eb73db2
LEGO: check in for master to temporary branch.
2020-08-04 16:10:42 +00:00
Daniel Rosenwasser
2106b07f22
Rename and use the default ref instead of having a workflow_dispatch option
2020-08-04 00:14:24 -07:00
Daniel Rosenwasser
817dc52fd3
Add an 'Update LKG' action ( #39897 )
2020-08-04 00:05:24 -07:00
Daniel Rosenwasser
d985e68ffa
Bump version to 4.1. ( #39894 )
...
* Bump version to 4.1.
* Update baselines.
2020-08-03 23:38:55 -07:00
csigs
ed55e0c0d1
LEGO: Merge pull request 39896
...
LEGO: Merge pull request 39896
2020-08-03 21:11:30 -07:00
csigs
26d228cb18
LEGO: check in for master to temporary branch.
2020-08-04 04:10:42 +00:00
Nathan Shively-Sanders
773be796ba
Merge pull request #39892 from microsoft/make-uint8-constructor-backward-compatible
...
Make numeric Array constructors take ArrayLikeBuffer union
2020-08-03 16:55:17 -07:00
csigs
1ed00c86fa
LEGO: Merge pull request 39891
...
LEGO: Merge pull request 39891
2020-08-03 15:12:03 -07:00
csigs
dec871ba10
LEGO: check in for master to temporary branch.
2020-08-03 22:11:07 +00:00
Nathan Shively-Sanders
065b83b902
Make numeric Array constructors take ArrayLikeBuffer union
...
PR #38449 changed the second overload of the constructor for Int8,
Uint8, Int32, Uint32, Int16, Uint16, Float, Float64 -Array so that it no
longer includes `ArrayBufferLike`. It's just `ArrayLike<number>`.
This is fine except in the case that
the caller provides exactly `ArrayLike<number> | ArrayBufferLike`. This
PR adds ArrayBufferLike back so that the union is once again accepted.
This avoids a breaking change, in particular in one Microsoft-internal
codebase.
2020-08-03 14:56:55 -07:00
Nathan Shively-Sanders
ff2ff98ee4
Update user baselines ( #39857 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-08-03 09:25:23 -07:00
csigs
b28a5042d0
LEGO: Merge pull request 39880
...
LEGO: Merge pull request 39880
2020-08-03 09:11:33 -07:00
csigs
d7fb2b608f
LEGO: check in for master to temporary branch.
2020-08-03 16:10:45 +00:00
typescript-bot
c05078e52e
Update user baselines
2020-08-03 04:44:41 +00:00
csigs
7e93035b66
LEGO: Merge pull request 39868
...
LEGO: Merge pull request 39868
2020-08-02 21:11:41 -07:00
csigs
b092fb37b1
LEGO: check in for master to temporary branch.
2020-08-03 04:10:44 +00:00
Sheetal Nandi
aee78acedb
Add separate flag serverMode for server mode ( #39735 )
...
* Add separate flag serverMode for server mode to allow back compatibility
* Addressed code review feedback.
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-08-02 18:18:26 -07:00
Andrew Branch
86a87c493c
Limit auto import provider project size ( #39855 )
...
* Limit auto import provider project size
* Add test
* Make option configurable
* Fix test
* Only bail when setting is auto
* Fix other test
* Update API baseline
2020-08-02 17:47:49 -07:00
Wesley Wigham
94989789df
In JS declaration emit, move imports painted in nested contexts to the root private context ( #39818 )
...
* In JS declaration emit, move imports painted in nested contexts to the root private context
* Add test for nathan
2020-07-31 18:25:37 -07:00
TypeScript Bot
1b97d03b8a
Update user baselines ( #39502 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-07-31 15:06:29 -07:00
Nathan Shively-Sanders
d3877d294c
Redo in narrowing for intersections ( #39637 )
...
* Redo in-narrowing for intersections
Still need to carve out an exception for globalThis
* exempt globalThis from `in` narrowing
2020-07-30 14:58:22 -07:00
Ron Buckton
32934a9989
Merge pull request #39824 from microsoft/fix35484
...
Allow assignments to a narrowable reference to be considered narrowable
2020-07-30 15:27:34 -04:00
Andrew Branch
7119e2b74f
The iteration type of overloaded iterator signatures derives from the intersection of their return types ( #39722 )
2020-07-30 11:37:04 -07:00
Ron Buckton
315b5f4b78
PR Feedback
2020-07-30 11:13:58 -07:00
Orta Therox
faf128de15
Fix formatting scanner on JSX text that looks like trivia ( #39718 )
...
* Fix formatting scanner on JSX text that looks like trivia
* Combine if statements
Co-authored-by: Andrew Branch <andrew@wheream.io>
2020-07-30 13:56:14 -04:00
mshivaku99
bffe3540fa
Issue35876: Give better error message when Classic Module Resolution with incorrect path ( #38105 )
...
* added Error 5084 to diagnosticMessages.json
* added test case errorForBareSpecifierWithImplicitModuleResolution1 to tests/cases/compiler
* modified checker.ts to report error 5084 when classic resolution and incorrect path are used
* added baseline changes
* passes all test cases including src/testRunner/unittests/ tests
* Update with feedback
* Make it check whether it is the right module resolution kind
* Use the right diagnostic message in tsserver tests
Co-authored-by: Meera Shivakumar <mshivaku@umich.edu>
Co-authored-by: Orta <git@orta.io>
2020-07-30 13:45:29 -04:00
Eli Barzilay
a320e1b554
Make getLocalSymbolForExportDefault look harder for an export
...
Look for a symbol that has a `.localSymbol` property instead of blindly
using the first one.
Fixes #37829 .
2020-07-30 13:09:21 -04:00
Micah Zoltu
b601487905
Updates Uint8ArrayConstructor to match MDN documentation. ( #38449 )
...
* Updates Uint8ArrayConstructor to match MDN documentation.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array
```
new Uint8Array(); // new in ES2017
new Uint8Array(length);
new Uint8Array(typedArray);
new Uint8Array(object);
new Uint8Array(buffer [, byteOffset [, length]]);
```
While the previous constructors aren't significantly different from the new, it would prevent someone from doing `new Uint8Array(myBuffer, undefined, undefined)` since there was no overload that accepted undefined as a second parameter and buffer as first.
Fixes #38446
* Fixes constructor defenition for all other typed arrays.
* Renames property to `array` since it is no longer an `arrayOrBuffer`.
2020-07-30 08:51:50 -04:00
Ron Buckton
21963ce337
Restore reference change
2020-07-29 18:41:05 -07:00
Ron Buckton
4c90ba9456
Temporary revert to compare user test baselines
2020-07-29 18:13:27 -07:00
Alexander T
bae111f0ae
fix(39245): change related diagnostic for missing rest parameter arguments ( #39356 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-07-29 17:25:13 -07:00
Ron Buckton
b9db6413bf
Allow assignments to a narrowable reference to be considered narrowable
2020-07-29 16:37:25 -07:00