Andrew Casey
526e413abc
Dropping assert for 3.7
2019-10-17 16:51:30 -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
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
fde10a2494
Merge branch 'master' into rootDir
2019-10-17 12:54:26 -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
afee423a84
Feedback on formatting
2019-10-17 11:54:26 -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
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
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
Sheetal Nandi
25db0b0bf0
Merge baselining and tsc logic into one
2019-10-16 11:39:40 -07:00
Klaus Meinhardt
178417f431
factory: correctly parenthesize conditional head ( #34227 )
...
Fixes : #34109
2019-10-16 10:41:52 -07:00
Sheetal Nandi
2c4cf0d1d5
Do not write build info if there are no files to emit
2019-10-16 08:28:23 -07:00
Sheetal Nandi
aaadb17afe
Merge pull request #34495 from microsoft/forceDts
...
Add forceDtsEmit flag to getEmitOutput
2019-10-16 08:14:47 -07:00
Eli Barzilay
22c15a2e6e
Merge pull request #34365 from elibarzilay/fix-exit-code-on-bogus-build-file
...
Fix exit code on bogus build file
2019-10-15 15:09:45 -07:00
Nathan Shively-Sanders
ab56cc0c6b
Remove property-override-method error ( #34494 )
...
Originally removed incorrectly along with method-override-property error
in #24343 , then both were restored in #33509 . Only
method-override-property should be an error, since it doesn't actually
work at runtime.
2019-10-15 14:11:51 -07:00
Nathan Shively-Sanders
29f9493d87
Fix crash when exporting+aliasing globalThis inside declare global ( #34408 )
...
* global module:Fix crash when exporting+aliasing globalThis
* Fix another globalThis crash
find-all-refs assumed that an export inside a `declare x` was always an
ambient module, but it is not -- `declare global` does not allow
`export`, so find-all-refs shouldn't return any refs for this error case.
2019-10-15 14:05:39 -07:00
Eli Barzilay
cd34808a14
Fixes missing error exit code when a bogus input file is specified
...
Fixes #33849 .
2019-10-15 15:35:07 -04:00
Eli Barzilay
f25575e5fe
Typofix: ..._OutputsSkupped -> ..._OutputsSkipped
2019-10-15 15:13:11 -04:00
Anders Hejlsberg
a685ac426c
Merge pull request #34212 from microsoft/fix34021
...
Fix control flow analysis for --noFallthroughCasesInSwitch
2019-10-15 12:10:53 -07:00
Sheetal Nandi
850d16e45f
Add forceDtsEmit flag to getEmitOutput
...
Fixes #33936
2019-10-15 10:07:19 -07:00
Anders Hejlsberg
3438681d6b
CR feedback + Consistent error spans on case/default clauses
2019-10-15 08:40:16 -07:00
Sheetal Nandi
bb4872b063
Do not write build info if there are no files to emit
2019-10-15 08:37:23 -07:00
Sheetal Nandi
4b10145340
Make sure commandline options are absolute paths so they dont conflict with tsbuildinfo paths
...
Fixes #33667
2019-10-14 14:44:47 -07:00
Andrew Branch
e146f0d13d
Allow inferFromUsage to do auto-imports ( #33915 )
...
* Add test
* Auto-import instead of using ImportTypeNodes
* Write more tests and fix namespace case
* Remove unused enum memmber
* Update API baselines
* Lint
* Style nits and util consolidation
2019-10-14 10:33:00 -07:00
Anders Hejlsberg
a8b9f964b6
Use control flow analyzer for switch case fallthrough checks
2019-10-13 09:45:47 -07:00
Sheetal Nandi
57d7edb7bd
Merge pull request #33883 from microsoft/revert-32887-incrementalNoEmit
...
Revert "Disallow incremental with noEmit"
2019-10-10 13:08:35 -07:00
Daniel Rosenwasser
6162001254
fix #33427 ( #33486 )
...
fix #33427
2019-10-10 10:13:36 -07:00
Wesley Wigham
114329ade8
Handle when import alias has to parent (therefore is synthetic module symbol) ( #33813 )
2019-10-10 04:29:33 -07:00
Anders Hejlsberg
6104f746ad
Merge pull request #33831 from microsoft/falseAssertions
...
Code following truthiness assertion with false argument is unreachable
2019-10-09 13:23:05 -07:00
Klaus Meinhardt
e48cd3a101
Fix noImplicitAny check on ambient private getters ( #33896 )
2019-10-09 10:05:26 -07:00
Sheetal Nandi
8032984de2
Revert "Disallow incremental with noEmit"
2019-10-08 13:41:40 -07:00
Wesley Wigham
f1c0300c02
Include project reference in release config so LKG build works ( #33864 )
2019-10-07 17:31:42 -07:00
Ron Buckton
01b3d41124
Add external mapShim/debug modules ( #33712 )
...
* Add external mapShim/debug modules
* rename test file
2019-10-07 13:31:07 -07:00
Daniel Rosenwasser
09a87b9e91
'amd' missing from error message for error TS1323 ( #33803 )
...
'amd' missing from error message for error TS1323
2019-10-07 10:12:31 -04:00
Anders Hejlsberg
92212ae19e
More succinct
2019-10-06 10:06:40 -07:00
Anders Hejlsberg
720964f729
Fix bounds check
2019-10-05 19:14:48 -07:00
Anders Hejlsberg
d415b57d01
Merge branch 'master' into falseAssertions
2019-10-05 18:04:30 -07:00
Anders Hejlsberg
afe6f4c95c
Merge pull request #33821 from microsoft/fix33806
...
Reflect control flow effects of optional chains in equality checks
2019-10-05 17:48:53 -07:00
Anders Hejlsberg
f7b22a0216
Support typeof and instanceof
2019-10-05 13:08:24 -07:00
Anders Hejlsberg
719b779b6b
Reflect CFA effects of optional chains in equality checks
2019-10-04 15:27:32 -07:00
Ron Buckton
a47ac63738
Fix for incorrect 'this' type for optional call ( #33799 )
2019-10-04 13:39:42 -07:00
Anders Hejlsberg
feed4b9b53
Code following truthiness assertion with false argument is unreachable
2019-10-04 12:30:02 -07:00
Andrew Branch
e2b4c12596
Detect unbindable exports before setting CommonJS module indicator ( #33784 )
...
* Detect unbindable exports before setting CommonJS module indicator
* Fix comment
* Fix unrelated lint?
2019-10-04 11:52:38 -05:00
Alexander T
d9d3e310a0
'amd' missing from error message for error TS1323
2019-10-04 10:21:14 +03:00
Ron Buckton
c774762723
Fix crash in transformations ( #33768 )
2019-10-02 16:13:32 -07:00