Commit Graph

12007 Commits

Author SHA1 Message Date
Andy Hanson
b8aa84e8bf Use more specific types in a few cases 2017-03-20 14:49:12 -07:00
Yui
de5211352a Merge pull request #14132 from Microsoft/master-fix12952
[Master] Fix 12952 : throw exception when parsing conflict marker in JSX
2017-03-20 14:32:52 -07:00
Yui
7b04f1d60b Merge pull request #14717 from Microsoft/master-onlyEmitUseStrictInExternalModule
[Master] Only emit "use strict" when users ask for or the file is external module
2017-03-20 14:32:20 -07:00
Mohamed Hegazy
238edf08b7 Merge pull request #14716 from Microsoft/fix14565
Do not report semantic diagnostics for infered and external projects with only .js files
2017-03-20 10:45:46 -07:00
andy-ms
2a2c1a9c14 Add comment 2017-03-19 10:03:36 -07:00
Yui T
cc6140f6e9 Only emit "use strict" when users ask for or the file is external module 2017-03-17 17:22:02 -07:00
Mohamed Hegazy
a710e9433b Do not report semantic diagnostics for infered and external projects with only .js files 2017-03-17 17:20:43 -07:00
Andy
ac67b94a6e Merge pull request #14690 from Microsoft/clean_up_parser
Clean up code in parser
2017-03-17 15:05:09 -07:00
Andy Hanson
6234cbb82f Move comment to JSDoc 2017-03-17 14:04:36 -07:00
Vladimir Matveev
595342615b abstract code in FindReferences from concrete way of creating result reference entry to seamlessly reuse the same code for gotoImplementation (#14637) 2017-03-16 15:53:05 -07:00
Andy Hanson
18f283f68a Add more missing quotes 2017-03-16 14:43:56 -07:00
Andy Hanson
9c0f77091c Clean up code in parser 2017-03-16 13:23:35 -07:00
Mohamed Hegazy
7ead44f841 Merge pull request #14448 from DLehenbauer/removeWScript
Remove vestiges of WScript support
2017-03-16 12:23:32 -07:00
Zhengbo Li
5040e1d279 Mark occurence item in string with a special property (#14677)
* mark occurence item in string with a special property

* Adding trailing commas
2017-03-16 11:01:48 -07:00
Mohamed Hegazy
4b3cd6a1db Merge pull request #14641 from cedvdb/master
Added `entries`, `foreach`,  `values` and `keys` to NodeListOf
2017-03-15 12:15:53 -07:00
Vladimir Matveev
2b10611fbf initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer (#14441)
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
cedvdb
e8b6e8b0f1 swap entries and values 2017-03-15 12:48:55 +01:00
cedvdb
db878adea3 changed forEach comment 2017-03-15 03:15:58 +01:00
cedvdb
8d0e0f3f79 Added comment for forEach 2017-03-15 03:12:08 +01:00
cedvdb
f20c59a7d2 change NodeList to NodeListOf in NodeListOf.forEach 2017-03-15 03:10:40 +01:00
cedvdb
d9cab83314 Change Node to TNode in NodeListOf 2017-03-15 03:08:16 +01:00
cedvdb
64070632dc added comments 2017-03-15 03:06:25 +01:00
cedvdb
45ae0b453c change to forEach method 2017-03-15 01:15:15 +01:00
cedvdb
8cac5285b9 added keys, values, `forEach, entries` to nodelist 2017-03-14 04:15:32 +01:00
cedvdb
875328c123 removed white space 2017-03-14 00:55:41 +01:00
cedvdb
5f37d32dbf added keys, entries, values, forEach on NodeListOf 2017-03-14 00:52:47 +01:00
falsandtru
d86976a9ef Convert overloads to unions 2017-03-14 08:06:00 +09:00
Mohamed Hegazy
84d5d44ab3 Merge pull request #14632 from Microsoft/port14594ToMaster
Port #14594 to master
2017-03-13 10:48:54 -07:00
Mohamed Hegazy
4f04794d00 Merge remote-tracking branch 'origin/mjbvz-fix-per-request-cancellation' 2017-03-13 10:34:32 -07:00
Mohamed Hegazy
3ac54e8a47 Infer class property declarations from assignments in nested arrow functions 2017-03-12 15:00:24 -07:00
Matt Bierner
205f63891e Fix Per Request Cancellation Tokens
While working on https://github.com/Microsoft/vscode/pull/22437, I believe there is a bug in the per request cancellation in the  `setRequest` function on the line `currentRequestId = currentRequestId ;` This causes `currentRequestId` to always be undefined

Fix is to assign the `currentRequestId` to `requestId`
2017-03-10 22:13:58 -08:00
Daniel Rosenwasser
7532ab2d83 Remove stray apostrophe. 2017-03-10 17:25:31 -08:00
Vladimir Matveev
17cb68cbbf send error if obtaining of types-registry package failed (#14573) 2017-03-10 10:34:01 -08:00
Nathan Shively-Sanders
bdb6a8a83a Merge pull request #12784 from e-cloud/fix/generic-this-arg
fix: add generic info for methods with thisArg of built-in classes
2017-03-10 09:02:09 -08:00
DLehenbauer
3f980bead0 Remove vestiges of WScript support (Issue #14414) 2017-03-10 07:10:58 -08:00
Yui
940d165b0d Merge pull request #14212 from Microsoft/master-12989
[Master] Fix 12989:  completion in JSX opening-like element when tag name is a property access expression
2017-03-09 18:42:36 -08:00
Arthur Ozga
8817703a15 Merge pull request #14545 from aozgaa/docCommentPrefix
Make docComment template indent whitespace-only
2017-03-09 16:13:29 -08:00
Vladimir Matveev
77c2a1d20d allow passing --logFile and --logVerbosity parameter to tsserver (#14566) 2017-03-09 15:25:44 -08:00
Anders Hejlsberg
f2c487ed11 Merge pull request #14562 from Microsoft/fixLookupTypeRelation
Fix indexed access type relations
2017-03-09 10:51:29 -10:00
Anders Hejlsberg
014aeb3fd3 Use immediate constraint instead of base constraint in T[K] relations 2017-03-09 11:50:07 -08:00
Mohamed Hegazy
81c0bd50ab Add --lib es6 to @types/node dependent targets 2017-03-08 23:03:30 -08:00
e-cloud
cedad974d2 fix: add generic info for methods with thisArg of built-in classes
when enabling `noImplicitThis`, if assing this argument for
methods like `array.forEach` will cause compilation error.
This commit fixes it.

fix #12548
2017-03-09 11:52:54 +08:00
Mohamed Hegazy
0fb415ac61 Merge pull request #14492 from Microsoft/anyInferences
Set inference result to `any` instead of `{}` for .js files if generic type parameter inference found no candidates
2017-03-08 16:15:50 -08:00
Mohamed Hegazy
41dbae58f3 code review comments 2017-03-08 14:15:26 -08:00
Arthur Ozga
b7d09ef015 Make docComment template indent whitespace-only 2017-03-08 12:41:20 -08:00
Nathan Shively-Sanders
1bf4f06b2a Merge pull request #14498 from Microsoft/narrow-default-initialised-parameters
Remove undefined from the type of default  initialised parameters when narrowing
2017-03-07 15:03:57 -08:00
Vladimir Matveev
fab4ef0bde cache semantic and declaration diagnostics in program (#14516) 2017-03-07 13:26:41 -08:00
Andy
6117ed7708 Merge pull request #14391 from Microsoft/lint_better
Update tslint to `latest` (`next` is still on 4.3) and lint for BOM
2017-03-07 11:41:55 -08:00
Mohamed Hegazy
89974bdaaf Merge pull request #14172 from Microsoft/moduleExportsAlias
Fix #14171: Recognize property assignements to `module.export` aliases as exports
2017-03-07 11:13:19 -08:00
Mohamed Hegazy
4610dc7e3b Merge pull request #14508 from Busyrev/fix-function-parameter-default-value
FIX: #14507 Function parameter default value wrongly emmited by Printer
2017-03-07 10:34:33 -08:00