Commit graph

27929 commits

Author SHA1 Message Date
Wesley Wigham 1cbace6eee
Remove secondary reference lookup implementation (#32016)
* Remove secondary reference lookup implementation

* Remove TODO
2019-06-21 13:26:29 -07:00
Sheetal Nandi 179e0a606a
Merge pull request #32027 from microsoft/containerReference
Container only ref needs to be ignored from uptodate status
2019-06-21 11:28:45 -07:00
Wesley Wigham fe2b9e9e17
Assert ranges exist when looped over in fourslash (#32012) 2019-06-21 10:38:31 -07:00
Nathan Shively-Sanders 903527e757
Merge pull request #32026 from typescript-bot/user-update-Microsoft-20190505
🤖 User test baselines have changed
2019-06-21 07:31:19 -07:00
typescript-bot 1c58c1686e Update user baselines 2019-06-21 13:47:03 +00:00
Wesley Wigham 37b20f6afd
Eliminate references to defunct LSHost in comments (#32018) 2019-06-20 19:11:46 -07:00
Wesley Wigham a97c18f227
Ignore identifier declarations when calculating symbol visibility (#31974) 2019-06-20 17:20:12 -07:00
Sheetal Nandi 0e5d95feef Container only ref needs to be ignored from uptodate status
Fixes #31288
2019-06-20 16:09:35 -07:00
Wesley Wigham f2735b5a06
Fake up a namespace enclosing declaration when generating expando namespace members (#31971)
* Fake up a namespace enclosing declaration when generating expando namespace members

* Fix #31676
2019-06-20 12:58:16 -07:00
Sheetal Nandi d36099c98d Use absolute paths for buildInfoDirectory 2019-06-20 12:55:02 -07:00
Wesley Wigham c39a877a92
Add dockerfile based tests for azure-sdk-for-js and office-ui-fabric-react (#31948)
* Add dockerfile based tests

* Update tests/cases/docker/README.md

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Combine sanitize functions

* Add some debugging instructions to README

* Fix listed command order
2019-06-20 12:47:57 -07:00
Sheetal Nandi 36df28d800
Merge pull request #31986 from microsoft/buildLocale
Support --locale with --build
2019-06-20 12:25:37 -07:00
Sheetal Nandi 796d5bb660
Merge pull request #31954 from suhasdeshpande/patch-1
fix tsserver picking hidden files created by emacs
2019-06-20 12:23:18 -07:00
Anders Hejlsberg 6def72b3a4
Merge pull request #31950 from microsoft/unionObjectAndArrayLiterals
Union inferences from object and array literals
2019-06-20 09:36:20 -07:00
Nathan Shively-Sanders fc773a8e23
Merge pull request #32001 from typescript-bot/user-update-Microsoft-20190504
🤖 User test baselines have changed
2019-06-20 08:26:48 -07:00
typescript-bot e9d3f54a01 Update user baselines 2019-06-20 13:27:21 +00:00
Andrew Casey 6e50853143 Trivially expose getEncodedSyntacticClassifications 2019-06-19 15:48:23 -07:00
Sheetal Nandi 06d188a255 Support --locale with --build
Fixes #31960
2019-06-19 15:38:05 -07:00
Sheetal Nandi b9fc44ece7 Bundle info paths as relative to tsbuildinfo file 2019-06-19 14:49:13 -07:00
Daniel Rosenwasser 56370e8247 Updated test-cost file for laptops. 2019-06-19 14:38:42 -07:00
Nathan Shively-Sanders a56b65bc91 Add skip-percent alias for skipPercent 2019-06-19 14:12:17 -07:00
Nathan Shively-Sanders dbabc1241c
Merge pull request #31981 from typescript-bot/user-update-Microsoft-20190503
🤖 User test baselines have changed
2019-06-19 14:00:08 -07:00
Sheetal Nandi 9446fc0c0c Convert options to relative paths 2019-06-19 12:54:22 -07:00
Sheetal Nandi d760cbb74b Make any paths in buildInfoFile to be relative to it. 2019-06-19 12:54:21 -07:00
Nathan Shively-Sanders fce7f9f87b Move .test-cost.json
Also include parameter name in test output so that people will know what
to do to change the percent chance of failure.
2019-06-19 08:40:06 -07:00
typescript-bot 7f0e672ad9 Update user baselines 2019-06-19 13:27:35 +00:00
Suhas Deshpande f8004a33dd semi-colon 2019-06-18 23:17:58 -07:00
Suhas Deshpande 8a11f15569 Add unit test 2019-06-18 22:50:48 -07:00
Suhas 13b7af6ea0 fix tsserver picking hidden files created by emacs
Saw this good for first timers. I followed what @sheetalkamat suggested. 
#31916
2019-06-18 22:50:48 -07:00
Sheetal Nandi 7ed3896a0a
Merge pull request #31587 from microsoft/definitionSpan
Include declarationSpan as relevant declaration span when defintion or other places are declaration name
2019-06-18 14:07:15 -07:00
Nathan Shively-Sanders 1e6a6e9989
Update DOM and baselines (#31806) 2019-06-18 08:41:40 -07:00
Anders Hejlsberg f38a4aa3cf Accept new baselines 2019-06-17 16:18:20 -10:00
Anders Hejlsberg 51712fb1ae Add tests 2019-06-17 16:18:13 -10:00
Josh Goldberg ca00b3248b Added --noImplicitThis code fix for functions used as object properties (#31138)
* Added --noImplicitThis code fix for functions used as object properties

Before trying out all the various possibilities for where these functions could be used, I figured I'd start out with a relatively simple use case to verify this is the right approach. Is it? 😄

Starts on #28964.

* Fixed function expression names; included new baselines

* Got JSDocs to work, hooray!

* Added test for 'any' case of no function uses

* Refactored for inferFunctionReferencesFromUsage

* Fixed inference bug: undefined references cause parameters to default

* Removed dead code comments
2019-06-17 19:00:15 -07:00
Orta 7f65be44c1
Merge pull request #31878 from orta/yarn_lockfile
Adds a yarnrc which makes sure that the lockfile isn't generated for people using Yarn
2019-06-17 16:33:13 -07:00
Andrew Branch 04fbd93bf8
Revert previous fix and improve error message instead 2019-06-17 15:21:21 -07:00
Ron Buckton 179381301e
Move class property transform (#31848)
* Revert "Revert "Move class property transformation into new transformer. (#30467)""

This reverts commit 53467ae4a4.

* Fix emit issues
2019-06-17 14:26:42 -07:00
Nathan Shively-Sanders 41b117eda7 Improve help message for skipPercent 2019-06-17 14:20:42 -07:00
Anders Hejlsberg 3568beb483 Accept new baselines 2019-06-17 08:46:41 -10:00
Anders Hejlsberg 32584249b2 Union array literals in inference similar to object literals 2019-06-17 08:37:33 -10:00
Andrew Branch 1ad3285701
Add test cases for union and intersection constraints 2019-06-17 09:45:09 -07:00
Nathan Shively-Sanders 6f28283e44 Run all tests on CI 2019-06-17 09:20:58 -07:00
Andrew Branch 48f74fdf80
Consider non-public literal members in index type of constrained type parameters 2019-06-14 17:29:39 -07:00
Nathan Shively-Sanders b4b5bf04a1 Fix lint 2019-06-14 16:07:41 -07:00
Nathan Shively-Sanders 3ef953a819 Allow passing skipPercent
Currently, the default is 5%.

0 gives you 0% time savings
2.5 gives you 29%
5 gives you 38%
10 gives you 50%
20 gives you 65%
2019-06-14 15:59:39 -07:00
TypeScript Bot 36aa1014f8 Update user baselines (#31902) 2019-06-14 14:50:54 -07:00
Nathan Shively-Sanders a852f2feea Skip costly tests
1. Add a script to generate a sorted list of most costly tests. A tests'
cost is roughly `runtime% / number of edits`. A slow test that's only
been updated once is much less valuable than a slow test that has
been updated 20 times: the latter test is catching more changes in the
type system.

2. Check in the results of running this script. I want to make the
skipping behaviour deterministic and the same for everybody, even though
you may get slightly better performance by examining only *your* test
changes.

3. Add code to skip tests until it reaches a 5% chance of missing an
edit. Right now this provides a 38% speedup.

Still not done:
4. Make this value configurable.
5. Make the CI configuration specify a 0% chance of missing an edit.
2019-06-14 13:35:41 -07:00
ExE Boss 81f71530c4 fix(lib): Fix RegExp constructor with string|RegExp and flags (#30586) 2019-06-13 15:38:11 -07:00
Sheetal Nandi 73bf2684ac Rename to use contextSpan 2019-06-13 12:41:21 -07:00
Wesley Wigham 74c6bc1f85
Filter primitives from union when checking for mismatched excess props if nonprimitive type is present (#31708)
* Filter primitives from union when checking for mismatched excess props if nonprimitive type is present

* Use maybeTypeOfKind
2019-06-12 17:31:57 -07:00