Wesley Wigham
004dc89600
Use elipses for reverse mapped types in nested positions ( #28494 )
2018-11-12 18:50:08 -08:00
Wesley Wigham
d99de73e85
Handle type argument lists as jsx completion starts ( #28493 )
...
* Handle type argument lists as jsx completion starts
* preceeding -> preceding
2018-11-12 16:30:04 -08:00
Daniel Rosenwasser
25462beeb7
Merge pull request #28456 from Microsoft/nonExperimentalBigInt
...
BigInt shouldn't be considered experimental
2018-11-12 15:59:15 -08:00
Wesley Wigham
2b345cc8f8
Track type recusion and symbol instantiation depth seperately in createAnonymousTypeNode ( #28490 )
2018-11-12 15:45:36 -08:00
Daniel Rosenwasser
9e92597ae7
More general test case name.
2018-11-12 14:52:44 -08:00
Daniel Rosenwasser
e4bb1973ed
Fixed up flags on test cases and stray newline.
2018-11-12 14:52:44 -08:00
Daniel Rosenwasser
830be0651c
Merge pull request #27669 from Microsoft/betterErrorForAccidentalCall
...
Always emit diagnostic when a call expression can be fixed by adding a semicolon
2018-11-12 14:50:23 -08:00
Wesley Wigham
13234b62f5
Force inner indexed access simplification during inference, if possible ( #28420 )
...
* Force inner indexed access simplification during inference, if possible
* rename
* Refactor to used shared implementation of distribution
2018-11-12 14:39:43 -08:00
Wesley Wigham
eb21eb8e11
Ensure all default type params are mapped to some default even in circular scenarios ( #28423 )
...
* Ensure all default type params are mapped to some default even in circular scenarios
* Add js example, fix typo
2018-11-12 13:52:47 -08:00
Andy
fe1ba9bee3
Improvements to generateTypes ( #28458 )
...
* Improvements to generateTypes
* createProperty only if necessary
2018-11-12 11:50:48 -08:00
Sheetal Nandi
cce26c8ff1
When serializing conditional types, use true and false type to determine emit
...
Fixes #27999
2018-11-12 09:23:29 -08:00
Klaus Meinhardt
3dfd9c1b9b
Add test for #28468
2018-11-11 18:47:02 +01:00
Anders Hejlsberg
a2205ad53d
Merge pull request #28429 from Microsoft/fixEmptyObjectIntersection
...
Fix empty object intersections
2018-11-10 00:44:57 -08:00
Wesley Wigham
7d4e0e6297
Fix duplicated amd module comments in declaration bundle ( #28451 )
2018-11-09 17:18:34 -08:00
Sheetal Nandi
d6df82a77c
Merge pull request #28454 from Microsoft/codeFixAfterPrologue
...
Include code fix after prologue
2018-11-09 16:56:43 -08:00
Daniel Rosenwasser
15f2f047f8
Updated test case.
2018-11-09 16:21:06 -08:00
Sheetal Nandi
c60ff902f1
Include code fix after prologue
...
Fixes #15515
2018-11-09 16:02:16 -08:00
Daniel Rosenwasser
02ca5bebbf
Merge pull request #28340 from saschanaz/listindent-revive
...
List position based formatting
2018-11-09 15:34:16 -08:00
Daniel Rosenwasser
2585ccbe39
Merge pull request #28281 from ryanclarke/master
...
Add codefix for 'convert to unknown' diagnostic
2018-11-09 14:43:25 -08:00
Andy
c0e5c80e53
Add exports of current module to getSymbolsInScope ( #28442 )
2018-11-09 12:48:10 -08:00
Andy
aaf1d8055b
Support finding references at module in module.exports = or export in export = ( #28221 )
...
* Support finding references at `module` in `module.exports =` or `export` in `export =`
* Add json test
2018-11-09 09:38:45 -08:00
Markus Wolf
6bd298b884
add test for remove modifier and parameter
2018-11-09 09:45:12 +01:00
Markus Wolf
13e85ac3a9
add more modifiers
2018-11-09 09:45:12 +01:00
Markus Wolf
d411fa34a7
Add test case for codeFix
2018-11-09 09:45:11 +01:00
Anders Hejlsberg
627f1ad876
Add regression tests
2018-11-09 06:45:21 +01:00
Kagami Sascha Rosylight
7995f9153a
apply suggested changes
2018-11-09 11:26:58 +09:00
Wesley Wigham
89fda5ca83
Fix enum const initializer visibility painting ( #28415 )
2018-11-08 12:33:54 -08:00
Sheetal Nandi
b534fb4849
Merge pull request #27980 from EECOLOR/leading-slash-imports
...
match leading slash imports with path mappings - fixes #13730
2018-11-08 09:20:45 -08:00
Anders Hejlsberg
e95ed29ca9
Fix fourslash test
2018-11-08 18:02:04 +01:00
Ryan Clarke
ecb88f5a3e
Fix comments on pull request
2018-11-07 21:43:02 -05:00
EECOLOR
1a9c20949e
path mappings now supports rooted disk paths and urls - fixes #13730
2018-11-07 22:19:04 +01:00
Wesley Wigham
d351610e7a
Update opposite direction of #28218 ( #28384 )
2018-11-06 13:52:35 -08:00
Wesley Wigham
d7390c03f0
Avoid elaborating on generic indexes ( #28294 )
2018-11-06 12:51:11 -08:00
Daniel Rosenwasser
41d3f0ad57
Merge pull request #28071 from pesca/improveCodeFix
...
Improve code fix for missing members
2018-11-06 11:29:51 -08:00
Wesley Wigham
cc36e294cc
Add related span pointing to this-shadowing location for implicitly-any this ( #28299 )
...
* Add diagnostic pointing to this-shadowing location
* Fix almost-top-level-this case
* Change message on span
2018-11-06 11:27:07 -08:00
Wesley Wigham
929791868f
Make for..in expressions allowed to be null/undefined ( #28348 )
2018-11-05 17:23:19 -08:00
Anders Hejlsberg
85dbc0438f
Merge pull request #28312 from Microsoft/genericRest
...
Generic object rest variables and parameters
2018-11-05 16:36:45 -08:00
Andy
c22c7e687d
Strcter testing for global completions; and 'excludes' can only be a string ( #28349 )
2018-11-05 16:16:28 -08:00
Anders Hejlsberg
f9dd44517a
Merge branch 'master' into genericRest
...
# Conflicts:
# src/compiler/checker.ts
2018-11-05 15:41:53 -08:00
Sheetal Nandi
576fdf98d7
Merge pull request #25886 from calebsander/feature/bigint
...
BigInt support
2018-11-05 13:08:48 -08:00
Andy
f37101e871
Fix bug when augmenting parent-less symbol ( #28345 )
2018-11-05 12:57:33 -08:00
Caleb Sander
bb99c41230
Don't error on bigint literal used in type
2018-11-05 12:23:02 -08:00
Caleb Sander
6c59a3b890
Fix ambient initializer emit for bigint
2018-11-05 11:36:33 -08:00
Caleb Sander
ecd12453f4
Add test for bigint property
2018-11-05 11:36:32 -08:00
Caleb Sander
28e9ec497c
Address review comments
2018-11-05 11:36:32 -08:00
Caleb Sander
a93131319e
Add bigint tests
2018-11-05 11:36:32 -08:00
Caleb Sander
95c24c6c6a
experimentalBigInt compiler flag
2018-11-05 11:36:31 -08:00
Nathan Shively-Sanders
4cb210ce2e
Parameters infer from body and call sites ( #28342 )
...
* Parameters infer from body usage and call sites
* Function expressions infer from variable decl usages
If the function expression is the initialiser of a variable declaration.
* Update isApplicableFunctionForInference too
* Update baseline
2018-11-05 11:29:16 -08:00
Kagami Sascha Rosylight
8ed21a8a6a
adjust test: always indented inside a list
2018-11-05 21:45:19 +09:00
Kagami Sascha Rosylight
7bc40cead8
indent size 8 based on list startline indentation
2018-11-05 21:45:19 +09:00