Commit Graph

14572 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
4ee4b6b912 Merge branch 'master' into object-spread 2016-10-11 16:06:05 -07:00
Zhengbo Li
2671668d86 Remove cached resolvedModule result if the target file was deleted (#11460)
* Add test first for debugging

* Remove cached resolvedModule if the file was deleted

* Move the fix to lsHost

* Properly clean lastDeletedFile

* Remove unused builder API

* move the delete file check into module name valid check
2016-10-11 13:41:04 -07:00
Andy
4fa2e5ed8c Merge pull request #11540 from Microsoft/jsdoc_type_alias
Support JSDoc for type alias
2016-10-11 13:31:10 -07:00
Andy Hanson
413a26b94d Support JSDoc for type alias 2016-10-11 11:14:15 -07:00
Zhengbo Li
3b0515fd8b Send config file diagnonstics event even when no errors were found (#11285)
* emit config diagnostics event when no errors found

* Add tests for project service events
2016-10-10 16:38:08 -07:00
Vladimir Matveev
997acaec7a update documentation in protocol.d.ts (#11501)
update documentation in protocol.d.ts
2016-10-10 16:04:14 -07:00
Yui
ea56522f80 Merge pull request #11496 from Microsoft/master_port11268_fixChakraLoadDll
[Master] Port fix in PR#11628
2016-10-10 12:50:55 -07:00
Kanchalai Tanglertsampan
5ce22801a7 Port fix from PR#11268 2016-10-10 11:11:06 -07:00
Ryan Cavanaugh
fe32282e3a Merge pull request #11347 from HerringtonDarkholme/remove-redundant
remove redundant type assertion
2016-10-10 10:58:39 -07:00
Nathan Shively-Sanders
0dd1f0c00f Add tests and update baselines.
1. Union/intersection tests.
2. Primitive tests.
3. Update baselines after removing errors.
2016-10-10 10:07:41 -07:00
Nathan Shively-Sanders
4eedfea81f Support unions/intersections in spread types
1. Lift unions and intersections above spread types when creating them
in getSpreadType.
2. Cleanup now-unneeded changes to existing union/intersection code.
3. Cleanup some incorrect errors I added earlier.
2016-10-10 10:05:31 -07:00
Nathan Shively-Sanders
0d3f567b0f Merge branch 'master' into object-spread 2016-10-10 08:58:30 -07:00
Andy
d34916abf8 Merge pull request #11448 from Microsoft/fix_array_condition
Fix array conditional
2016-10-07 10:03:06 -07:00
Andy
e0e8cf05fb Merge pull request #11449 from Microsoft/resolved_path
Inline calculation of resolvedPath
2016-10-07 10:02:54 -07:00
Nathan Shively-Sanders
df735795e5 Update baselines 2016-10-07 08:59:46 -07:00
Nathan Shively-Sanders
98720755bd Spread type:new assignability+simplification tests 2016-10-07 08:58:50 -07:00
Nathan Shively-Sanders
d770c56874 Switch spread types to a binary representation.
This allows much easier creation of spread types. Spread type creation
is now much smarter, and creates object types when possible. When
it's not, it produces a spread type that simplifies its input into a
standard structure for containing type parameters.

The spread type is no longer related to union or intersection types.
Spread types containing union and intersection types are not yet
correctly handled.
2016-10-07 08:55:02 -07:00
Andy Hanson
a4f610df82 Inline calculation of resolvedPath 2016-10-07 08:41:23 -07:00
Andy Hanson
13a8dc11b0 Fix array conditional 2016-10-07 08:35:13 -07:00
Andy
49a6391b4f Merge pull request #11447 from Microsoft/visit_module_block
Fix tslint build
2016-10-07 08:35:02 -07:00
Nathan Shively-Sanders
cec3a3703a Merge branch 'master' into object-spread 2016-10-07 08:34:06 -07:00
Andy Hanson
731ce345b3 Add any to allow us to cast a ModuleBlock to a Block 2016-10-07 08:24:54 -07:00
Ron Buckton
9c0d6b2175 Merge pull request #11431 from Microsoft/awaiterInES3
Fix syntax error in __awaiter when running in ES3
2016-10-06 17:55:06 -07:00
Arthur Ozga
94d895587a Merge pull request #11328 from Microsoft/FixTripleSlashCompletions
Fix triple slash completions
2016-10-06 16:39:35 -07:00
Yui
a67ad06933 Merge pull request #10239 from Microsoft/fix10193
Fix 10193: Compiler crash with decorator and two "export default"s
2016-10-06 14:59:43 -07:00
Anders Hejlsberg
44c475f6bb Merge pull request #11263 from Microsoft/controlFlowLetVar
Control flow analysis for implicit any variables
2016-10-06 14:23:38 -07:00
Ron Buckton
4a5f56fc78 Merge pull request #11342 from Microsoft/syntaxKindLiterals
Added literal kind properties for each node.
2016-10-06 14:00:33 -07:00
Ron Buckton
519095f585 Merge branch 'master' into syntaxKindLiterals 2016-10-06 13:41:16 -07:00
Sheetal Nandi
3212e25a3a Merge pull request #11427 from Microsoft/implictAnySelfRef
Do not get return type from contextual signature if we are already in process of getting return type of it
2016-10-06 13:18:41 -07:00
Ron Buckton
5b47853f16 Fix syntax error in __awaiter when running in ES3 2016-10-06 13:16:42 -07:00
Sheetal Nandi
5d9d842a18 Do not get return type from contextual signature if we are already in process of getting return type of it
Fixes #10073
2016-10-06 11:33:00 -07:00
Andy
02493de5cc Merge pull request #11147 from Microsoft/classic_at_types
Have classic module resolution use @types as a fallback
2016-10-06 10:48:01 -07:00
Sheetal Nandi
dc374731d9 Adding test for #10073 2016-10-06 10:22:35 -07:00
Vladimir Matveev
32eddcf0b8 Merge pull request #11411 from Microsoft/vladima/missing-lib-check
check lib command line option when deciding if program structure can be reused
2016-10-06 09:36:38 -07:00
Andy Hanson
4907fd1d44 Have classic module resolution use @types as a fallback 2016-10-06 06:01:18 -07:00
Vladimir Matveev
bf98d23740 check lib command line option when deciding if program structure can be reused 2016-10-06 05:04:45 -07:00
Mohamed Hegazy
d72a0430ca Fix #11314: Expose insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces and insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces on protocol definiton (#11405) (#11410)
* Fix #11314: Expose `insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces` and `insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces` on protocol definiton

* Make options optional
2016-10-05 22:19:26 -07:00
Sheetal Nandi
7555f6028e Merge pull request #11391 from Microsoft/metaDataWithStringLiteral
Emit of union type metadata for decorator to use constituent serialized type if its identifier and same across all constituent types
2016-10-05 19:21:17 -07:00
Sheetal Nandi
506afe51f5 Merge branch 'master' into metaDataWithStringLiteral 2016-10-05 17:40:42 -07:00
Sheetal Nandi
8e4efb6cd9 Added test case for enums 2016-10-05 17:40:01 -07:00
Sheetal Nandi
3008520faf Merge pull request #11395 from Microsoft/completionEntry
Add missing check in javascript file for valid identifier when creating completion entry from symbol
2016-10-05 17:04:10 -07:00
Sheetal Nandi
9852c85be5 Merge pull request #11373 from Microsoft/gotoDefRequire
Handle the require call in javascript file for getSymbolAtLocation
2016-10-05 17:03:43 -07:00
Sheetal Nandi
2f5e7142cb Merge pull request #11401 from Microsoft/completionInObjectLiteralAssignment
Fix incorrect returning of completion entries when in string literal of property assignment expression
2016-10-05 17:02:58 -07:00
Ryan Cavanaugh
eab3711ed4 Merge pull request #11394 from RyanCavanaugh/noGlobalInJsxAttr
Don't show globals (e.g. snippets) in JSX positions
2016-10-05 16:21:30 -07:00
Vladimir Matveev
7a67a3e724 Merge pull request #11404 from Microsoft/vladima/suppress-semantic-classifier-js
do not run semantic classification on non-ts-or-tsx files
2016-10-05 16:13:17 -07:00
Arthur Ozga
af833aa761 provide completions only in the correct bounds 2016-10-05 15:22:08 -07:00
Arthur Ozga
4a497fb994 update tests to reflect no completion filtering 2016-10-05 14:58:19 -07:00
Vladimir Matveev
59c0143934 do not run semantic classification on non-ts-or-tsx files 2016-10-05 14:49:16 -07:00
Arthur Ozga
77a2d0e11a Merge branch 'master' into FixTripleSlashCompletions 2016-10-05 14:34:31 -07:00
Arthur Ozga
24938a7b1c Remove filtering functionality 2016-10-05 14:34:06 -07:00