Commit graph

17869 commits

Author SHA1 Message Date
Nathan Shively-Sanders 381f056c68 Split error messages so they are localisable 2017-05-16 08:05:07 -07:00
Andy Hanson 2d3c7bae24 break -> continue 2017-05-16 07:10:38 -07:00
Arthur Ozga b2176c1872 no ascii escaping in param names 2017-05-15 19:11:36 -07:00
Arthur Ozga a9ab30c068 revert baselines 2017-05-15 18:43:06 -07:00
Arthur Ozga bba41a8a0c avoid ascii escaping literal text 2017-05-15 18:42:49 -07:00
Nathan Shively-Sanders c9308fc610 Update baselines 2017-05-15 16:22:35 -07:00
Nathan Shively-Sanders 35a9be3b6c Improve arity errors for all calls
Not just ones with a single call signature.
This is pretty great!
2017-05-15 16:22:04 -07:00
Mohamed Hegazy d51e467238 Fix #15463: use intersection types to emulate spread in generic react components (#15851)
* Fix #15463: use intersection types to emulate spread in generic react components

* Fix lint errors

* reverse condition
2017-05-15 15:46:50 -07:00
Ron Buckton f93c71c34e Merge pull request #15862 from Microsoft/fix15829
Fix issue with throw in async delegator.
2017-05-15 15:37:48 -07:00
Anders Hejlsberg e9ccb16642 Eliminate redundant exploration in type inference 2017-05-15 15:32:14 -07:00
Ron Buckton 05d2f2d5d9 Fix issue with throw in async delegator. 2017-05-15 15:28:55 -07:00
Nathan Shively-Sanders e5e833e53e Update baselines 2017-05-15 15:26:22 -07:00
Nathan Shively-Sanders 93b1eafb9f Improve arity error messages
For calls with one signature.
2017-05-15 15:25:21 -07:00
Andy Hanson 4d028a81ee getTokenAtPositionWorker: Remove duplicate loop 2017-05-15 15:18:31 -07:00
Andy Hanson 0140e6df77 Remove goToImplementation test, not supported for parameters 2017-05-15 15:02:47 -07:00
Andy Hanson 38784b761a Support for JSDoc in services 2017-05-15 14:45:30 -07:00
Arthur Ozga d8f29a5fe8 update tests 2017-05-15 12:42:28 -07:00
Nathan Shively-Sanders cefcc668a8 Correct test argument in callwithSpread2 2017-05-15 10:55:58 -07:00
Nathan Shively-Sanders 4c80aa17b3 Clean up comments in tests 2017-05-15 10:38:51 -07:00
Andy 687ab54d17 Merge pull request #15846 from Microsoft/findAllRefs_symbolNoName
findAllReferences: In `export default foo`, symbol name is `foo`
2017-05-15 10:38:21 -07:00
Nathan Shively-Sanders b61eaf70a1 Inline function that is called once 2017-05-15 10:31:47 -07:00
Nathan Shively-Sanders 9ba0668afa Test:spread array after required params 2017-05-15 10:20:28 -07:00
Arthur Ozga 20a4e32bec parenthesization in factory 2017-05-15 10:19:00 -07:00
Nathan Shively-Sanders 26416c32f3 Allow spreading arrays after required parameters
This allows:

1. Spreading arrays into all-optional parameters whose types match.
2. Spreading arrays into parameter lists that are too short and whose
body presumably uses `arguments`.
2017-05-15 10:17:36 -07:00
Andy 278fb803b1 Merge pull request #15781 from Microsoft/inline
Inline resolvedModuleFromResolved
2017-05-15 09:51:01 -07:00
Nathan Shively-Sanders fceb897f75 Merge pull request #15843 from DickvdBrink/issue-15828
Allow const enum to be used before declaration
2017-05-15 09:06:08 -07:00
Andy Hanson 5eb2bd08ac findAllReferences: In export default foo, symbol name is foo 2017-05-15 08:34:05 -07:00
Dick van den Brink 0cd2245c9a Accept baselines for const enum changes 2017-05-15 14:57:24 +02:00
Dick van den Brink 8af5910555 Only report used before declaration errors on regular enums
const enums don't generate code and the values are inlined so now error is necessary
2017-05-15 14:55:17 +02:00
Arthur Ozga 6fd86b47f9 temp 2017-05-12 17:51:14 -07:00
Arthur Ozga 9e9054bd2b handle todo 2017-05-12 17:42:10 -07:00
Ron Buckton 50e2912cd2 Merge pull request #15791 from Microsoft/fix13935
Adds CommaList to avoid large deeply nested comma expressions
2017-05-12 16:49:13 -07:00
Mohamed Hegazy 3e13fadd95 Merge pull request #15808 from alexeagle/master
Extract diagnostics formatter used by --pretty
2017-05-12 16:45:14 -07:00
Arthur Ozga a32bc985bf respond to comments 2017-05-12 16:27:35 -07:00
Alex Eagle 4240f6f5d9 Extract diagnostics formatter used by --pretty
This allows compilers other than tsc.js to display nice in-context diagnostics
2017-05-12 16:19:46 -07:00
Sheetal Nandi 2300a99606 Merge pull request #15614 from Microsoft/completionListForClassElementDeclarations
When writing class elements show completion with allowed keywords and inheritted properties
2017-05-12 16:10:47 -07:00
Sheetal Nandi 303d7b209e Merge branch 'master' into completionListForClassElementDeclarations 2017-05-12 15:31:52 -07:00
Mohamed Hegazy 0455aaf427 Merge pull request #15805 from Microsoft/Fix14661
Add insertSpaceAfterTypeAssertion to the server protocol
2017-05-12 15:10:46 -07:00
Mohamed Hegazy ca748d6c02 Add insertSpaceAfterTypeAssertion to the server protocol 2017-05-12 14:48:13 -07:00
Arthur Ozga 0588f8b380 cleanup 2017-05-12 13:56:54 -07:00
Arthur Ozga 62dbf12825 Merge branch 'master' into typeToStringViaTypeNode 2017-05-12 13:09:43 -07:00
Mohamed Hegazy d68b436e7d Merge pull request #15789 from Microsoft/master-fix15742
[Master] fix15742
2017-05-12 12:22:43 -07:00
Sheetal Nandi 99ea9c730f Add the members of interfaces that need to be implemented to class element completion 2017-05-12 12:13:16 -07:00
Yui T 8907c70a86 Address PR 2017-05-12 11:54:23 -07:00
Mohamed Hegazy 1becbf4d2c Merge pull request #15754 from charlespierce/string_literal_completion
Prevent Duplicate String Literal Completions
2017-05-12 11:07:00 -07:00
Andy bed1e02f87 Merge pull request #15783 from Microsoft/goToDef-default
goToDefinition: Skip default and `=` imports
2017-05-12 11:00:41 -07:00
Andy Hanson aaf6b83cb5 Don't goto aliased symbol with no declarations; and update tests 2017-05-12 10:26:39 -07:00
Andy e6d472c291 Merge pull request #15541 from Microsoft/union-completion
For completions of union type, get all possible properties
2017-05-12 10:23:34 -07:00
Ron Buckton 22cf036ed9 Clean up naming, add documentation, flatten (some) nested commas 2017-05-12 09:57:39 -07:00
Nathan Shively-Sanders 1328cb81e6 Merge pull request #15777 from Microsoft/move-levenshtein-out-of-public-API
Move Levenshtein distance out of public API
2017-05-12 07:57:03 -07:00