14822 Commits

Author SHA1 Message Date
Mohamed Hegazy
34d41de06f Update LKG v2.1.2 2016-11-08 12:23:44 -08:00
Mohamed Hegazy
aaf6c1dad4 Update version 2016-11-08 12:11:52 -08:00
Ron Buckton
796a159e63 Update LKG 2016-11-08 12:01:10 -08:00
Ron Buckton
da4985e427 Reuse subtree transform flags for incrementally parsed nodes (#12088) 2016-11-08 12:00:50 -08:00
Mohamed Hegazy
8e8ec9f81d Update LKG v2.1.1 v2.1-rc 2016-11-04 12:01:20 -07:00
Vladimir Matveev
f03e04a41e enable sending telemetry events to tsserver client (#12034) (#12051)
enable sending telemetry events
2016-11-04 11:35:44 -07:00
Zhengbo Li
afe36be50c Add test for https://github.com/Microsoft/TypeScript/pull/11980 (#12027)
* add test for the fix for overwrite emitting error

* cr feedback
2016-11-03 16:26:03 -07:00
Vladimir Matveev
7d1f0e67b4 use local registry to check if typings package exist (#12014) (#12032)
use local registry to check if typings package exist
2016-11-03 15:12:44 -07:00
zhengbli
0b872109b6 lockLinter 2016-11-03 12:48:16 -07:00
Mohamed Hegazy
b98089dc53 Update LKG 2016-11-03 10:35:23 -07:00
Zhengbo Li
73e2328acb Flag for not overwrite js files by default without generating errors (#11980)
* WIP

* Properly naming things

* refactor

* apply the option to all files and check out options

* Fix typo
2016-11-03 10:25:12 -07:00
Zhengbo Li
182bc774b5 Add diagnostics to remind adding tsconfig file for certain external project (#11932)
* Add diagnostics for certain external project

* Show tsconfig suggestion

* fix lint error

* Address pr

* fix comment

* Update error message
2016-11-01 16:42:06 -07:00
Yui
ad9c148168 Merge pull request #11931 from Microsoft/release-2.1_fixDeclarationEmitTypeAlaisWithTypeParam
[Release-2.1] Fix declaration emit when using type parameters
2016-10-31 13:18:32 -07:00
Kanchalai Tanglertsampan
f9a317ec97 Update baselines 2016-10-28 18:16:33 -07:00
Kanchalai Tanglertsampan
f2e343903c Skip trying to use alias if there is target type 2016-10-28 18:16:14 -07:00
Kanchalai Tanglertsampan
01e06f9295 Add tests and baselines 2016-10-28 16:41:17 -07:00
Kanchalai Tanglertsampan
2869f9cb05 Fix emit inferred type which is a generic type-alias both fully and partially fill type parameters 2016-10-28 16:41:10 -07:00
Mohamed Hegazy
467f252583 Update LKG 2016-10-28 10:38:08 -07:00
Vladimir Matveev
86138e33c4 rewrite void-returning statements in constructors that capture result of super call (#11868)
* rewrite void-returning statements in constructors that capture result of super call

* linter
2016-10-28 10:25:34 -07:00
Nathan Shively-Sanders
a163641bd3 isAritySmaller runs later: getNonGenericSignature 2016-10-28 10:14:11 -07:00
Nathan Shively-Sanders
2c09574f18 Do not use contextual signatures with too few parameters 2016-10-28 10:14:06 -07:00
Nathan Shively-Sanders
4e57f700d0 Ignore optionality when skipping overloads 2016-10-28 10:13:59 -07:00
Nathan Shively-Sanders
b4451b159c Minor style improvements 2016-10-28 10:13:51 -07:00
Nathan Shively-Sanders
dfa3dd30fb Test skip overloads w/too-short function params
1. Update changed baseline.
2. Add a new test with baseline.
2016-10-28 10:13:34 -07:00
Nathan Shively-Sanders
1f4d8a1a72 Skip overloads with too-short function parameters
If the parameter of an overload is a function and the argument is also a
function, skip the overload if the parameter has fewer arguments than
the argument does. That overload cannot possibly apply, and should not
participate in, for example, contextual typing.

Example:

```ts
interface I {
  (a: number): void;
  (b: string, c): void;
}
declare function f(i: I): void;
f((x, y) => {});
```

This code now skips the first overload instead of considering.

This was a longstanding bug but was only uncovered now that more
functions expressions are context sensitive.
2016-10-28 10:13:26 -07:00
Mohamed Hegazy
515542b293 Update LKG 2016-10-27 12:55:52 -07:00
Mohamed Hegazy
e497d1ee07 Update version 2016-10-27 12:34:51 -07:00
Mohamed Hegazy
5e9494900a Update LKG 2016-10-25 16:02:19 -07:00
Mohamed Hegazy
19591547db Run tests on branch release-2.1 2016-10-25 15:48:13 -07:00
Vladimir Matveev
72f81e2fc4 Merge pull request #11841 from Microsoft/vladima/report-typings-installer-pid
report typings installer process id to parent process
2016-10-25 15:37:56 -07:00
Vladimir Matveev
7890f63250 use unresolved imports as a source of used typings (#11828) 2016-10-25 15:24:21 -07:00
Zhengbo Li
d0170d1ac8 Support dotted name in @typedef tag (#11695)
* Support dotted name in @typedef tag

* Use a new node flag to get rid of the extra logics

* replace jsdoc namespace node flag with optional property

* Fix linting error
2016-10-25 13:32:48 -07:00
Vladimir Matveev
f48728af74 report typings installer process id to parent process 2016-10-25 13:18:57 -07:00
Asad Saeeduddin
66c1178134 Use symbol fully-qualified name instead of node text in error message (#11761)
* Add test

* Add baselines

* Use fqn of symbol instead of node text
2016-10-25 11:45:32 -07:00
Arthur Ozga
48f947f50d Merge pull request #11829 from Microsoft/arozga/RemoveNavBarWhiteSpace
remove whitespace in nav bar completions
2016-10-25 11:44:29 -07:00
Arthur Ozga
59cfa2eafe remove whitespace 2016-10-25 11:06:04 -07:00
Arthur Ozga
77df58bdb6 simplify regex 2016-10-25 11:03:54 -07:00
Arthur Ozga
476b6e02c8 remove check on property assignment 2016-10-25 10:59:17 -07:00
Sheetal Nandi
d54e889cf2 Merge pull request #11830 from Microsoft/jsDocAV
Fix the AV resulting from presence of undefined in the jsDocPropertyTags
2016-10-25 10:42:49 -07:00
Arthur Ozga
c9b490f234 Merge branch 'master' into arozga/RemoveNavBarWhiteSpace 2016-10-25 10:39:18 -07:00
Arthur Ozga
82e8e43236 only remove whitespace for expr assignment 2016-10-25 10:38:41 -07:00
Sheetal Nandi
f98369b711 Fix the AV resulting from presence of undefined in the jsDocPropertyTags
Fixes #11703
2016-10-24 18:10:05 -07:00
Arthur Ozga
cb804df151 remove whitespace 2016-10-24 17:53:03 -07:00
Vladimir Matveev
3bdff73c16 Merge pull request #11819 from Microsoft/vladima/11752
treat ambient non-aliased 'require' as commonjs 'require'
2016-10-24 16:26:32 -07:00
Sheetal Nandi
1884c89620 Merge pull request #11818 from Microsoft/unusedDestructuredParameter
Report error on unused destructured parameters
2016-10-24 15:05:42 -07:00
Andy
e20f52b758 Merge pull request #11757 from Microsoft/destructure_catch
Allow destructuring in catch clauses
2016-10-24 14:55:23 -07:00
Alexander Rusakov
7b684214fa Fix #11545 ('export as namespace foo' occurs EOF without semicolon) (#11797) 2016-10-24 13:18:46 -07:00
Vladimir Matveev
b7ea3e5bdd treat ambient non-aliased 'require' as commonjs 'require' 2016-10-24 11:19:41 -07:00
Sheetal Nandi
c1c670f8f6 Report error on unused destructured parameters
Fixes #11795
2016-10-24 11:17:35 -07:00
Mohamed Hegazy
4dc6028263 Fix #11650 add an error message for no source files parsing a tsconfig.json (#11743)
* Fix #11650 add an error message for no source files parsing a tsconfig.json

* Use the file name in error message

* Use constants

* Review comments: change message text
2016-10-24 11:00:32 -07:00