Commit Graph

28909 Commits

Author SHA1 Message Date
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
caff266f5e Notes on how to return errors from checkTypeRelatedTo 2019-06-18 10:52:03 -07:00
Nathan Shively-Sanders
beddf9c02d Working, just not the way I would like
There are still separate errors instead of one + related spans for each
sub-error.
2019-06-18 10:12:32 -07:00
Nathan Shively-Sanders
1e6a6e9989 Update DOM and baselines (#31806) 2019-06-18 08:41:40 -07:00
Nathan Shively-Sanders
c65d9f261a Initial attempt. Totally doesn't work. 2019-06-18 08:30:18 -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
Orta Therox
f1a0a7f863 Don't let the additional property setting on an object show up as a definition for the lanmguage server 2019-06-17 13:30:39 -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
Andrew Branch
54f5f2baf2 Fix smartSelection returning extra span inside string quotes when cursor is outside them 2019-06-14 15:50:09 -07:00
Andrew Branch
b6c415485a Add failing test for smartSelect string literals 2019-06-14 15:42:29 -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
Alexander T
6b05b26452 @typescript-eslint/prefer-namespace-keyword 2019-06-14 14:52:36 +03:00
Alexander T
a18aeee1eb @typescript-eslint/no-unnecessary-qualifier 2019-06-14 12:34:28 +03:00
Alexander T
59310d5880 @typescript-eslint/class-name-casing 2019-06-14 12:20:48 +03:00
Alexander T
627211b06b quotes 2019-06-14 12:18:27 +03:00
Alexander T
713d6ec155 no-trailing-spaces 2019-06-14 12:05:25 +03:00
Alexander T
650600c5e4 linebreak-style 2019-06-14 11:58:42 +03:00
Alexander T
f611ec68ed microsoft-typescript/no-double-space 2019-06-14 11:52:48 +03:00
Alexander T
65ddc1fef2 microsoft-typescript/type-operator-spacing 2019-06-14 11:48:52 +03:00
Alexander T
012c76e897 microsoft-typescript/object-literal-surrounding-space 2019-06-14 11:45:45 +03:00
Alexander T
f1a399b391 exclude *.generated.d.ts files 2019-06-14 11:40:10 +03:00
Alexander T
c3517c073e @typescript-eslint/type-annotation-spacing 2019-06-14 11:29:00 +03:00
Alexander T
afb5c9bfcf @typescript-eslint/prefer-interface 2019-06-14 11:25:18 +03:00
Alexander T
3fb48d3f24 @typescript-eslint/no-inferrable-types 2019-06-14 11:21:43 +03:00
Alexander T
a96a08a329 microsoft-typescript/boolean-trivia 2019-06-14 11:17:49 +03:00
Alexander T
4e6fb72737 no-new-func 2019-06-14 11:02:15 +03:00
Alexander T
12e195c24e no-throw-literal 2019-06-14 10:54:11 +03:00
Alexander T
bea1bcb466 brace-style 2019-06-14 10:51:09 +03:00
Alexander T
550a99e839 dot-notation 2019-06-14 10:44:19 +03:00
Alexander T
8896c676be object-shorthand 2019-06-14 10:38:45 +03:00
Alexander T
d7f5def5a3 space-in-parens 2019-06-14 10:33:03 +03:00
Alexander T
1cc0ff22c1 no-eval 2019-06-14 10:25:02 +03:00
Alexander T
123ca0d639 no-empty 2019-06-14 10:21:51 +03:00
Alexander T
d8796d5eaf @typescript-eslint/no-this-alias 2019-06-14 10:16:19 +03:00