Commit Graph

35940 Commits

Author SHA1 Message Date
Zhengbo Li 69a76a3b66 cf feedback 2015-05-01 12:25:30 -07:00
Zhengbo Li 79da6a5ee8 Fix issue #2984 2015-05-01 11:33:53 -07:00
Ron Buckton 60ae9bd14d Fixes helpers in strict mode 2015-05-01 10:49:54 -07:00
CyrusNajmabadi 4c435e0977 Merge pull request #2981 from Microsoft/getClassifications1.5
Release-1.5: Add a common, dense, format for classification operations to lower cost of processing on the host side.
2015-04-30 18:35:51 -07:00
CyrusNajmabadi 3bd4dd4095 Merge pull request #2977 from Microsoft/getClassifications2
Add a common, dense, format for classification operations to lower cost of processing on the host side.
2015-04-30 18:02:45 -07:00
Cyrus Najmabadi 1c7600b4f5 Update names. 2015-04-30 17:51:07 -07:00
Cyrus Najmabadi d0ccc11405 Fix name. 2015-04-30 17:51:00 -07:00
Cyrus Najmabadi ddd1091d1b Log when the lexical classifier fails. not the perf of each line. 2015-04-30 17:50:49 -07:00
Cyrus Najmabadi 25aed1129c Unify more classification code. 2015-04-30 17:50:39 -07:00
Cyrus Najmabadi 089fd4dd8f Add a common, dense, format for classification operations to lower cost of processing on the host side.
We now just return an array of triples to represent classified results.  The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.

We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array).  That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 17:50:27 -07:00
Cyrus Najmabadi c35f348cd8 Faster getClassifications 2015-04-30 17:50:11 -07:00
Ron Buckton 78808a8dc7 Updated ES6 declarations for Promise, updated baselines 2015-04-30 17:48:20 -07:00
Cyrus Najmabadi 7769b4cd19 Update names. 2015-04-30 17:48:01 -07:00
Cyrus Najmabadi b49e07c2fa Fix name. 2015-04-30 17:20:04 -07:00
Paul van Brenk 45591c846c CR feedback 2015-04-30 17:13:26 -07:00
Cyrus Najmabadi 248f9b78fb Log when the lexical classifier fails. not the perf of each line. 2015-04-30 16:14:43 -07:00
Paul van Brenk 63f3bafed6 Fixes Aggressive completion makes it difficult to type function types. #2494 + test case 2015-04-30 15:41:14 -07:00
Paul van Brenk fd5a04cb14 this fixes No builder in right-hand side of object binding pattern element #2693 and adds tests 2015-04-30 15:01:37 -07:00
Cyrus Najmabadi c0c2c4f9a3 Unify more classification code. 2015-04-30 14:57:38 -07:00
Mohamed Hegazy a46a6106a8 Update LKG 2015-04-30 14:46:33 -07:00
Paul van Brenk 8b26423848 Fix for Completion interferes with typeing a "type alias". #2882 + test case 2015-04-30 14:35:48 -07:00
Mohamed Hegazy b7bdfa6b10 Merge pull request #2976 from zhengbli/master
Added missing createEvent overloads
2015-04-30 14:35:08 -07:00
Cyrus Najmabadi 5ad7a593d4 Add a common, dense, format for classification operations to lower cost of processing on the host side.
We now just return an array of triples to represent classified results.  The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.

We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array).  That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 14:26:46 -07:00
Zhengbo Li 125a7b9982 Added missing createEvent overloads 2015-04-30 14:24:17 -07:00
Cyrus Najmabadi d1607cfc65 Merge branch 'master' into getClassifications2 2015-04-30 13:16:47 -07:00
Daniel Rosenwasser e90849d643 Made parameter mandatory, check type baselines again even in light mode. 2015-04-30 12:36:45 -07:00
Dick van den Brink 0ed7898f9f Accepted baselines 2015-04-30 18:35:57 +02:00
Dick van den Brink 9436934aa5 Added test for abstract-classes 2015-04-30 18:34:06 +02:00
Dick van den Brink 3aeae55fc3 Output abstract keyword in declaration files (for classes) 2015-04-30 17:53:39 +02:00
Dick van den Brink b42e447df8 Error on creating a new instance of an abstract class 2015-04-30 17:51:16 +02:00
Dick van den Brink 0e72677fd2 Accept baseline changes 2015-04-30 17:43:07 +02:00
Dick van den Brink dd1f982bde Parse abstract keyword 2015-04-30 17:40:35 +02:00
vvakame 35d6e98e98 type narrowing by constructor signiture of interface 2015-04-30 23:12:35 +09:00
Mohamed Hegazy b6905aff0c Add getTypeDefinitionAtPosition to tsserver 2015-04-29 22:55:05 -07:00
Mohamed Hegazy 6f1c307319 Add test to shims 2015-04-29 22:54:57 -07:00
Mohamed Hegazy e9f76d0002 Add implementation for getTypeDefinitionAtPosition 2015-04-29 22:54:49 -07:00
Mohamed Hegazy dda598a8dc Refactor getDefinition code 2015-04-29 22:54:40 -07:00
James Whitney 76fa4b838f Add support for --noEmitHelpers flag
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350: Multiple `__extends` being output
when `--module amd` is set.

The issue still exists as of `v1.5.0 - f53e6a8`.

Apparently a fix was created for this in #1356 but according to #2009, a
[comment](https://github.com/Microsoft/TypeScript/issues/2009#issuecomment-74136291)
later indicated that this was never merged in.

Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350.

> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
>     var Human = (function (_super) {
>         __extends(Human, _super);
>         function Human() {
>             _super.apply(this, arguments);
>         }
>         return Human;
>     })(Mammal);
>     return Human;
> });
> ```

To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.
2015-04-30 13:23:30 +10:00
Daniel Rosenwasser eb15bb3658 Use no-default-lib for the '--noLibCheck' flag. 2015-04-29 17:42:28 -07:00
Mohamed Hegazy 64f3798bd7 Merge pull request #2935 from Microsoft/relaxExportEqualsCheck
Fix #2929: relax the check for export= in ES6 if it is resulting from an ambient declaration
2015-04-29 17:26:55 -07:00
CyrusNajmabadi 5eefc4264a Merge pull request #2964 from Microsoft/checkerSimplification
Restore checker simplification that was reverted due to a bad merge.
2015-04-29 15:21:34 -07:00
Cyrus Najmabadi 85d0c2226f Restore checker simplification that was reverted due to a bad merge. 2015-04-29 15:10:25 -07:00
Paul van Brenk 270a149571 Merge pull request #2963 from Microsoft/RenameHeritageClauseElement
Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods.
2015-04-29 15:01:29 -07:00
Mohamed Hegazy 40aaefd5af Merge pull request #2960 from Microsoft/DataViewDefinition
Fix #2953: Put DataView definition back into lib.d.ts
2015-04-29 14:57:11 -07:00
Paul van Brenk 54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Vladimir Matveev 377b48febf Merge pull request #2948 from Microsoft/localStorageForExportedNames
Store exported names locally
2015-04-29 14:08:20 -07:00
Vladimir Matveev 2184be883c addressed PR feedback 2015-04-29 13:56:17 -07:00
Cyrus Najmabadi 8d99ecfa6c Add a light=true mode for running tests faster. 2015-04-29 12:13:35 -07:00
Mohamed Hegazy 31fe7c4a66 Fix #2953: Put DataView definition back into lib.d.ts 2015-04-29 12:11:06 -07:00
Vladimir Matveev 4a919d4f04 exclude 'default' from star exports 2015-04-29 11:43:23 -07:00