csigs
1e7214fa6d
LEGO: Merge pull request 40579
...
LEGO: Merge pull request 40579
2020-09-15 17:11:33 -07:00
csigs
4855759ca0
LEGO: check in for master to temporary branch.
2020-09-16 00:11:01 +00:00
csigs
23cb2d844f
LEGO: Merge pull request 40573
...
LEGO: Merge pull request 40573
2020-09-15 11:11:11 -07:00
csigs
0425b7ae24
LEGO: check in for master to temporary branch.
2020-09-15 18:10:42 +00:00
TypeScript Bot
a8456085e3
Update package-lock.json
2020-09-15 06:20:25 +00:00
csigs
b908d6698e
LEGO: Merge pull request 40566
...
LEGO: Merge pull request 40566
2020-09-14 23:11:13 -07:00
csigs
ca7c413750
LEGO: check in for master to temporary branch.
2020-09-15 06:10:46 +00:00
Wesley Wigham
98314d77e8
Use unexpanded parameter list in serialization when the expanded list has a non-trailing variadic position ( #40556 )
2020-09-14 19:56:24 -07:00
Wesley Wigham
d40663f7e5
Pull all history in branch sync script
...
This got broken when it got updated to checkout@v2, which by default only checks out the specified ref and none of its history.
2020-09-14 19:55:36 -07:00
Ron Buckton
dba042d7d5
Add quick fix to add 'void' to Promise resolved without value ( #40558 )
...
* Add codefix to add 'void' to Promise resolved without value
* Add specific error message in checker to reduce quick-fix time in editor
2020-09-14 19:12:33 -07:00
csigs
7db91182f7
LEGO: Merge pull request 40563
...
LEGO: Merge pull request 40563
2020-09-14 17:11:41 -07:00
csigs
85553ec564
LEGO: check in for master to temporary branch.
2020-09-15 00:11:11 +00:00
Andrew Branch
575baf5c7f
Support auto-import from paths alias without baseUrl ( #40546 )
2020-09-14 15:23:47 -07:00
Nathan Shively-Sanders
ec36d73e7a
Fix error on duplicate commonjs exports ( #40545 )
...
* Fix error on duplicate commonjs exports
Previously, the code missed setting the parent pointer for the lhs
access expression.
Also add declaration emit of element access expressions, missed in my
previous PR.
* Switch to excludes=None, add test case
CommonJS exports have None excludes, but still have an error issued by
the checker. This is the previous behaviour even though it would be nice
to add some exclusions.
2020-09-14 13:12:51 -07:00
Alex T
c493d077a3
copy prologue directives to new file ( #40306 )
2020-09-14 12:24:32 -07:00
Wesley Wigham
94123d5744
Issue a diagnostic when the node builder performs truncation despite the NoTruncation flag being set ( #40477 )
2020-09-14 12:20:57 -07:00
csigs
d6859c3480
LEGO: Merge pull request 40547
...
LEGO: Merge pull request 40547
2020-09-14 11:11:22 -07:00
csigs
a6ea950c1b
LEGO: check in for master to temporary branch.
2020-09-14 18:10:53 +00:00
Ryan Cavanaugh
21d781fa54
Fix incorrect name of index signature flag in implementation ( #40541 )
2020-09-14 09:32:22 -07:00
csigs
8d6aecbdde
LEGO: Merge pull request 40537
...
LEGO: Merge pull request 40537
2020-09-14 05:11:12 -07:00
csigs
ff5eef4ad4
LEGO: check in for master to temporary branch.
2020-09-14 12:10:34 +00:00
TypeScript Bot
e9d2aa1dd2
Update package-lock.json
2020-09-14 06:20:45 +00:00
csigs
5fa379c742
LEGO: Merge pull request 40535
...
LEGO: Merge pull request 40535
2020-09-13 23:11:11 -07:00
csigs
9be710bbea
LEGO: check in for master to temporary branch.
2020-09-14 06:10:37 +00:00
Daniel Rosenwasser
bbf26a07eb
Remove technically unnecessary 'module' option from 'harness' config. ( #40526 )
2020-09-12 23:19:02 -07:00
Anders Hejlsberg
57c8938d9e
Consistent inferences when inferring to template literal type ( #40518 )
...
* Consistently make inferences when inferring to template literal type
* Add tests
* Accept new baselines
2020-09-12 16:33:33 -10:00
TypeScript Bot
c9422e6aa1
Update package-lock.json
2020-09-12 06:20:06 +00:00
Andrew Casey
46506b5872
Merge pull request #40095 from rhillefeld/master
...
Added zero-padding to timestamp output
2020-09-11 18:12:31 -07:00
Nathan Shively-Sanders
9c99870058
Support element access aliases: exports["x"] = x ( #40514 )
2020-09-11 18:05:47 -07:00
Anders Hejlsberg
eee799fe0c
Properly check types in template literal placeholders ( #40498 )
...
* Properly check types in template literal placeholders
* Add regression test
* Update test
* Accept new baselines
2020-09-11 14:48:35 -10:00
Ryan Cavanaugh
ea51fabb7c
Don't crash when observing invalid 'export' in object literal ( #40295 )
...
Fixes #32870
2020-09-11 17:18:23 -07:00
Reinhard Hillefeld
4c5e463e12
Simplifying padLeft() to only allow spaces or zeros for padding. Updated padRight() to mirror padLeft() but without the option to use zeros since that would be an unlikely use case.
2020-09-11 20:16:43 -04:00
Alex T
d7cd405bb2
feat(14751): show static members at the top of the list for a class like completion ( #40428 )
2020-09-11 14:48:24 -07:00
Ryan Cavanaugh
3d235b42a0
--noUncheckedIndexedAccess ( #39560 )
...
* Initial implementation + tests
* linty
* Support destructuring declarations and assignments
* lint
* Fix destructuring assignment and element access into known properties
* Update baselines
* Rename flag to unUncheckedIndexedAccess
* Add test for unique symbol indexing
* Fix flag order in baselines
Co-authored-by: Andrew Branch <andrew@wheream.io >
2020-09-11 14:43:10 -07:00
Andrew Branch
9c8d11b5ed
Allow 'paths' without 'baseUrl' ( #40101 )
...
* Allow paths without baseUrl
* Remove exception for leading * paths
* Add comment, remove commented code
* Update baselines
* Remove unnecessary default
* Fix test harness
* Fix baseline
* Resolve relative to host.getCurrentDirectory() with createProgram API
2020-09-11 12:58:40 -07:00
Orta Therox
aa2756a5d7
Updates Dom lib with TSJS changes, adding a new library for webworker iterable ( #40500 )
...
* Updates Dom lib with TSJS changes, adding a new library for webworker iterable
Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com >
* Fixes tests
Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com >
2020-09-11 15:36:00 -04:00
Orta Therox
db5368dc1d
Import the semantic highlighter from typescript-vscode-sh-plugin ( #39119 )
...
* Initial import of the vscode semantic highlight code
* Adds the ability to test modern semantic classification via strings instead of numbers
* Adds existing tests
* Port over the semantic classification tests
* Update baselines
* Update src/harness/fourslashImpl.ts
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
* Handle feedback from #39119
* Consistent formatting in the 2020 classifier
* Update baselines
* Apply suggestions from code review
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Update src/harness/fourslashImpl.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
* Reafactor after comments
* Use 2020 everywhere
* Handle feedback
* WIP - don't provide a breaking change
* Fix all build errors
* Update baselines
* Update src/services/classifier2020.ts
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com >
* Addresses Ron's feedback
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com >
2020-09-11 15:10:55 -04:00
Wesley Wigham
a36f17c1f8
Add emit support for jsx/jsxs experimental jsx runtime api ( #39199 )
2020-09-11 10:44:52 -07:00
Andrew Branch
083129f005
A union including non-iterable types is not iterable ( #40350 )
...
* WIP
* If method type derives solely from the global iterator or generator type, use its type arguments
* Add test for problem fixed as side effect
2020-09-11 09:31:22 -07:00
Jack Moore
4a3b195772
Add lib es2020.sharedmemory ( #39541 )
2020-09-11 11:34:01 -04:00
Reinhard Hillefeld
ce1d76c7c9
Merge branch 'master' of https://github.com/microsoft/TypeScript
2020-09-11 10:34:44 -04:00
Reinhard Hillefeld
07c92e8fca
Modified existing padLeft() and padRight() functions to support strings other than a single space as padding.
...
Used this new functionality to zero-pad the timestamp created by nowString().
2020-09-11 09:27:27 -04:00
Orta Therox
cdafb7157b
Replaces the default module index resolver with '/index' instead of '' when handling internal routing for dts bundles ( #39277 )
...
* Adds support for declaring the bundled name of a dts module export
Co-authored-by: Wesley Wigham <wwigham@gmail.com >
* Adds baselines
* Update the tests
* Try to reduce the scope of the bundledPackageName error
* Use the flag in more baselines
* Get it green
* More tests
* Handle more feedback
* More test cleanup
* Set the moduleResolution for the tsconfigs
Co-authored-by: Wesley Wigham <wwigham@gmail.com >
2020-09-11 08:12:07 -04:00
TypeScript Bot
bbf2133fbe
Update package-lock.json
2020-09-11 06:20:23 +00:00
Nathan Shively-Sanders
0eb0fb6d72
Change baseline name to avoid case-only conflict
...
Windows hates this one weird trick! (And humans are mightily confused by
it)
2020-09-10 13:17:40 -07:00
Nathan Shively-Sanders
b7c598ea39
Use ad-hoc code for nested destructuring in require ( #40188 )
...
* Use ad-hoc code for nested destructuring in require
Nested destructuring doesn't really map to ES imports:
```js
const { utils: { nub, intercalate } } = require('./monopackage')
```
Previously, isRequireVariableDeclaration walked up binding elements
until it reached a variable declaration. This change instead only walks
up one binding element and stops. Then it's not bound as an alias and
uses the checker-only code to produce types for the nested-imported
identifiers.
Fixes #40143
* revert binder formatting change
2020-09-10 13:07:58 -07:00
Andrew Casey
45dedd6b87
Merge pull request #40063 from amcasey/ChromeTracing
...
Trace key operations
2020-09-10 13:01:47 -07:00
Orta Therox
0a5f53301f
Retains trailing cmments in a logical manner in extract type ( #40245 )
2020-09-10 14:59:46 -04:00
Nathan Shively-Sanders
e350c357d2
Alias for module.exports.x = x ( #40228 )
...
* Alias for `module.exports.x = x`
This fixes #40155 in a surprisingly small amount of code.
* Treat any aliasable expression as an alias
* test internal references to exported class
2020-09-10 11:23:48 -07:00
csigs
0636b9bfc1
LEGO: Merge pull request 40480
...
LEGO: Merge pull request 40480
2020-09-10 11:10:57 -07:00