Commit graph

31256 commits

Author SHA1 Message Date
Wesley Wigham
f4255dd237
Handle the new js binding element alias symbols in JS declaration emit 2020-10-21 11:24:19 -07:00
TypeScript Bot
672861abc6 Update package-lock.json 2020-10-21 06:25:41 +00:00
Andrew Branch
1f852ed747
Percent-encode source map URLs (#41102) 2020-10-20 13:11:52 -07:00
TypeScript Bot
1074fd45ff Update package-lock.json 2020-10-20 06:25:11 +00:00
Wesley Wigham
8b728c8bcd
Merge pull request #41151 from Andarist/fix/create-element-new-jsx-transform
Fix/create element new jsx transform
2020-10-19 17:30:18 -07:00
Wesley Wigham
0ad22de146
Merge branch 'master' into fix/create-element-new-jsx-transform 2020-10-19 15:21:52 -07:00
Wesley Wigham
c5cbd52f9a
Merge pull request #41166 from weswigham/empty-jsx-child
Do not consider empty jsx expressions semantically important children
2020-10-19 15:12:45 -07:00
Wesley Wigham
c29d3f8f6f
Accept updated baselines 2020-10-19 14:57:51 -07:00
Wesley Wigham
aa9445bc15
Merge branch 'master' into empty-jsx-child 2020-10-19 14:54:20 -07:00
Wesley Wigham
76df14126d
Merge pull request #41167 from weswigham/revert-extension-implicit-import
Revert "Add extensions to jsx automatically added import, per babel change (#40871)"
2020-10-19 14:47:28 -07:00
Wesley Wigham
33b8a4fbd2
Accept updated baselines 2020-10-19 14:32:26 -07:00
Wesley Wigham
de93173f53
Revert "Add extensions to jsx automatically added import, per babel change (#40871)"
This reverts commit 798b18be6e.
2020-10-19 14:27:28 -07:00
Wesley Wigham
b8dfa28ca8
Do not consider empty jsx expressions semantically important children 2020-10-19 13:34:16 -07:00
Anders Hejlsberg
4638c685b1
Properly reduce intersections of string literal and template literal types (#41162)
* Properly reduce single element intersections

* Add regression test

* Accept new baselines
2020-10-19 13:05:29 -07:00
Sheetal Nandi
15cec9d1f7
Optimizes project loading in few scenarios (#41126)
* Some refactoring of forEachResolvedProjectReference

* More refactoring

* Test before the change

* When loading project tree, load projects that directly or indirectly reference the projects we are looking for

* Optimize finding project in solution scenario by directly finding possible default project through projectReferenceRedirect
This helps in avoiding loading indirect projects when solution indirectly referenced default project
2020-10-19 12:59:59 -07:00
Jesse Trinity
08e4f369fb
Add editor configurable filename-based ATA (#40952)
* add typeAcquisition:inferTypings

* remove unused property

* handle inferred and external projects separately

* update missed rename

* fix tests

* pass as external compilerOption

* update test

* remove hostConfig reference

* change option name

* remove extraneous property

* add inferredProjectCompilerOptions
2020-10-19 09:53:58 -07:00
Anders Hejlsberg
3918e6c535
Move anonymous type instantiation cache from AST node to root type (#41084)
* Move anonymous type instantiation cache from AST node to root type

* Use "root" type reference as cache location for deferred type references

* Add test

Co-authored-by: Andrew Branch <andrew@wheream.io>
2020-10-19 07:26:48 -07:00
TypeScript Bot
cdf9c3b595 Update package-lock.json 2020-10-19 06:25:15 +00:00
Mateusz Burzyński
9fd2c2cb4b Add auto-import for createElement when using the new JSX transform 2020-10-17 19:47:49 +02:00
Mateusz Burzyński
43433eb2f1 Add tests related to the key prop when using new JSX transform 2020-10-17 15:20:39 +02:00
TypeScript Bot
896333810e Update package-lock.json 2020-10-17 06:24:10 +00: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
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
TypeScript Bot
9e5a77937a Update package-lock.json 2020-10-15 06:24:34 +00:00
Wesley Wigham
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
7a484695ca
LEGO: Merge pull request 41095
LEGO: Merge pull request 41095
2020-10-13 23:10:59 -07:00
csigs
ef5604b511 LEGO: check in for master to temporary branch. 2020-10-14 06:10:31 +00:00
csigs
d64a79d3aa
LEGO: Merge pull request 41093
LEGO: Merge pull request 41093
2020-10-13 17:12:07 -07:00
csigs
6598f470a7 LEGO: check in for master to temporary branch. 2020-10-14 00:11:19 +00:00
Wesley Wigham
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
8850e0d83d
LEGO: Merge pull request 41082
LEGO: Merge pull request 41082
2020-10-13 11:11:14 -07:00
csigs
9ed6f2806a LEGO: check in for master to temporary branch. 2020-10-13 18:10:41 +00:00
Alex T
417b8a9481
fix(29881): infer quote preference for property access conversion in completions (#41041) 2020-10-13 10:06:27 -07:00
csigs
7f6ad450bc
LEGO: Merge pull request 41077
LEGO: Merge pull request 41077
2020-10-13 05:11:18 -07:00
csigs
81739f8ba9 LEGO: check in for master to temporary branch. 2020-10-13 12:10:34 +00:00
Wesley Wigham
1cdb621257
Use minimal endings when generating declarations for js 2020-10-12 16:01:32 -07:00
Andrew Branch
83d02a5f05
Fix auto imports for export default edge cases (#41068) 2020-10-12 15:42:58 -07:00
Wesley Wigham
4bf8ac25be
Merge pull request #40778 from weswigham/spread-compact-literals
Always create optional properties when spreading objects conditionally
2020-10-12 15:40:51 -07:00
Wesley Wigham
e46a0380f9
Fix baselines now that dupe test is gone 2020-10-12 14:16:01 -07:00
Wesley Wigham
abaafe170e
Delete duplicate test 2020-10-12 14:12:07 -07:00
Wesley Wigham
34fb470087
Merge branch 'master' into spread-compact-literals 2020-10-12 14:10:51 -07:00
Andrew Branch
a09a7144e7
Fix crash resolving ImportTypeNode in JSDoc (#40838) 2020-10-12 09:33:39 -07:00
Alex T
05be3b421a
fix: show deprecated error for alias (#40961) 2020-10-12 08:45:08 -07:00
TypeScript Bot
ad3ae36fdc Update package-lock.json 2020-10-12 06:24:25 +00:00
TypeScript Bot
c88e44a9e6 Update package-lock.json 2020-10-11 06:23:26 +00:00
TypeScript Bot
09c7b3962c Update package-lock.json 2020-10-10 06:23:12 +00:00
Sheetal Nandi
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
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
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