Nathan Shively-Sanders
03e3894909
Update baselines
2017-04-12 11:38:53 -07:00
Nathan Shively-Sanders
28cdaf24e9
Address PR:fix find-all-refs and slim down code
...
Also add readonly to find-all-ref test
2017-04-12 11:31:52 -07:00
Andy Hanson
c7d51a3053
Merge branch 'master' into refactor_findallrefs
2017-04-12 11:27:58 -07:00
Ron Buckton
60e056a217
Merge pull request #15144 from Microsoft/fix14357
...
Fix down-level emit for captured loop variable in async function
2017-04-12 11:10:05 -07:00
Andy Hanson
a82ac45e36
Merge branch 'master' into fallthrough
2017-04-12 10:58:03 -07:00
Ron Buckton
6c4a24eb11
Fix down-level emit for captured loop variable in async function
2017-04-11 17:30:53 -07:00
Kanchalai Tanglertsampan
c1ea3034d5
wip-fixing consuming whitespace in children
2017-04-11 15:35:06 -07:00
Andy
397efbde56
Merge pull request #15078 from Microsoft/lint-linter
...
Lint custom lint rules
2017-04-11 15:28:51 -07:00
Kanchalai Tanglertsampan
4562fd089c
Store scanning information whether JSXText is just an all whitespaces
2017-04-11 14:55:26 -07:00
Andy
12df0324ee
Merge pull request #15142 from Microsoft/newLine
...
Don't access `sys.newLine` inside unit tests
2017-04-11 14:40:09 -07:00
Andy Hanson
7347e5e4fd
Merge branch 'master' into lint-linter
2017-04-11 14:34:38 -07:00
Zhengbo Li
11ac006d60
Fix issue that randomly closes configured projects ( #15080 )
...
* Fix issue that randomly closes configured projects
* Correct the default project selection
2017-04-11 14:25:32 -07:00
Andy Hanson
893e3242fb
Don't access sys.newLine inside unit tests
2017-04-11 14:24:32 -07:00
Andy Hanson
8313776d8c
Merge branch 'master' into config-extension
2017-04-11 14:22:03 -07:00
Andy Hanson
4ae8df635a
Remove unnecessary use of getOwnKeys
...
Also, fix a typo.
2017-04-11 14:19:11 -07:00
Andy Hanson
fe007ccb84
configurationExtension tests: Use objects instead of strings for readability
2017-04-11 14:14:48 -07:00
Andy
1798e8f58b
Merge pull request #15131 from Microsoft/boolean-trivia-spacing
...
boolean-trivia lint rule: Enforce space between comment and argument
2017-04-11 14:10:17 -07:00
Andy Hanson
92bea77ad3
Tsconfig inheritance: Do not resolve included files in an inherited tsconfig
2017-04-11 14:05:57 -07:00
Ryan Cavanaugh
46eaf4feb0
Remove npm update; add release-2.3 to branches
...
This command *should* do nothing immediately following an `npm install`, but causes failures due to `tslint` having a dependency on `typescript`.
Also add release-2.3 to our covered branches
2017-04-11 12:38:49 -07:00
Ryan Cavanaugh
34e3f5fe4a
Merge pull request #15111 from RyanCavanaugh/typesMap2
...
Add tests, comments, and min.js exclusion
2017-04-11 11:08:14 -07:00
Kanchalai Tanglertsampan
17417e9a88
Format checker
2017-04-11 10:53:14 -07:00
Kanchalai Tanglertsampan
8e2dd38267
Use JSX Attributes to contextually type children property
2017-04-11 10:52:50 -07:00
Kanchalai Tanglertsampan
f86a730371
Consider whitespace that won't be emitted to be different kind so that we won't include in typ-checking
2017-04-11 10:52:18 -07:00
Andy Hanson
ed5eca2b7b
boolean-trivia lint rule: Enforce space between comment and argument
2017-04-11 09:44:58 -07:00
Andy
c38d2a188a
Merge pull request #15077 from Microsoft/null-trivia
...
boolean-trivia lint rule: Lint for null/undefined too
2017-04-11 08:43:41 -07:00
falsandtru
8a851f3702
Use object type
2017-04-11 21:39:51 +09:00
Anders Hejlsberg
3cda0eac32
Update tests
2017-04-10 17:14:22 -10:00
Anders Hejlsberg
ec35b800e3
Allow callbacks unioned with null and/or undefined
2017-04-10 17:14:11 -10:00
Ryan Cavanaugh
2b3c2b3448
Add tests, comments, and min.js exclusion
2017-04-10 16:00:15 -07:00
Anders Hejlsberg
510bc81967
Add another test case
2017-04-10 07:33:08 -10:00
Anders Hejlsberg
33bc9d1616
Accept new baselines
2017-04-10 07:22:20 -10:00
Anders Hejlsberg
189fc51579
Check callback return values bi-variantly
2017-04-10 07:22:10 -10:00
Ryan Cavanaugh
2ca90b7eb6
Merge pull request #14999 from RyanCavanaugh/typesMap
...
Add advanced safelist for exclusions
2017-04-10 10:20:50 -07:00
Andy Hanson
e9f95e2296
Only trace if traceEnabled
2017-04-10 09:06:26 -07:00
Anders Hejlsberg
50f84b12a2
Add tests
2017-04-08 14:19:25 -07:00
Anders Hejlsberg
11543d7369
Accept new baselines
2017-04-08 14:03:17 -07:00
Anders Hejlsberg
eebd67f8d5
Fix callback types to match covariantly
2017-04-08 12:54:01 -07:00
Anders Hejlsberg
8ae3e05075
Treat callback parameters as strictly covariant
2017-04-08 12:53:01 -07:00
Ryan Cavanaugh
a874567d46
Remove tsserver command for loading different map
2017-04-07 16:58:32 -07:00
Ryan Cavanaugh
2b09e54baa
Remove bad merge + unused cmd name
2017-04-07 16:58:21 -07:00
Ryan Cavanaugh
fc988a16ee
Pass correct regex flag
2017-04-07 16:58:13 -07:00
Kanchalai Tanglertsampan
b3846bfe65
Wip - type checking JSX children
2017-04-07 16:41:29 -07:00
Andy Hanson
e73fffd964
Lint custom lint rules
2017-04-07 13:17:50 -07:00
Andy Hanson
7320891933
boolean-trivia lint rule: Lint for null/undefined too
2017-04-07 13:13:39 -07:00
Ryan Cavanaugh
47cf7caf6e
Fix path escaping and slash normalization
2017-04-07 12:49:46 -07:00
Nathan Shively-Sanders
1671a06655
Test: object literal assignments->expanding arrays
...
Previously, the compiler would run out of memory for more than 13 or 14
of these assignments.
2017-04-07 11:14:16 -07:00
Nathan Shively-Sanders
5c2091ad33
Evolving array element ignores contextual type
...
Control flow analysis can easily hit circularities or exponential
behaviour when requesting the contextual type of an expression. When
adding an element type to an evolving array type, there is no point in
checking the contextual type of the new element type because it is
unknown -- it is exactly the type of the evolving array, which is
in the middle of being found.
Fixes #14628
This is code of the form:
```ts
let x = []
x[0] = { contextual: 'no' }
x[1] = { contextual: 'should not check' }
x[2] = { contextual: 'contextual type' }
// :
// :
```
2017-04-07 11:10:16 -07:00
Ryan Cavanaugh
439f1c77bd
Fix regex for real this time
2017-04-06 13:19:22 -07:00
Anders Hejlsberg
69c30a0126
Add regression tests
2017-04-06 12:57:03 -07:00
Ryan Cavanaugh
857b762edd
Fixes
2017-04-06 12:50:22 -07:00