Commit graph

11315 commits

Author SHA1 Message Date
Arthur Ozga 469745b181 Synthetic signature uses existing parameter names 2016-12-11 21:50:46 -08:00
Anders Hejlsberg 52291762d7 Additional tweak to mapped type property modifier propagation 2016-12-11 17:43:46 -08:00
Anders Hejlsberg 7c5c664a1c Merge pull request #12826 from Microsoft/mappedTypeModifiers2
Improve propagation of modifiers in mapped types
2016-12-10 15:16:05 -08:00
Anders Hejlsberg 57cb4aceb7 Merge pull request #12770 from Microsoft/deferIndexedAccess
Defer indexed access T[K] with non-generic K
2016-12-10 15:15:39 -08:00
Anders Hejlsberg 33b512548e Pick<T, K> and similar mapped types propagate modifiers from T 2016-12-10 10:04:30 -08:00
Jason Ramsay c40508cf1c getSupportedExtensions optimization to reduce allocations 2016-12-09 16:25:09 -08:00
Jason Ramsay 5829ca82d0 use localUse local updatedFileNames - this way we'll know that set of names is definitely cleared 2016-12-09 14:44:08 -08:00
Jason Ramsay 30bd84174a Merge branch 'master' into tsconfigMixedContentSupport 2016-12-09 14:24:32 -08:00
Vladimir Matveev 798d080df1 mark containing project as dirty when file is closed (#12789)
* mark containing project as dirty when file is closed

* remove debugger statement
2016-12-09 14:21:56 -08:00
Jason Ramsay 05160cae8e Rename fileExtensionMap: fileExtensionMapItem[] to extraFileExtensions: FileExtensionInfo[] 2016-12-09 13:36:43 -08:00
Arthur Ozga d724517110 Merge branch 'master' into interfaceFixes 2016-12-09 13:28:05 -08:00
Arthur Ozga b9ae36cfbe Simplify index signature generation 2016-12-09 13:25:58 -08:00
Jason Ramsay 5f46e488b7 Mark containing project as dirty when file is closed
(Note: adding this until PR #12789 is merged in so that unit tests pass)
2016-12-09 11:12:00 -08:00
Jason Ramsay 4cb5a36cb4 Merge branch 'master' into tsconfigMixedContentSupport 2016-12-09 10:58:33 -08:00
Nathan Shively-Sanders a52805f641 Use checkExpression in checkSpreadExpression
Not checkExpressionCached. checkExpressionCached ignores ongoing control
flow analysis, which causes the following loop to make the compiler
recur infinitely:

```ts
let a = []
for (const x of []) {
    a = [...a]
}
```
2016-12-09 10:50:14 -08:00
Arthur Ozga 1338b94b2c Simplify rest parameter handling 2016-12-09 10:48:17 -08:00
Sheetal Nandi a2fb5f9ce8 Merge pull request #12778 from Microsoft/unusedLocalsAndObjectSpread
Do not report unused local error on locals that are intended for removing properties with object spread
2016-12-09 09:28:54 -08:00
Arthur Ozga 5e48e339dd cleanup 2016-12-08 18:34:49 -08:00
Arthur Ozga 819a654bb3 Add tests and fix rest parameters 2016-12-08 18:34:35 -08:00
Ron Buckton c0a73b2ed8 Revert changes to core.ts 2016-12-08 18:27:49 -08:00
Jason Ramsay d52894302a Changes due to CR comments 2016-12-08 17:56:08 -08:00
Ron Buckton 6a1ccd8de4 Adds support for new.target 2016-12-08 17:31:18 -08:00
Arthur Ozga 97b3d7a9ef make index signature fix work with generics 2016-12-08 17:19:19 -08:00
Ron Buckton 00abd7e28b Fix paramtypes metadata emit 2016-12-08 17:04:37 -08:00
Arthur Ozga 2f51b363bf add missing index signature support 2016-12-08 16:34:15 -08:00
Vladimir Matveev 7da3383504 do not use ScriptVersionCache for closed files (#12777) 2016-12-08 16:17:42 -08:00
Arthur Ozga c1a41b9f3c Expose indexSignaturePrinting 2016-12-08 15:40:35 -08:00
Ron Buckton 25c7caaef9 Simplify es2015 visitor, replace function tracking with flags 2016-12-08 15:30:12 -08:00
Sheetal Nandi 81452c544a Do not report unused local error on locals that are intended for removing properties with object spread
Fixes #12766
2016-12-08 15:12:35 -08:00
anubmat 9dd769dc3c Merge pull request #12741 from Microsoft/allowBracketCompletionInComments
Allow brace completion in comments
2016-12-08 14:37:11 -08:00
Ron Buckton 09761b5f07 Fix error on extends in declaration file with importHelpers 2016-12-08 13:43:32 -08:00
Anubha Mathur 7073b3513b removing unneccessary comments 2016-12-08 10:07:11 -08:00
Anubha Mathur ca87eedc07 Merge remote-tracking branch 'origin/master' into correctCommentsScaffolding 2016-12-08 10:05:54 -08:00
Anders Hejlsberg 29f6e7ff12 Merge branch 'master' into deferIndexedAccess
# Conflicts:
#	src/compiler/checker.ts
#	tests/baselines/reference/keyofAndIndexedAccess.js
#	tests/baselines/reference/keyofAndIndexedAccess.symbols
#	tests/baselines/reference/keyofAndIndexedAccess.types
#	tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts
2016-12-08 09:53:56 -08:00
Nathan Shively-Sanders f79fca7087 Merge pull request #12675 from Microsoft/subsubclass-can-access-protected-constructor
Subsubclass can access protected constructor
2016-12-08 08:58:58 -08:00
Anders Hejlsberg ca2768caf6 Property report circularity errors in indexed access types 2016-12-08 06:40:02 -08:00
vvakame c09a8c91a2 address review comment 2016-12-08 23:33:06 +09:00
Andy 2166364f83 Merge pull request #12721 from Microsoft/stringify_shim
Remove JSON.stringify shim
2016-12-08 06:32:22 -08:00
vvakame 5e57507e66 Merge branch 'master' into modify-extends 2016-12-08 22:55:20 +09:00
Ron Buckton 91f0194e6a Merge pull request #12743 from Microsoft/fix12737
Fix await for inherited promise
2016-12-07 17:38:47 -08:00
Mohamed Hegazy da4d41ff21 Merge pull request #12740 from Microsoft/fix12727
Fix decorator emit for accessors
2016-12-07 17:18:58 -08:00
Ron Buckton 8dcbea9675 Fix await for inherited promise 2016-12-07 17:17:17 -08:00
Arthur Ozga 5cd0ea3741 handle well-known computed property/method names 2016-12-07 17:00:20 -08:00
Anubha Mathur cb0beb8343 Merge remote-tracking branch 'origin/master' into allowBracketCompletionInComments 2016-12-07 16:02:18 -08:00
Anubha Mathur 31dde97bbd Allowing brace completion inside comments in JS and TS files 2016-12-07 15:58:05 -08:00
Ron Buckton 7eca4bc9be Fix decorator emit for accessors 2016-12-07 15:48:23 -08:00
Jason Ramsay 7a11453e35 Fix merge issues 2016-12-07 15:45:41 -08:00
Jason Ramsay 1c3689edef Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-12-07 15:33:42 -08:00
Jason Ramsay 64dad30ca0 Reduced version from CR comments 2016-12-07 15:31:46 -08:00
Andy Hanson 9f20077914 Use "completionList" methods instead of "memberList" ones, since they're identical 2016-12-07 13:36:11 -08:00
Andy Hanson 85545d9fe8 Remove JSON.stringify shim 2016-12-07 11:34:19 -08:00
Anubha Mathur 081c692197 replacing let with const 2016-12-07 11:14:24 -08:00
Anubha Mathur 27f72eb5cf Merge remote-tracking branch 'origin/master' into correctCommentsScaffolding 2016-12-07 09:21:11 -08:00
Andy Hanson efa8c4171b Reuse code from convertJsonOptionOfCustomType 2016-12-07 08:19:47 -08:00
Arthur Ozga c511aea581 Add Support for multiple signatures 2016-12-06 19:46:08 -08:00
Anubha Mathur 942c3c6d77 Merge remote-tracking branch 'origin/master' into correctCommentsScaffolding 2016-12-06 17:45:49 -08:00
Vladimir Matveev c1ec7eff08 remove projects that were no present in the input list in openExternalProjects (#12699)
remove projects that were no present in the input list in openExternalProjects
2016-12-06 16:44:46 -08:00
Anders Hejlsberg 671f7a8dae Defer indexed access T[K] where T is generic and K is non-generic 2016-12-06 14:41:38 -08:00
Mohamed Hegazy 3d2a553994 Add empty types list to tsconfig.json 2016-12-06 13:39:24 -08:00
Nathan Shively-Sanders 72a1e85cd7 Check binding initialisers in parameters as well 2016-12-06 13:04:45 -08:00
Sheetal Nandi 2a65f5ba09 Merge pull request #12691 from Microsoft/displayPartKind
Write property name of destructuring pattern explicitly when writing symbol display for binding element
2016-12-06 12:48:57 -08:00
Nathan Shively-Sanders 92f2721b46 Binding initialisers can refer to previous elements 2016-12-06 11:48:14 -08:00
Sheetal Nandi 7d049c2742 Write property name of destructuring pattern explicitly
There wont be any symbol for the property name but we already know it is a property name
Fixes #12166
2016-12-06 11:42:44 -08:00
Ron Buckton 847b42d7ba Merge pull request #12690 from Microsoft/fix12669
Add error for super property before super
2016-12-06 11:27:09 -08:00
Ron Buckton 9336886fc2 Added more specific diagnostic message 2016-12-06 10:57:52 -08:00
Ron Buckton f89156bf55 Add error for super property before super 2016-12-06 10:47:02 -08:00
Nathan Shively-Sanders 8f2d531907 Merge pull request #12680 from aluanhaddad/12678
Add ReadonlyArray<T>.includes to es2016.array.include.d.ts
2016-12-06 07:50:34 -08:00
Aluan Haddad ee0894339d Add ReadonlyArray<T>.includes to es2016.array.include.d.ts 2016-12-05 18:25:45 -05:00
Arthur Ozga f0c771303d implement getters/setters as property 2016-12-05 14:52:08 -08:00
Arthur Ozga 0c1772b7e0 Merge branch 'interfaceFixes' of https://github.com/Microsoft/TypeScript into interfaceFixes 2016-12-05 14:06:02 -08:00
Arthur Ozga 8134d64a16 Merge branch 'master' into interfaceFixes 2016-12-05 13:49:23 -08:00
Vladimir Matveev 225d6d6aef use XDG base directory compatible cache location (#12676)
* use XDG base directory compatible cache location

* use ~/Library/Caches on darwin
2016-12-05 13:40:56 -08:00
Ron Buckton 8434fdef2d Improve SourceMap emit for down-level async functions 2016-12-05 12:30:14 -08:00
Nathan Shively-Sanders b321d50170 Sub-subclasses can access protected constructor 2016-12-05 12:29:03 -08:00
Benjamin Bock fee777dd9c fixes #9123
like 1f43720026/src/compiler/commandLineParser.ts but without removing the open-curly of the function
2016-12-05 11:35:38 +01:00
Anders Hejlsberg c52eb6cef3 Indexed access any[K] has type any 2016-12-04 07:43:10 -08:00
Anders Hejlsberg b7e8a6d1f1 Merge pull request #12643 from Microsoft/keyofUnionIntersection
Properly handle unions and intersections with keyof T and T[K]
2016-12-04 07:03:15 -08:00
Anders Hejlsberg 23992ba106 Merge pull request #12640 from Microsoft/mappedTypesSecondaryInferences
Classify mapped type inferences as secondary
2016-12-04 07:02:51 -08:00
Anders Hejlsberg b876211111 Property handle union/intersection types in type variable checks 2016-12-03 17:18:43 -08:00
Yuichi Nukiyama dc8a0309e9 Merge remote-tracking branch 'tsupstream/master' 2016-12-04 10:05:11 +09:00
Anders Hejlsberg c538f1fdf7 Classify mapped type inferences as secondary 2016-12-03 11:03:18 -08:00
Mattias Buelens 931006338a Fix elided syntax kinds falling through to visitConstructor in TypeScript transformer. 2016-12-03 17:52:04 +01:00
vvakame 570575ad43 address #12622 2016-12-03 11:30:36 +09:00
vvakame 7ea3734240 address feedback 2016-12-03 11:17:58 +09:00
vvakame 9e6a83db20 change class inheritance code 2016-12-03 11:17:58 +09:00
Anders Hejlsberg a230cb7e77 Merge pull request #12623 from Microsoft/nestedIndexedAccess
Treat indexed access types 'T[K]' as type variables
2016-12-02 15:53:49 -08:00
Anders Hejlsberg 3b1d6c969d Treat indexed access types T[K] as type variables 2016-12-02 14:29:03 -08:00
arusakov edb376db01 Update cli --target description (es2016 and 2017) 2016-12-02 18:54:11 +03:00
Sheetal Nandi e5b5fe1bd7 When creating string literal for property access, unescape the identifier text
Fixes #12562
2016-12-01 13:04:21 -08:00
Mohamed Hegazy 2cec8dbe84 Merge pull request #12575 from zhengbli/port12570
Reset the noEmitForJsFiles option when updating compiler options (#12…
2016-12-01 11:09:51 -08:00
Nathan Shively-Sanders fc1f6e3ee6 Merge pull request #12564 from Microsoft/rest-of-untyped-binding-pattern-is-any
Rest of untyped binding pattern is { [s: string]: any }
2016-11-30 17:39:18 -08:00
Nathan Shively-Sanders ddf03bae3c Rest of untyped binding pattern is back to str index sig 2016-11-30 17:25:44 -08:00
Sheetal Nandi adf9b26f50 Handle parameter type error for index signature in declaration emit
Fixes #12572
2016-11-30 16:28:26 -08:00
Nathan Shively-Sanders f6ace2d83d Rest of untyped binding pattern is back to any 2016-11-30 13:14:08 -08:00
Ron Buckton 5c294bf505 Merge branch 'master' into improveImportHelpersDiagnostics 2016-11-30 12:29:36 -08:00
Nathan Shively-Sanders 99f352f295 Rest of untyped binding pattern is string-indexed type
This is more correct than any and the code is more elegant as well.
2016-11-30 10:44:00 -08:00
Anders Hejlsberg e14412af0e Improve handling of modifiers in mapped type inference 2016-11-30 10:23:33 -08:00
zhengbli f6f866e88c Reset the noEmitForJsFiles option when updating compiler options (#12570) 2016-11-29 23:30:14 -08:00
Mohamed Hegazy 4c9bdb932a Merge pull request #12552 from Microsoft/spreadRestIntersectionAndUnions
Spread & rest over intersection and unions
2016-11-29 17:27:04 -08:00
Mohamed Hegazy 505c153fed Simplify isValidSpreadType 2016-11-29 16:57:37 -08:00
Mohamed Hegazy 2152683325 Simplify logic 2016-11-29 16:55:50 -08:00
Mohamed Hegazy 2178d5526f extract filterNullableTypes 2016-11-29 16:30:27 -08:00
Anders Hejlsberg aaf0c89ed3 Merge pull request #12563 from Microsoft/mappedTypeModifiers
Preserve modifiers in homomorphic mapped types
2016-11-29 16:06:20 -08:00
Arthur Ozga 3cd1731628 abstract accessors can't have implementations 2016-11-29 15:59:28 -06:00
Nathan Shively-Sanders fe55edc38e Rest in an untyped binding pattern should be any 2016-11-29 13:46:00 -08:00
Mohamed Hegazy 17b6645a70 add missing semicolons 2016-11-29 13:37:02 -08:00
Anders Hejlsberg f55b3ef87a Preserve modifiers in isomorphic mapped types 2016-11-29 12:48:41 -08:00
Arthur Ozga ba80ce63ad stubbing extra completions 2016-11-29 14:33:20 -06:00
Mohamed Hegazy 86b48e3f89 Handel null and undefined in __rest 2016-11-29 12:26:57 -08:00
Mohamed Hegazy 216f286133 Handel null and undefined in object spread and rest 2016-11-29 12:25:10 -08:00
Arthur Ozga bf48564cc8 FIx typo in method stub. 2016-11-29 13:36:09 -06:00
Mohamed Hegazy 5c4f145d6a Change name of the function 2016-11-29 10:36:55 -08:00
Vladimir Matveev 1418fd170d send begin/end notifications when installing types packages (#12551) 2016-11-29 10:14:22 -08:00
Mohamed Hegazy 5c10764d9b Fix function name 2016-11-29 00:13:04 -08:00
Mohamed Hegazy f2e30f6693 Allow union and intersection as targets for object spread and rest, and distribute spread&rest over unions 2016-11-29 00:04:20 -08:00
Iwata Hidetaka aaf87735cc tsserver: get candidates from <K extends keyof Foo> (fix #12536) 2016-11-29 10:34:14 +09:00
Iwata Hidetaka 5f073a6316 expose getApparentType on TypeChecker interface 2016-11-29 10:34:09 +09:00
Mohamed Hegazy 82e84e272e Make sure all overloads have comments 2016-11-28 17:30:37 -08:00
Mohamed Hegazy 143fc9164f Revert https://github.com/Microsoft/TypeScript/pull/12207 2016-11-28 17:30:26 -08:00
Anders Hejlsberg c89b1eb9e9 Merge pull request #12386 from mariusschulz/union-and-intersection-types-with-leading-operator
Union and intersection types with leading operator
2016-11-28 15:57:24 -08:00
Arthur Ozga 5d6a714a04 move helpers under codefix dir 2016-11-28 17:40:59 -06:00
Arthur Ozga f37640a43e Add args to diagnostic message 2016-11-28 16:47:26 -06:00
Anders Hejlsberg 5dd4c9ef54 Merge pull request #12528 from Microsoft/mappedTypeInference
Type inference for isomorphic mapped types
2016-11-28 13:30:45 -08:00
Arthur Ozga 16b146f882 Use array instead of map 2016-11-28 15:26:55 -06:00
Arthur Ozga 680af0f782 use getStart() 2016-11-28 14:42:55 -06:00
Arthur Ozga 4af0e2ab5b Merge branch 'master' into interfaceFixes 2016-11-28 14:13:10 -06:00
Anders Hejlsberg 9065b50172 getRegularTypeOfLiteralType before exhaustive switch check 2016-11-28 10:53:25 -08:00
Anders Hejlsberg 3e1b443d77 Deduplicate intersection types before distributing over union types 2016-11-28 09:34:50 -08:00
Anders Hejlsberg 9970606f35 Remove unused code in resolveMappedTypeMembers 2016-11-27 19:58:05 -08:00
Anders Hejlsberg 8ee5f7d64f Remove unused case in type inference 2016-11-27 19:49:57 -08:00
Anders Hejlsberg ecd10be177 Reorder type inference cases 2016-11-27 12:48:59 -08:00
Anders Hejlsberg 0a1a3eced4 Merge branch 'master' into mappedTypeInference
# Conflicts:
#	src/compiler/checker.ts
2016-11-26 18:39:27 -08:00
Anders Hejlsberg 88b7d53978 Merge pull request #12515 from Microsoft/fixMappedTypeInference
Include mapped types in type inference infinite recursion check
2016-11-26 18:14:18 -08:00
Anders Hejlsberg 283c50c183 Merge pull request #12514 from Microsoft/keyofAndForIn
Fix issues related to 'keyof' with 'for-in' and 'in' operator
2016-11-26 18:14:00 -08:00
Mohamed Hegazy 5ab2fec6e5 Merge pull request #12482 from wittydeveloper/fix-generateClassElementDecorationExpression-documentation
doc(compiler/ts): fix documentation typo in generateClassElementDecorationExpression()
2016-11-26 14:45:12 -08:00
Anders Hejlsberg f2c32d251f Include mapped types in type inference infinite recursion check 2016-11-26 12:17:19 -08:00
Anders Hejlsberg 46ca0ba41e Fix multiple 'keyof' issues with 'for-in' and 'in' operator 2016-11-26 09:58:44 -08:00
Yuichi Nukiyama 13f52c9148 fix linting error 2016-11-25 00:40:50 +09:00
Charly POLY 7b37918a11 doc(compiler/ts): fix documentation typo about __decorator code generation
When __decorator applied to method, the last parameter (descriptor)
is null, not undefined
2016-11-24 10:16:21 +01:00
Anders Hejlsberg 36ad772c55 Type inference for isomorphic mapped types 2016-11-23 20:07:53 -08:00
Anders Hejlsberg cdda5dfd61 keyof T is a literal contextual type 2016-11-23 18:22:57 -08:00
Anders Hejlsberg e128add54e Merge pull request #12447 from Microsoft/mappedTypesAndUnions
Isomorphic mapped types and unions
2016-11-23 17:36:44 -08:00
Mohamed Hegazy 72cee3e045 Merge pull request #12434 from Microsoft/Fix12377
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Sheetal Nandi c2bef6d0bd Merge pull request #12475 from Microsoft/jsxFactoryLeaf
Instead of creating clone of the jsxFactory's leaf node, create synthesized node
2016-11-23 13:23:20 -08:00
Vladimir Matveev c05bf3b0a2 respect casing when comparing names of config files (#12474) 2016-11-23 12:34:00 -08:00
Sheetal Nandi 20a8a30b76 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00
Sheetal Nandi 79bf477b67 Revert "Instead of creating clone of the jsxFactory's leaf node, create synthesized node"
This reverts commit 4e7313b4f6.
2016-11-23 12:24:44 -08:00
Sheetal Nandi 4e7313b4f6 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:22:28 -08:00
Mohamed Hegazy 15d870bdcf Use Function instead of call and construct signatures 2016-11-23 10:56:42 -08:00
Mohamed Hegazy 60395565e6 Handel call and construct signatures 2016-11-23 09:48:25 -08:00
Daniel Rosenwasser 4701eb70e2 Merge pull request #12357 from mylesmegyesi/12075-incorrectErrorMessageForUseOfTypeAsNamespace
Fixes error message when Type is used as a Namespace
2016-11-23 11:08:38 -05:00
Yuichi Nukiyama 4c9ab41e3d Merge branch 'master' into defult_export_error_message 2016-11-23 11:40:10 +09:00
Yuichi Nukiyama 31d0a5f225 Merge remote-tracking branch 'tsupstream/master' 2016-11-23 11:39:44 +09:00
jramsay 855431a943 Merge pull request #12373 from Microsoft/RenameTypingOptions
Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable
2016-11-22 17:22:30 -08:00
Jason Ramsay 2b89d919a0 Addressing CR feedback 2016-11-22 17:08:43 -08:00
Anders Hejlsberg 864e1797d9 Merge pull request #12396 from Microsoft/getTypeOfExpression
Introduce 'getTypeOfExpression' function
2016-11-22 15:33:37 -08:00
Vladimir Matveev 680fb2ea1b add typings installer user agent for npm requests (#12446)
* add typings installer user agent for npm requests

* address PR feedback: change name of user agent
2016-11-22 14:56:18 -08:00
Anders Hejlsberg d7dd0289d5 Distribute isomorphic mapped types over union types 2016-11-22 14:27:39 -08:00
Tim Lancina 61204cc05d Re-add sourceFiles to program emit callback
Addresses https://github.com/Microsoft/TypeScript/issues/12444.
2016-11-22 14:20:47 -06:00
Mohamed Hegazy 75a9435d43 Merge pull request #12433 from Microsoft/updatelibreducesymbols
Port lib changes
2016-11-22 11:26:04 -08:00
Ryan Cavanaugh 86583d495c Merge pull request #12441 from RyanCavanaugh/jsDocAugments
Support JSDoc @augments tag
2016-11-22 11:23:45 -08:00
Zhengbo Li 103090b60e report config errors when config file changed (#12372) 2016-11-22 10:56:46 -08:00
Ryan Cavanaugh 6a5682c4a3 Support JSDoc @augments tag
Fixes #12428
2016-11-22 10:52:47 -08:00
Mohamed Hegazy 72df02cbbd Add function 2016-11-21 23:27:18 -08:00
Mohamed Hegazy 8a334ac00d Add special handeling for function and array in Object.freeze 2016-11-21 23:13:22 -08:00
Mohamed Hegazy ab8d6c0dab Port lib changes 2016-11-21 22:45:36 -08:00
Jason Ramsay 70e130b08c Maintain support for deprecated API typingOptions.enableAutoDiscovery 2016-11-21 18:17:27 -08:00
Mohamed Hegazy b8b6e61491 handel missing files gracefully 2016-11-21 17:26:18 -08:00
Mohamed Hegazy 5403ce62ed normalize path in harness 2016-11-21 17:26:10 -08:00
Anders Hejlsberg 77c0540433 Merge pull request #12425 from Microsoft/keyofOnlyStrings
Change 'keyof T' to always be string-like
2016-11-21 15:51:00 -08:00
Anders Hejlsberg 1710df5f28 Type of for-in variable is keyof T when object type is a type parameter 2016-11-21 12:56:32 -08:00
Vladimir Matveev 4c6b94f16f wrap subexpressions of conditional expressions in parens if necessary (#12420) 2016-11-21 12:52:13 -08:00
Andy 90ee161391 Merge pull request #12350 from Microsoft/default_excludes
Make "exclude" default to empty if "include" is present.
2016-11-21 12:23:53 -08:00
Anders Hejlsberg 854a20f1fe Update Record<K, T> type 2016-11-21 11:42:21 -08:00
Anders Hejlsberg 76ceab97dd Make keyof T a string-like type 2016-11-21 11:41:51 -08:00
Vladimir Matveev b060107b51 recompute character to column when comparing indentations (#12375)
recompute character to column when comparing indentations
2016-11-21 11:34:09 -08:00
Nathan Shively-Sanders 409253145e Merge pull request #12335 from Microsoft/getJSDoc-cleanup
getJSDocs cleanup
2016-11-21 11:30:27 -08:00
Andy baa228bbe8 Merge pull request #12415 from Microsoft/fix_lint
Fix lint errors
2016-11-21 10:53:16 -08:00
Andy Hanson 7c1f33f913 Fix lint errors 2016-11-21 10:42:54 -08:00
Zhengbo Li 110c3ac6ac Add locale options to tsserver (#12369)
* add locale options to tsserver

* make sys an argument

* fix mistakes and address code review
2016-11-21 10:30:38 -08:00
Anders Hejlsberg 998246af9c Merge pull request #12389 from Microsoft/keyofRelations
Minor fixes for 'keyof T' and indexed acces types
2016-11-20 15:54:41 -08:00
Mohamed Hegazy f8b8465a4c Merge pull request #12378 from andraaspar/master
Fix issue #12260.
2016-11-20 15:07:31 -08:00
Anders Hejlsberg 4ed3225c06 Add optimized getTypeOfExpression function 2016-11-20 08:13:39 -08:00
Marius Schulz cd70f22b88 Add “|” and “&” to list of tokens that start a type 2016-11-20 10:48:03 +01:00
Marius Schulz 443abe5373 Allow one leading ignored “|” or “&” in a type position 2016-11-19 22:30:18 +01:00
Anders Hejlsberg dcd225a892 Fix comparable relation for keyof T
Treat keyof T as string | number for purposes of indexing
Allow indexed access types with for-in and in operator
2016-11-19 09:03:23 -08:00
András Parditka c96bc89982 Fix issue #12260.
Fixed tsserver crashing on Android (Termux).
2016-11-19 11:28:11 +01:00
Yuichi Nukiyama 94c78961ef modify error message 2016-11-19 16:18:20 +09:00
Jason Ramsay 5a9451ae23 Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable 2016-11-18 18:14:32 -08:00
Yuichi Nukiyama 725dbc2add Merge branch 'master' into defult_export_error_message 2016-11-19 10:51:42 +09:00
Yuichi Nukiyama 4edf1b714a Merge remote-tracking branch 'tsupstream/master' 2016-11-19 10:49:52 +09:00
Jason Ramsay 464bc0e9e0 Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-11-18 16:15:15 -08:00
Nathan Shively-Sanders 71b28a024a Merge pull request #12310 from Microsoft/check-object-rest-destructuring-assignment
Check object rest destructuring assignment
2016-11-18 16:01:25 -08:00
Jason Ramsay 7dd30dbfd4 tsconfig.json mixed content support 2016-11-18 15:51:28 -08:00
Nathan Shively-Sanders 0c5429d3b7 Add missed jsDoc rename in services' Node implementation
Why would you implement an interface using a *class*?
2016-11-18 15:48:31 -08:00
Nathan Shively-Sanders 91e6bce34c Address PR comments 2016-11-18 15:44:15 -08:00
Nathan Shively-Sanders b514d7c91c Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Nathan Shively-Sanders 7caee79ce7 Rename getJSDocComments -> getCommentsFromJSDoc 2016-11-18 15:10:19 -08:00
Nathan Shively-Sanders ab84cd0647 Improve readability of types and names 2016-11-18 15:03:40 -08:00
Sheetal Nandi f626ff777f Merge pull request #12363 from Microsoft/declarationsInFilesWithErrors
Fixes for #12291 and  #12326: Declaration emit when there are errors in the source file
2016-11-18 14:57:09 -08:00