Commit Graph

19727 Commits

Author SHA1 Message Date
Anders Hejlsberg d815ba13f8 Accept new baselines 2017-10-10 17:34:44 -07:00
Anders Hejlsberg 83020dbbd6 Add regression test 2017-10-10 17:34:32 -07:00
Anders Hejlsberg 5a1d846e76 Properly account for possibly referenced type parameters 2017-10-10 17:34:16 -07:00
Sheetal Nandi 077f70276f Merge pull request #18970 from Microsoft/lessLoggingInTsc
Fine tune logging so that only triggers in watch are logged in normal mode vs verbose
2017-10-09 11:37:02 -07:00
Andy 2796ebfe35 In resolveNameHelper, use a lastNonBlockLocation (#18918) 2017-10-09 11:04:28 -07:00
Andy 8a55baf9a3 In @typedef tag, handle property with no type (#19013) 2017-10-09 09:58:02 -07:00
Andy e821c2b6e9 A parameter not declared as a rest parameter is not one (#18825) 2017-10-06 15:05:00 -07:00
Andy 71f8852124 Have getNameOfDeclaration return x for export default x. (#18616) 2017-10-06 14:29:45 -07:00
Anders Hejlsberg b7e744a0e5 Merge pull request #18976 from Microsoft/strictCallbackParameters
Strictly check callback parameters
2017-10-06 21:36:52 +01:00
Nathan Shively-Sanders afa4842b2a Merge pull request #16363 from Microsoft/excess-property-checks-for-discriminated-unions
Excess property checks for discriminated unions
2017-10-06 10:54:04 -07:00
Andy 3b9bbb3e55 Remove duplicate assignment (#18994) 2017-10-06 10:31:45 -07:00
Anders Hejlsberg 7fcf51960d Add tests 2017-10-06 09:22:10 -07:00
Nathan Shively-Sanders e1bc916b91 Merge branch 'master' into excess-property-checks-for-discriminated-unions 2017-10-06 09:18:57 -07:00
Anders Hejlsberg c8d5260914 Accept new baselines 2017-10-06 09:17:18 -07:00
Anders Hejlsberg 70e259aba3 Always use callback parameter code path, but stricter if necessary 2017-10-06 09:16:57 -07:00
Wesley Wigham 7a4c3314e8 Visit default export expressions (#18977) 2017-10-05 16:47:24 -07:00
Daniel Rosenwasser 28658de66c Merge pull request #18969 from Microsoft/uncalledDecoratorQuickFix
Quick fix for potentially uncalled decorators
2017-10-05 14:42:39 -07:00
Anders Hejlsberg aae7572c48 Add test 2017-10-05 13:25:23 -07:00
Anders Hejlsberg 0dc1c77f23 Accept new baselines 2017-10-05 13:18:49 -07:00
Anders Hejlsberg c3d1b027dc Don't use callback parameter code path when strictly checking functions 2017-10-05 13:18:38 -07:00
Daniel Rosenwasser ea2021dd3e Create fix for uninvoked decorators. 2017-10-05 11:43:14 -07:00
Daniel Rosenwasser e5eccf0a22 Added test. 2017-10-05 11:38:21 -07:00
Sheetal Nandi 32d705dbb5 Fine tune logging so that only triggers in watch are logged in normal logging vs verbose 2017-10-05 11:35:18 -07:00
Daniel Rosenwasser 924460406e Merge pull request #18811 from Microsoft/uncalledDecorator
Give a more helpful error message for certain decorators with too many arguments
2017-10-05 11:27:46 -07:00
Nathan Shively-Sanders 97ee9516d6 Update baselines 2017-10-05 09:10:55 -07:00
Nathan Shively-Sanders da6acba71e Merge branch 'master' into excess-property-checks-for-discriminated-unions 2017-10-05 09:07:23 -07:00
Sheetal Nandi c02865f357 Merge pull request #18958 from Microsoft/compilePublicApi
Compile public api so that all the updates are ensured to be correct
2017-10-04 18:16:51 -07:00
Sheetal Nandi ee05d0eb1c Compile public api so that all the updates are ensured to be correct 2017-10-04 16:09:16 -07:00
Nathan Shively-Sanders 8b2a219dd4 Merge pull request #18955 from Microsoft/binding-element-with-parent-type-any-is-any
Binding element with parent type any is of type any
2017-10-04 16:03:44 -07:00
Nathan Shively-Sanders 2ae70a1c2b Update baselines 2017-10-04 15:24:23 -07:00
Nathan Shively-Sanders da41217f43 Binding element with parent type any is any
Previously if the binding element had an initializer, then that type
would be used. But this is incorrect:

```ts
function f(x: any) {
  let { d = 1 } = x;
  // d should have type any not number.
  // f can be called with anything:
}
f({ d: 0 });
f({ d: 'hi' });
f({});
```
2017-10-04 15:15:29 -07:00
Wesley Wigham 648bd6e9e0 Skip more lib checks, improve test execution time a bit more (#18952)
* Skip more lib checks, improve test execution time a bit more

* Change complexRecursiveCollections to still check

* Remove way more
2017-10-04 14:43:35 -07:00
Benjamin Lichtman 43084829bc Increase maximum depth of outlining span search (#18704)
* Increase max depth of outlining spans to 120

* Update tests

* Update tests to demonstrate limit

* Set limit to 40 and update tests
2017-10-04 13:48:08 -07:00
Andrew Casey 530e107d51 Merge pull request #18936 from amcasey/GH18899
Localize more Extract Function/Constant strings
2017-10-04 13:33:06 -07:00
Andy efa274f722 When emitting all files, emit the changed file first (#18930)
* When emitting all files, emit the changed file first

* Export interface
2017-10-04 13:30:37 -07:00
Wesley Wigham 25c3b99f29 Add skip lib check to many tests (#18935)
* Add skip lib check to many tests, do not include unit test duration in profiler duration

* Add a few more skipLibCheck flags

* A few more

* Add more skip lib check flags
2017-10-04 13:14:05 -07:00
Andrew Casey 02f2a29ca2 Stop combining already-translated strings 2017-10-04 12:39:32 -07:00
Andy de9c459d5e Clean up code in getModifierOccurrences (#18948) 2017-10-04 12:20:58 -07:00
Andrew Casey d03d237b3b Merge pull request #18929 from amcasey/ExtractVoidNever
Stop extracting void and never constants
2017-10-04 10:33:05 -07:00
Andy 6617819bf3 In getModifierOccurrences, support additional container kinds (#18947) 2017-10-04 09:52:51 -07:00
Andy fe9129b1ab Support contextual type for property assignments in JS that are not declarations (#18820) 2017-10-04 09:32:09 -07:00
Andrew Casey bcdfdd276f Call getLocaleSpecificMessage 2017-10-03 18:10:58 -07:00
Andrew Casey 559689f66f Localize more Extract Function/Constant strings
Fixes #18899
2017-10-03 17:18:12 -07:00
Sheetal Nandi a3853d0774 Merge pull request #18934 from Microsoft/throttledCancellation
Wrap the cancellation token in throttled cancellation token from server
2017-10-03 17:10:38 -07:00
Wesley Wigham 37723f17d6 Latest mocha uses fullPath instead of titlePath (#18933) 2017-10-03 17:02:39 -07:00
Andy d384a6adb6 Fix location of generateLocalizedDiagnosticMessages.js (#18923) 2017-10-03 16:38:47 -07:00
Sheetal Nandi c2427f22d0 Wrap the cancellation token in throttled cancellation token from server 2017-10-03 16:34:46 -07:00
Andrew Casey 443812a045 Stop extracting void and never constants 2017-10-03 15:07:39 -07:00
Andrew Casey 1507547020 Merge pull request #18927 from amcasey/ExtractBaselineShowRange
Include range markers in Extract Constant/Function baselines
2017-10-03 14:29:14 -07:00
Andrew Casey d1015bff06 Merge pull request #18926 from amcasey/ExtractConstantArrow
Disallow constant extraction into expression-bodied arrow functions
2017-10-03 14:29:01 -07:00