Andrew Casey
ca31f008a8
Address more potential this
issues
2019-10-21 14:01:12 -07:00
Andrew Casey
6429e4cd36
Fix undefined this
2019-10-21 13:32:42 -07:00
Andrew Casey
205b3dae3b
Extract shared helper
2019-10-17 16:26:43 -07:00
Andrew Casey
f39b49d756
Update another writeFile call-site
2019-10-17 11:36:45 -07:00
Andrew Casey
b6659e5d6e
Inline function to tidy up control flow
2019-10-16 11:34:38 -07:00
Andrew Casey
4ed80b62df
Stop pre-emptively creating directories
...
Checking for directory existence is expensive and frequently indicates
success. Instead of pre-emptively creating the directory containing a
file to be written, attempt to create the file and only do the directory
scaffolding if the write fails.
Appears to reduce file write time by 10-20% for a file-I/O heavy partner
build.
Thanks to @rbuckton for the suggestion!
2019-10-16 11:24:24 -07:00
Klaus Meinhardt
178417f431
factory: correctly parenthesize conditional head ( #34227 )
...
Fixes : #34109
2019-10-16 10:41:52 -07:00
csigs
3da51df4a1
LEGO: Merge pull request 34514
...
LEGO: Merge pull request 34514
2019-10-16 09:10:40 -07:00
csigs
510639218a
LEGO: check in for master to temporary branch.
2019-10-16 16:10:11 +00:00
Martin Johns
408b17649a
doc(lib/es5): Fix grammar in DateConstructor.UTC documentation ( #34509 )
...
This fixes #34507 .
2019-10-16 08:33:22 -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
Sheetal Nandi
f24db4ccf4
Merge pull request #33921 from sQVe/refactor/correct-misspelled-response
...
refactor(spelling): correct misspelled response
2019-10-16 08:07:25 -07:00
Oskar Grunning
2f48ff37fd
refactor(spelling): correct misspelled response
2019-10-16 08:44:14 +02:00
TypeScript Bot
77f4d9f039
Update user baselines ( #34411 )
2019-10-15 15:31:28 -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
d8d5ead83b
Restore 'type' and 'namespace' to All completion filter ( #34491 )
...
Vote in the comments below if you think I should restore other keywords!
Remember to like and subscribe!
2019-10-15 14:06:47 -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
730a52bf82
Better format for the exit code test
2019-10-15 15:35:08 -04: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
00505adf78
Accept new baselines
2019-10-15 08:40:24 -07:00
Anders Hejlsberg
3438681d6b
CR feedback + Consistent error spans on case/default clauses
2019-10-15 08:40:16 -07:00
Sheetal Nandi
c9d407b52a
Merge pull request #34403 from microsoft/commandlinePath
...
Make sure commandline options are absolute paths so they dont conflict with options from tsbuild info
2019-10-15 08:28:33 -07:00
Sheetal Nandi
758bd99879
Add test for #30457
2019-10-14 15:05:56 -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
Sheetal Nandi
827427f35b
Add test for --tsbuildinfo not as absolute or relative path
2019-10-14 14:29:14 -07:00
Martin
b7c85c7382
Update Math.round in es5.d.ts ( #33920 )
...
Update documentation of Math.round to reflect that it turns a float in to an integer and returns an integer.
2019-10-14 10:55:55 -07:00
TypeScript Bot
c2f2ac1d0b
Update user baselines ( #34345 )
2019-10-14 10:35:11 -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
Ingvar Stepanyan
1820df187b
Update DOM from TSJS-lib-generator ( #33753 )
...
This bumps generated bindings to include https://github.com/microsoft/TSJS-lib-generator/pull/767 .
Note that other related APIs were already updated in https://github.com/microsoft/TSJS-lib-generator/pull/755 and https://github.com/microsoft/TSJS-lib-generator/pull/756 and included in current TypeScript beta.
Unfortunately, this one slipped under the radar, but it would be really great to include these changes in beta too for consistency between different WebAssembly methods.
2019-10-14 09:00:33 -07:00
Anders Hejlsberg
21758a8b84
Accept new baselines
2019-10-13 09:46:02 -07:00
Anders Hejlsberg
cc817bc63e
Add tests
2019-10-13 09:45:56 -07:00
Anders Hejlsberg
a8b9f964b6
Use control flow analyzer for switch case fallthrough checks
2019-10-13 09:45:47 -07:00
TypeScript Bot
0d75038632
Update user baselines ( #34112 )
2019-10-13 05:23:42 -07:00
csigs
b0d967bcb5
LEGO: Merge pull request 34111
...
LEGO: Merge pull request 34111
2019-10-12 21:10:40 -07:00
csigs
7df1ab7375
LEGO: check in for master to temporary branch.
2019-10-13 04:10:12 +00:00
TypeScript Bot
97a4a0e27c
Update user baselines ( #34002 )
2019-10-12 11:06:05 -07:00
Sheetal Nandi
35a6426a79
Merge pull request #33647 from microsoft/defaultProject
...
Use correct default project for file if that project is opened at later time
2019-10-10 16:01:39 -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
Sheetal Nandi
144b81c67a
Use correct default project for file if that project is opened at later time
...
Fixes #31926
2019-10-10 13:02:33 -07:00
Orta
ae4abc5f5e
Merge pull request #33906 from falsandtru/github
...
Update issue templates
2019-10-10 11:52:23 -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
Andrew Casey
3c123b61d7
Merge pull request #33914 from amcasey/ConflictMarker
...
Handle string literals in merge conflict regions
2019-10-09 16:04:58 -07:00
falsandtru
834b3f7d64
Update issue templates
2019-10-10 07:36:14 +09:00
Andrew Casey
87c905f423
Handle string literals in merge conflict regions
...
Check for undefined, like the other code paths in the same function.
2019-10-09 14:46:19 -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