Nathan Shively-Sanders
59e4770a51
Fix enum tag circular references ( #27161 )
...
* Fix enum tag circular references
Also, don't try to resolve enum tag types in Typescript.
* Improve comment
2018-09-17 16:06:17 -07:00
Andy
cfd0a62357
When renaming module, ensure rename span is just the last component of the path ( #27151 )
2018-09-17 15:26:41 -07:00
Wesley Wigham
359930a677
Use qutemarks around new instead of ticks around new in diagnostic ( #27106 )
...
* Use qutemarks around new instead of ticks
* Accept baselines
2018-09-14 15:57:24 -07:00
Sheetal Nandi
ebb89ba50c
Merge branch 'master' into commonCompilerOptionsWithBuild
2018-09-14 10:08:34 -07:00
Sheetal Nandi
47f311ac03
Merge pull request #27062 from Microsoft/tsbuildWatchImprovements
...
Multiple improvements to watching with --build option
2018-09-14 09:54:17 -07:00
Sheetal Nandi
0d60348e45
Unify the commandline parsing worker
2018-09-13 10:30:45 -07:00
Wesley Wigham
31374d21bf
Provide suggestions for common can-not-find-name errors ( #27034 )
2018-09-11 14:42:17 -07:00
Sheetal Nandi
c8cdb8146a
Always create dependency graph and build order
2018-09-11 14:27:25 -07:00
Wesley Wigham
1c1379252e
Prefer elaborating on expressions which could be called to produce a correct type by suggesting such ( #27016 )
...
* Prefer elaborating on expressions which could be called to produce a correct type by suggesting such
* Pass relation through elaboration machinery
2018-09-11 14:11:31 -07:00
Daniel Rosenwasser
aa9230f313
Merge pull request #27020 from Kingwl/improve_accidentally_calling_type-assertion_expressions
...
improve Diagnostics for accidentally calling type-assertion expressions
2018-09-11 14:00:31 -07:00
王文璐
6b2ea463b2
improve Diagnostics for accidentally calling type-assertion expressions
2018-09-11 14:35:01 +08:00
Wesley Wigham
e9c6d967f6
Add related span pointing at missing arguments ( #27013 )
2018-09-10 16:40:33 -07:00
Ron Buckton
a255d9a163
Merge branch 'master' into typesVersions
2018-09-07 13:52:12 -07:00
Wesley Wigham
f8b6a8fc8d
Introduce literal freshness for literal enum member types ( #26556 )
...
* Introduce literal freshness for literal enum members, allow enum references in ambient const initializers
* Merge statements
* Add enum literal readonly property test case
* Accept better baselines post-merge
2018-09-07 12:09:07 -07:00
Sheetal Nandi
ddba6d8a70
Merge pull request #26825 from Microsoft/resolveJsonModuleEmit
...
Support json module emit when module emit is commonjs, amd, es2015 or esnext
2018-09-06 09:57:47 -07:00
Ryan Cavanaugh
ed70d4887a
Merge pull request #25633 from Kingwl/strictParameter
...
add use strict and simple parameter check
2018-09-05 17:15:52 -07:00
Ryan Cavanaugh
6465e9dcdd
Merge pull request #26292 from Kingwl/tupleIndexAccessCheck
...
check index access for fixed length tuple
2018-09-05 12:10:46 -07:00
Ron Buckton
e726e4cfec
PR Feedback
2018-09-05 11:23:39 -07:00
Sheetal Nandi
e41dbcdccd
Support json module emit when module emit is commonjs, amd, es2015 or esnext
...
Fixes #25755 and #26020
2018-08-31 14:05:14 -07:00
王文璐
597bb0e764
Merge branch 'master' into strictParameter
2018-08-29 18:28:36 +08:00
Ron Buckton
5f6a2cbf69
Merge branch 'master' into typesVersions
2018-08-28 17:37:23 -07:00
Sheetal Nandi
530a530ac0
Merge pull request #26590 from Microsoft/buildRefactoring
...
Refactor ts build and report watch status when doing --build --watch
2018-08-28 11:43:35 -07:00
Ron Buckton
dc5cd9676b
Switch to paths-like pattern matching
2018-08-28 09:33:03 -07:00
王文璐
f1c5fa5b35
Merge branch 'master' into strictParameter
2018-08-28 17:37:58 +08:00
Ron Buckton
b9afdadf71
Remove jsTypings/semver.ts, add unit tests and logging
2018-08-22 12:38:16 -07:00
Sheetal Nandi
071d790dec
Unify tsbuild option parsing with command line options parsing
2018-08-21 13:41:30 -07:00
Ron Buckton
015babb6f7
Initial support for 'typesVersions'
2018-08-20 16:57:18 -07:00
Anders Hejlsberg
44ada08e02
Guard against infinite type instantiations and constraints
2018-08-20 12:41:31 -07:00
Sheetal Nandi
af71d55a49
Do not include json file unless --resolveJsonModule is specified
...
Fixes #26402
2018-08-14 16:23:13 -07:00
Elizabeth Dinella
421730a68d
Refactoring promises returning functions to use async and await ( #26373 )
2018-08-10 16:11:45 -07:00
王文璐
6432bd9def
check index access for fixed length tuple
2018-08-10 10:49:37 +08:00
Ryan Cavanaugh
3fde17e85c
Merge pull request #26234 from RyanCavanaugh/noVoidTest
...
Disallow expressions of type `void` to be used in truthiness checks
2018-08-07 08:37:42 -07:00
Anders Hejlsberg
cfa29ae2fa
Merge branch 'master' into fixCircularReturnType
...
# Conflicts:
# src/compiler/diagnosticMessages.json
2018-08-06 10:53:20 -07:00
Anders Hejlsberg
6a17f4d162
Merge branch 'master' into fixCircularReturnType
...
# Conflicts:
# tests/baselines/reference/recursiveResolveDeclaredMembers.types
# tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.types
2018-08-06 10:42:35 -07:00
Alexander T
37b9a6bca4
25840 - Add a more meaningful error message to the case when calling a public static method on an instance ( #25922 )
...
* add a more meaningful error message to the case when calling a public static method on an instance
* Fix tests
2018-08-06 10:24:48 -07:00
Ryan Cavanaugh
14d3c69c72
Disallow exprs of type void to be used in truthiness checks
2018-08-06 09:40:22 -07:00
Anders Hejlsberg
e4443bb993
Properly catch and error on circular function return types
2018-08-03 14:03:30 -07:00
Matt McCutchen
d054621477
"Could not find a declaration file for module" error needs to use the
...
unmangled package name where appropriate.
Add a test case for an untyped sub-module of a scoped package with
typings. The other diagnostic message is covered by existing tests; I
guess no one looked at the baselines closely enough.
Fixes #23999 .
2018-08-01 14:13:38 -04:00
王文璐
02f5365e08
improve error message and update testcase
2018-08-01 13:45:57 +08:00
王文璐
813f28a4f8
Merge branch 'master' into strictParameter
2018-08-01 10:11:13 +08:00
Andy
f326b4b7cb
Make import fix for default import mention that it's a default import ( #26105 )
2018-07-31 17:28:35 -07:00
Andy
d40d54984e
Support deleting all unused type parameters in a list, and deleting @template tag ( #25748 )
...
* Support deleting all unused type parameters in a list, and deleting @template tag
* Support type parameter in 'infer'
2018-07-27 11:55:31 -07:00
Daniel Rosenwasser
64d01d8e8f
Provide a better error on arrow functions that capture the global 'this'.
2018-07-26 11:51:04 -07:00
Sheetal Nandi
d920efe3f9
Merge branch 'master' into resolveJsonModuleError
2018-07-25 17:32:22 -07:00
Sheetal Nandi
dfb5cbd373
When json module is not found, include enabling --resolveJsonModule might help.
...
Fixes #25722
2018-07-25 16:20:37 -07:00
Matt McCutchen
da64479a64
Improve the error message when asserting to a type that is not
...
comparable to the original.
Also improve the error message for implicit conversion of a symbol to a
string in a template literal, which previously shared the error message
with type assertions.
Fixes #25539 . Addresses #25870 .
2018-07-25 19:13:10 -04:00
Matt McCutchen
f72193eedc
Report a semantic error for an arrow function with a "this" parameter.
...
Fixes #9744 .
2018-07-23 10:42:56 -04:00
Wenlu Wang
ed8b76424e
add grammar check for labeled declaration ( #25317 )
...
* add grammar check for labeled function declaration
* fix debug failed on labeled class declaration
* move labeled statement check to binder and add more pattern for check
* update diagnostic message
* update baseline
2018-07-18 15:37:27 -06:00
王文璐
cdfef4fa57
add use strict and simple parameter check
2018-07-16 17:40:57 +08:00
Andy
f500289a44
Stricter test that JSDoc @type tag matches function signature ( #25615 )
2018-07-12 14:02:02 -07:00