Commit Graph
5910 Commits
Author SHA1 Message Date
Anders Hejlsberg f29d7df5d1 Add tests 2017-05-24 15:50:30 -07:00
Anders Hejlsberg 0b37adc3a7 Fix fourslash test 2017-05-22 16:48:45 -07:00
Andy bba8e74496 Fix path in importDeclTypes.ts test (#15992) 2017-05-22 10:25:40 -07:00
Andy 24d98f2295 Merge pull request #15856 from Microsoft/jsdoc
Support for JSDoc in services
2017-05-22 07:46:52 -07:00
Ryan Cavanaugh f489f5af4d Merge pull request #15569 from RyanCavanaugh/new_refactor
Refactoring support
2017-05-19 11:23:46 -07:00
Ryan Cavanaugh f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Andy 616edae4af Merge pull request #15954 from Microsoft/typeArgs
Unconditionally compute type arguments of class base type
2017-05-19 10:36:39 -07:00
Noel Varanda 4cd20b1335 Fix #15540: Throw error when importing @types (#15866)
* Fix #15540: Throw error when importing @types

Fix issue: #15540

- Modify checker; external imports to account for imported modules
containing '@types/'.
- Add diagnostic message.
- Add test case

* FIX-15540: Review changes

- Replace `substr` with `startsWith`
- move diagnostics message to more relevant place
- Add `removePrefix` helper function
2017-05-19 09:38:04 -07:00
Andy Hanson ce1e0097f0 Unconditionally compute type arguments of class base type 2017-05-19 08:56:56 -07:00
Andy Hanson d646c727e7 Merge branch 'master' into jsdoc 2017-05-19 08:18:18 -07:00
Andy Hanson ba884bc27b Merge branch 'master' into jsdoc 2017-05-19 08:14:52 -07:00
Andy 38ece3b703 Merge pull request #15737 from Microsoft/findAllRefs_module
Support find-all-references for a module specifier
2017-05-19 08:11:56 -07:00
Nathan Shively-Sanders db3696c789 Test:retain undefined in spreads w/strictNullChecks
Add test case and update baselines with new errors
2017-05-18 13:59:07 -07:00
Andy 5e20c1ce11 Merge pull request #15910 from Microsoft/primitives
getAllPossiblePropertiesOfTypes: Skip primitives
2017-05-17 13:10:56 -07:00
Anders Hejlsberg afee4fbd84 Merge pull request #15486 from Microsoft/literalEnumTypes
String valued members in enums
2017-05-17 13:06:20 -07:00
Andy Hanson c4c9bf70c4 Add | undefined to test 2017-05-17 12:51:37 -07:00
Anders Hejlsberg 947abf5d6b Merge branch 'master' into literalEnumTypes
# Conflicts:
#	src/compiler/checker.ts
#	src/compiler/diagnosticMessages.json
#	src/compiler/types.ts
#	src/compiler/utilities.ts
#	src/services/completions.ts
2017-05-17 11:59:12 -07:00
Nathan Shively-Sanders 86661b5272 Merge pull request #13900 from Microsoft/object-literal-freshness-with-spread
Object literal freshness errors with spreads
2017-05-17 11:44:25 -07:00
Nathan Shively-Sanders fc306ba641 Merge pull request #15849 from Microsoft/allow-spread-after-required-params
Allow spreading arrays after required parameters
2017-05-17 09:14:20 -07:00
Andy Hanson b9c3a992e1 getAllPossiblePropertiesOfTypes: Skip primitives 2017-05-17 08:26:51 -07:00
Andy Hanson 0c60824860 Set @typedef parent pointer, but still do not bind a symbol 2017-05-17 08:02:07 -07:00
Andy Hanson 76955ce792 Expand tests that jsdoc does not affect typescript code 2017-05-17 07:27:08 -07:00
Andy Hanson dc40f5d6b9 Merge branch 'master' into jsdoc 2017-05-17 07:17:32 -07:00
Arthur Ozga 11019e4a4a Merge branch 'master' into typeToStringViaTypeNode 2017-05-16 15:35:31 -07:00
Arthur Ozga bba41a8a0c avoid ascii escaping literal text 2017-05-15 18:42:49 -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
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
Nathan Shively-Sanders 9ba0668afa Test:spread array after required params 2017-05-15 10:20:28 -07:00
Andy Hanson 5eb2bd08ac findAllReferences: In export default foo, symbol name is foo 2017-05-15 08:34:05 -07:00
Sheetal Nandi 303d7b209e Merge branch 'master' into completionListForClassElementDeclarations 2017-05-12 15:31:52 -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
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
Yui T 8d09085800 Add more tests and update baselines 2017-05-11 22:40:34 -07:00
Kanchalai Tanglertsampan bce7ddb5c5 Add tests and update lib tests file 2017-05-11 16:30:56 -07:00
Ron Buckton 3521b9c546 if a JSSpecialPropertyDeclaration has a JSDoc type, use it 2017-05-11 16:23:05 -07:00
Andy Hanson d6fa91edcd goToDefinition: Skip default and = imports 2017-05-11 15:49:30 -07:00
Andy Hanson 5a4be34aaf Merge branch 'master' into union-completion 2017-05-11 15:24:13 -07:00
Sheetal Nandi 588c4eca42 Filter out existing members of the class from the completion list 2017-05-11 14:19:35 -07:00
Arthur Ozga d5f34da9dd Accept baselines and update test 2017-05-11 14:07:33 -07:00
Andy 83beae7b8d Merge pull request #15751 from Microsoft/tsx-gotodef
Fix bug for goto-definition on a TSX constructor using an alias declaration
2017-05-11 13:12:22 -07:00
Sheetal Nandi a8ad40f131 Add async to the list of class element completion keyword and refactoring according to feedback 2017-05-11 11:42:36 -07:00