Ron Buckton and Eli Barzilay
a197beef6d
Migrate 'ts.performance' to use native performance hooks when available
2020-10-15 19:10:50 -04:00
Eli Barzilay
868638ae04
performanceTimestamp: use performance.now on node
...
On node, `performance` is found in `require("perf_hooks")`.
2020-10-15 19:01:50 -04:00
Jack Works and GitHub
ad96a52cc6
fix: IOSession access this before calling super ( #40645 )
...
* fix: IOSession access this before calling super
close #40399
This makes the TS server crashes if the build target is ES6 or higher.
* fix
* revert unrelated changes
* revert unrelated changes
* revert unrelated changes
* better way
2020-10-15 11:01:26 -07:00
Wesley Wigham and GitHub
ce1947b0be
Merge pull request #41070 from weswigham/use-minimal-endings-in-bundled-declaration-emit
...
Use minimal endings when generating declarations for js
2020-10-14 15:29:50 -07:00
Eli Barzilay
5b2fba3334
transformGenerators: handle CommaListExpression
...
Uses essentially the same code as `visitCommaExpression` (which was
moved, to keep both together and close to
`visit{Right,Left}AssociativeBinaryExpression`).
Fixes #40614 .
2020-10-14 15:58:13 -04:00
csigs
ef5604b511
LEGO: check in for master to temporary branch.
2020-10-14 06:10:31 +00:00
Ron Buckton
7393dba6bd
Fix destructuring evaluation order for initializers
2020-10-13 17:14:35 -07:00
csigs
6598f470a7
LEGO: check in for master to temporary branch.
2020-10-14 00:11:19 +00:00
Wesley Wigham and GitHub
84726be01a
Merge pull request #40597 from weswigham/allow-instanceof-array-to-narrow-readonly-array
...
Handle the mapping between Array and ReadonlyArray in isTypeDerivedFrom
2020-10-13 15:08:17 -07:00
csigs
9ed6f2806a
LEGO: check in for master to temporary branch.
2020-10-13 18:10:41 +00:00
Alex T and GitHub
417b8a9481
fix(29881): infer quote preference for property access conversion in completions ( #41041 )
2020-10-13 10:06:27 -07:00
csigs
81739f8ba9
LEGO: check in for master to temporary branch.
2020-10-13 12:10:34 +00:00
uhyo
58781b0d41
allow type narrowing with NonNullExpression
2020-10-13 13:00:09 +09:00
Wesley Wigham
1cdb621257
Use minimal endings when generating declarations for js
2020-10-12 16:01:32 -07:00
Andrew Branch and GitHub
83d02a5f05
Fix auto imports for export default edge cases ( #41068 )
2020-10-12 15:42:58 -07:00
Wesley Wigham
34fb470087
Merge branch 'master' into spread-compact-literals
2020-10-12 14:10:51 -07:00
Andrew Branch and GitHub
a09a7144e7
Fix crash resolving ImportTypeNode in JSDoc ( #40838 )
2020-10-12 09:33:39 -07:00
Alex T and GitHub
05be3b421a
fix: show deprecated error for alias ( #40961 )
2020-10-12 08:45:08 -07:00
a4b9bbae90
Handle noEmit and noEmitOnError with SemanticDiagnosticsBuilder ( #40880 )
...
* Add test that fails
* Handle noEmit on semantic builder's emit as well
* Add test for tsbuildinfo text verification
* Fix noEmit handling for tsbuildinfo emit with SemanticDiagnosticBuilder
* Add test for noEmitOnError with SemanticDiagnosticsBuilder
* Fix tsbuildinfo emit with SemanticDiagnosticsBuilder on noEmitOnError
* Update src/compiler/builder.ts
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
* Update src/compiler/builder.ts
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2020-10-09 17:25:04 -07:00
Nathan Shively-Sanders and GitHub
a109b5d5c8
Fix relative paths in commonjs decl emit w/property access ( #40986 )
...
```js
const x = require('./foo').y
```
was incorrectly using the unmangled require path as the temp name in
emit:
```
import ./foo_1 = require('./foo')
import x = ./foo_1.y
```
It now uses the imported identifier:
```
import x_1 = require('./foo')
import x = x_1.y
```
Discovered while fixing #37832
2020-10-09 16:32:57 -07:00
Wesley Wigham and GitHub
aee18e0725
Merge pull request #41017 from weswigham/fix-unchecked-cast-crash
...
Fix crash due to unchecked cast in addImplementationSuccessElaboration
2020-10-09 15:58:08 -07:00
Sheetal Nandi and GitHub
e6d525c5cb
Structure is reused should be on new program instead of old program ( #41005 )
2020-10-09 15:56:51 -07:00
Sheetal Nandi and GitHub
876e44bbc6
Handle extra file extensions when wild card directory watch is invoked ( #41018 )
...
Fixes #40495
2020-10-09 14:07:55 -07:00
Andrew Branch and GitHub
4766a2e5a3
Fix overlapping changes when un-qualifying import use site within transformed export ( #40987 )
...
* Fix overlapping changes when un-qualifying import use site within transformed export
* Break long line
2020-10-09 13:24:18 -07:00
Wesley Wigham
39c2a09b1f
Fix crash due to unchecked cast in addImplementationSuccessElaboration
2020-10-09 10:53:59 -07:00
Wesley Wigham
f324fde873
Fix lint
2020-10-08 17:34:06 -07:00
Wesley Wigham
de204430ec
PR feedback
2020-10-08 17:17:06 -07:00
Wesley Wigham
6b29f36674
Rename variable
2020-10-08 16:14:47 -07:00
Wesley Wigham
a49099fd15
Add elaboration when call fails all overloads but succeeds against the implementation signature
2020-10-08 14:55:14 -07:00
Alex T and GitHub
23c5f9260c
fix(3758): show completion for object literals in an assignment pattern ( #40976 )
2020-10-08 12:27:53 -07:00
csigs
6f91ed1672
LEGO: check in for master to temporary branch.
2020-10-08 00:10:47 +00:00
Nathan Shively-Sanders
cf3e28ea66
Revert "feat(40197): handle uncalled function checks in binary expressions ( #40260 )"
...
This reverts commit eaf4f46c17 .
2020-10-07 14:14:49 -07:00
Alex T and GitHub
eaf4f46c17
feat(40197): handle uncalled function checks in binary expressions ( #40260 )
2020-10-07 14:06:42 -07:00
Nathan Shively-Sanders and GitHub
4283428906
Fix export binding of namespaced typedefs ( #40980 )
...
The binder incorrectly rejected implicit namespace declarations in
typedefs.
2020-10-07 13:21:02 -07:00
Wesley Wigham and GitHub
4dc7e59248
Merge pull request #40953 from weswigham/improve-completions-large-literal-perf
...
Improve the performance of requesting completions within a massive array literal
2020-10-07 12:44:20 -07:00
Wesley Wigham
d6af322287
Add comment
2020-10-07 12:27:43 -07:00
Wesley Wigham
c6734afba5
Adjust typeof import name lookup to better match type query lookup
2020-10-07 12:08:20 -07:00
csigs
30bb34ada4
LEGO: check in for master to temporary branch.
2020-10-07 18:10:42 +00:00
Nathan Shively-Sanders and GitHub
fc783a9000
Fix missed tasks to add esnext.weakref ( #40981 )
...
Follow up to #38232 , based on #33844
2020-10-07 11:06:04 -07:00
Anders Hejlsberg and GitHub
f34220980b
Add isDeeplyNestedType logic to getResolvedBaseConstraint ( #40971 )
...
* Add isDeeplyNestedType logic to getResolvedBaseConstraint
* Accept new baselines
* Add regression test
* Accept new baselines
* Fix lint issue
2020-10-07 05:50:06 -07:00
csigs
486b779b58
LEGO: check in for master to temporary branch.
2020-10-07 06:10:48 +00:00
csigs
f0515eed0e
LEGO: check in for master to temporary branch.
2020-10-07 00:10:51 +00:00
Mauro Bringolf and GitHub
48ad25d4b9
Add currency sign to NumberFormatOptions type ( #40709 )
2020-10-06 16:30:09 -07:00
Ron Buckton
14714bbace
Don't emit duplicate triple-slash directives when using API to print a .d.ts
2020-10-06 15:02:41 -07:00
Wesley Wigham
3df8bc6a03
Rephrase to use binarySearchKey
2020-10-06 12:29:58 -07:00
Sheetal Nandi and GitHub
d94b8e42a6
Fixes calculating resolved project reference to redirect for module resolution ( #40954 )
...
* Add test for #38711
* Fixes calculating resolved project reference to redirect for module resolution
Fixes #38711
* Update src/compiler/program.ts
2020-10-06 11:23:05 -07:00
csigs
b2b648605b
LEGO: check in for master to temporary branch.
2020-10-06 18:10:50 +00:00
Alex T and GitHub
5c55fc0a21
fix(40817): suggest import for default exported alias ( #40845 )
2020-10-06 09:52:35 -07:00
bd1d8e5ca2
Add definitions for WeakRef and FinalizationRegistry ( #38232 )
...
* Add definitions for WeakRef and FinalizationRegistry
Fixes #32393
* Mark callback parameter in FinalizationRegistry#cleanupSome() as optional
* Make FinalizationRegistry.prototype.cleanupSome optional
* Remove FinalizationRegistry.prototype.cleanupSome()
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2020-10-06 09:26:05 -07:00
fc0eed3795
lib: remove length field from SharedArrayBuffer ( #40858 )
...
* fix(lib): SharedArrayBuffer does not have a `length` field
* Revert formatting change.
* test: add tests for SharedArrayBuffer.length
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
2020-10-06 08:27:56 -07:00