29129 Commits

Author SHA1 Message Date
Orta Therox
73a206b47f Update the README links 2019-10-22 13:43:52 -04:00
Nathan Shively-Sanders
cdf1ab2dec
Bind @class in the right place -- bindWorker not bindChildrenWorker (#34575)
Also add an assert to make future mismatches fail in an obvious place
instead of in a while loop.
2019-10-18 14:13:14 -07:00
Nathan Shively-Sanders
fa1884ed1b
Fix crash in expando assignment to alias (#34566)
* Fix crash in expando assignment to alias

This PR disallows expando assignments

Fixes #34493, but disallows the prototype assignment nonetheless.

* Revert mistaken changes
2019-10-18 13:31:44 -07:00
Nathan Shively-Sanders
1d5add528d
Emit computed property temps even w/o init w/useDefineForClassFields (#34406)
Fixes #33857
2019-10-18 13:23:38 -07:00
Anders Hejlsberg
241de73556
Merge pull request #34496 from microsoft/fix34272
Properly attach alias symbol to `readonly T[]` types
2019-10-18 12:07:03 -07:00
Ben Lichtman
1bfc47252f
Merge pull request #33938 from uniqueiniquity/classifcationAssertion
Add assertion when classification has unexpected length
2019-10-18 09:44:51 -07:00
Ben Lichtman
65561a89dd fix assertion condition 2019-10-18 09:18:16 -07:00
Michael Crane
0fc388893e Remove redundant and misplaced perfLogger startup statement (#34551) 2019-10-18 09:13:40 -07:00
Nathan Shively-Sanders
82f927f8dd
Fix stack overflow in circular assignment declaration (#34543)
* Fix stack overflow in circular assignment declaration

It also needs to have multiple assignments so that it has a ValueModule
flag.

Fixes #33006

* remove errant comment

* Remove other possible circularity

* Restore fallback with additional condition
2019-10-18 09:01:21 -07:00
Tim Suchanek
9ff9c41a9a Add completion test for partial generic object (#34559) 2019-10-18 08:59:49 -07:00
Andrew Casey
dd58bfc514
Merge pull request #34505 from amcasey/ListFilesOnly
Add listFilesOnly command-line option
2019-10-17 18:28:34 -07:00
Andrew Casey
7275e9ca93 Delete redundant test 2019-10-17 17:22:47 -07:00
Andrew Casey
526e413abc Dropping assert for 3.7 2019-10-17 16:51:30 -07:00
Andrew Casey
8927aaabb5 Rewrite tests 2019-10-17 16:50:22 -07:00
Andrew Casey
9dd8391244 Add additional properties to switch declaration 2019-10-17 16:36:54 -07:00
Andrew Casey
d18130d36b Consolidate checks in emitFilesAndReportErrors 2019-10-17 16:36:54 -07:00
Andrew Casey
caf0041f8a Add listFilesOnly command-line option
Msbuild currently uses a combination of `--listFiles` and `--noEmit` to
obtain a list of files to be consumed by tsc.  However, these two flags
don't suppress type checking, the results of which msbuild will never
consume.  This new switch gives msbuild a faster way to obtain the file
list.

Note: like `--noEmit`, doesn't make sense in build mode.
2019-10-17 16:36:50 -07:00
csigs
a8dc7af271
LEGO: Merge pull request 34549
LEGO: Merge pull request 34549
2019-10-17 15:11:05 -07:00
csigs
80cb807663 LEGO: check in for master to temporary branch. 2019-10-17 22:10:36 +00:00
Sheetal Nandi
580e3f56aa
Merge pull request #34527 from microsoft/rootDir
Use getNormalizedAbsolutePath to combine basePath and config value for file names
2019-10-17 14:19:49 -07:00
Andrew Branch
454a3a0b0f
Fix auto-imports from auto type acquisition definitions (#33766)
* Fix auto-imports from ATA typings

* Compare canonical filenames in isImportablePath
2019-10-17 13:59:09 -07:00
Sheetal Nandi
b3df23cc18 Accept module resolution trace baseline where baseUrl is specified as "../" in tsconfig 2019-10-17 13:15:26 -07:00
Sheetal Nandi
fde10a2494 Merge branch 'master' into rootDir 2019-10-17 12:54:26 -07:00
Sheetal Nandi
6d969f729d
Merge pull request #34525 from microsoft/testChanges
Converted more tsc and tsbuild tests to baseline
2019-10-17 12:50:30 -07:00
Sheetal Nandi
575339c2e1 Merge branch 'master' into testChanges 2019-10-17 12:26:16 -07:00
Sheetal Nandi
4055689579
Merge pull request #34487 from microsoft/skipTsBuildinfoEmit
Do not write build info if there are no files to emit
2019-10-17 12:22:25 -07:00
Sheetal Nandi
4530d3ed80 Fixed scenario names 2019-10-17 12:04:24 -07:00
Sheetal Nandi
6caa92800f Fix scenario name 2019-10-17 12:00:41 -07:00
Sheetal Nandi
afee423a84 Feedback on formatting 2019-10-17 11:54:26 -07:00
Sheetal Nandi
5b5f88ead0 Add test with incremental program with only d.ts files 2019-10-17 11:52:22 -07:00
Sheetal Nandi
f32c2eac65 Some changes to incremental tests 2019-10-17 11:46:54 -07:00
Nathan Shively-Sanders
f5dbcb78af
Resolve more jsdoc value references as types (#34515)
* Resolve more jsdoc value references as types

* add test
2019-10-17 11:21:34 -07:00
Nathan Shively-Sanders
262ec6171d
Make ImageData(Uint8ClampedArray)'s 3rd param optional (#34519)
It can be inferred from the first two.

Fixes #33266

Baseline update from microsoft/TSJS-lib-generator#790
2019-10-17 11:14:07 -07:00
Andrew Branch
f41b7b59ce
Fix quick info for methods whose contextual type is a mapped type property (#33930) 2019-10-17 10:54:01 -07:00
Andrew Branch
a95a25b9a7
Fix completions of optional properties in generic positions (#33937)
* fixes #30507

* Add test case for generic Partial type

* Fixes #28470

* Simplify contextFlags binary check

* Add string literal completion test

* Fix ContextFlags typings

* Speed up inference expression for completion

* Fix baseline merge

* Make contextFlags internal

* Reapply readonly array changes

* accept baselines

* Fix generic completion tests

* Re-merge ContextFlags

* Don’t change type during inference

* Fix typos and superfluous undefined arguments

* Add test for completions in unconstrained generic object literal
2019-10-17 10:45:40 -07:00
Klaus Meinhardt
45d0ef9441 factory: parenthesize for-of expression when necessary (#34229)
Fixes: #33856
2019-10-17 10:17:33 -07:00
Orta
5d20c573a6
Merge pull request #34524 from orta/fix_32675
Does not add a duplicate completion when offering an export which was re-declared as a global
2019-10-17 13:08:32 -04:00
Orta Therox
85010fa6fe Make sure that global module re-exports are short-cutted to be added to completions 2019-10-17 12:33:01 -04:00
Orta
43cf8995a6
Merge pull request #34530 from connorjclark/patch-1
Update bug template to link to nightly playground
2019-10-17 10:48:18 -04:00
Connor Clark
d6663bf0bd
Update bug template to link to nightly playground 2019-10-16 19:44:48 -07:00
Nathan Shively-Sanders
f3a234caac
Dedupe inherited jsdoc comments (#34522)
JSDoc on own properties was already deduped, but inherited jsdoc was
incorrectly not deduped.

Fixes #32708
2019-10-16 15:56:01 -07:00
Sheetal Nandi
1531c9ec21 Fix lint rules 2019-10-16 15:42:53 -07:00
Sheetal Nandi
9fa7d8b3b9 Use getNormalizedAbsolutePath to combine basePath and config value for file names
Fixes #34502 by being consistent in path normalization
2019-10-16 15:38:29 -07:00
csigs
d020ac6dd1
LEGO: Merge pull request 34526
LEGO: Merge pull request 34526
2019-10-16 15:10:56 -07:00
csigs
0709bde718 LEGO: check in for master to temporary branch. 2019-10-16 22:10:29 +00:00
Sheetal Nandi
a4044ca684 Add test for #34502 2019-10-16 14:32:18 -07:00
Sheetal Nandi
66ea16a23a Sample to baseline output 2019-10-16 14:05:07 -07:00
Orta Therox
c40ddb183e Does not add a duplicate completion when offering an export which was re-declared as a global - fixes #32675 2019-10-16 17:02:35 -04:00
Sheetal Nandi
e54d5cae60 outFile to baseline 2019-10-16 12:51:41 -07:00
Sheetal Nandi
5390c644c9 rootDir tests are baselined 2019-10-16 12:19:26 -07:00