Andrew Branch
|
fab885d440
|
Allow ImportAdder to insert imports into a new file
|
2023-04-06 10:48:32 -07:00 |
|
Andrew Branch
|
f1df67cf00
|
Fix workflow syntax
|
2022-04-13 17:21:19 -07:00 |
|
Andrew Branch
|
a7d818b24a
|
Allow twoslash-repros action to be run on-demand
|
2022-04-11 11:50:46 -07:00 |
|
Andrew Branch
|
f41c9b2c20
|
Rename parameter
|
2019-07-10 13:34:58 -07:00 |
|
Andrew Branch
|
ab9e583e45
|
Remove "Did you forget to use await" for unary arithmetic expressions
|
2019-07-10 13:18:37 -07:00 |
|
Andrew Branch
|
bdd8a3e878
|
Only add "Did you forget await" for function args when the parameter type is not promise-like
|
2019-07-08 16:32:53 -07:00 |
|
Andrew Branch
|
64501996cc
|
Update error code
|
2019-07-08 14:52:23 -07:00 |
|
Andrew Branch
|
6626a99f11
|
Fix bad rebase
|
2019-07-08 14:44:57 -07:00 |
|
Andrew Branch
|
eb6b87aa26
|
Refactor to use related info everywhere
|
2019-07-08 14:37:45 -07:00 |
|
Andrew Branch
|
094a001982
|
Did you forget to use await? on arguments of function calls
|
2019-07-08 14:33:25 -07:00 |
|
Andrew Branch
|
e89a2c4571
|
Update baselines
|
2019-07-08 14:03:59 -07:00 |
|
Andrew Branch
|
a3a076d79f
|
Did you forget to use await? for call and construct signatures
|
2019-07-08 14:01:25 -07:00 |
|
Andrew Branch
|
48fc6b8b17
|
Did you forget to use await? on iterables
|
2019-07-08 13:59:59 -07:00 |
|
Andrew Branch
|
c48e34ef91
|
Did you forget to use await? for operators
|
2019-07-08 13:50:56 -07:00 |
|
Andrew Branch
|
27b8c45522
|
Update baselines
|
2019-07-01 10:52:32 -07:00 |
|
Andrew Branch
|
79c604836a
|
Use intersectTypes instead of filterType
|
2019-06-26 16:56:54 -07:00 |
|
Andrew Branch
|
5ff3cda078
|
Add some negative test cases and accept baselines
|
2019-06-26 14:01:50 -07:00 |
|
Andrew Branch
|
aaf818b4eb
|
Treat negative numbers as non-dynamic names
|
2019-06-26 13:57:34 -07:00 |
|
Andrew Branch
|
17f6f77de5
|
Fix declaration emit for negative number property declarations
|
2019-06-26 11:49:45 -07:00 |
|
Andrew Branch
|
252840ad40
|
Fix incorrect noImplicitAny error on contextual union function signature
|
2019-06-24 17:37:14 -07:00 |
|
Andrew Branch
|
7bbd299226
|
Look at properties of constraint-instantiated optional mapped types when deciding assignability
|
2019-06-24 15:19:43 -07:00 |
|
Andrew Branch
|
04fbd93bf8
|
Revert previous fix and improve error message instead
|
2019-06-17 15:21:21 -07:00 |
|
Andrew Branch
|
1ad3285701
|
Add test cases for union and intersection constraints
|
2019-06-17 09:45:09 -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 |
|
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 |
|
Andrew Branch
|
6282c9fb5e
|
Add test for semicolon detection in auto-import
|
2019-06-06 10:55:56 -07:00 |
|
Andrew Branch
|
b37875ff7a
|
Detect semicolons in file before writing quick fixes
|
2019-06-06 10:49:09 -07:00 |
|
Andrew Branch
|
7815778fb0
|
Update fourslash tests that shouldn’t insert semicolons
|
2019-06-06 10:48:26 -07:00 |
|
Andrew Branch
|
ca44ee8f97
|
Update fourslash tests to have semicolons
|
2019-06-06 10:39:22 -07:00 |
|
Andrew Branch
|
7359ff8158
|
Add test
|
2019-05-23 13:33:38 -07:00 |
|
Andrew Branch
|
f97f57c155
|
Fix containsPrecedingToken for tokens whose preceding token is a missing node
|
2019-05-23 12:15:50 -07:00 |
|
Andrew Branch
|
300cbef071
|
Don’t crash when creating a union signature from signatures that do and don’t have this types
|
2019-05-22 17:42:05 -07:00 |
|
Andrew Branch
|
9f6791a5ab
|
Error when writing to readonly tuple in rest element range
|
2019-05-22 15:03:17 -07:00 |
|
Andrew Branch
|
eecb6d9049
|
Add failing test
|
2019-05-22 13:39:05 -07:00 |
|
Andrew Branch
|
60d0bb9b19
|
Don’t touch imports used for module augmentation in non-declaration files since it could change JS emit
|
2019-05-22 11:37:35 -07:00 |
|
Andrew Branch
|
ad9c36e0ec
|
Expose ts.Diagnostics to fourslash
|
2019-05-22 10:00:09 -07:00 |
|
Andrew Branch
|
52894cf850
|
Accept baselines, I guess
|
2019-05-21 15:39:07 -07:00 |
|
Andrew Branch
|
2856aabd70
|
Parse stray identifier-ish as JSXText instead of trivia
|
2019-05-21 15:28:16 -07:00 |
|
Andrew Branch
|
feaef9c829
|
Improve error message for JSXExpressions that are comma expressions
|
2019-05-21 14:21:44 -07:00 |
|
Andrew Branch
|
77a76c157b
|
Revert "Allow synthetic identifiers to exist and give them escapedText"
This reverts commit 422b5414f1.
|
2019-05-21 09:45:08 -07:00 |
|
Andrew Branch
|
897e10a81e
|
Use range instead of two markers
|
2019-05-20 14:58:25 -07:00 |
|
Andrew Branch
|
6faeee449d
|
Don’t remove imports that are used for module augmentation, just remove their import clauses
|
2019-05-20 14:49:28 -07:00 |
|
Andrew Branch
|
0f15bda45f
|
Add failing test
|
2019-05-20 13:31:44 -07:00 |
|
Andrew Branch
|
0a3c755fc2
|
Add test
|
2019-05-20 12:26:12 -07:00 |
|
Andrew Branch
|
422b5414f1
|
Allow synthetic identifiers to exist and give them escapedText
|
2019-05-20 12:02:52 -07:00 |
|
Andrew Branch
|
67a9029fdf
|
Update existing baseline
|
2019-04-25 17:35:21 -07:00 |
|
Andrew Branch
|
0eb286274d
|
Update error code in baseline
|
2019-04-25 17:31:25 -07:00 |
|
Andrew Branch
|
e81fa2198d
|
Emit error on class fields named "constructor"
|
2019-04-25 17:30:41 -07:00 |
|
Andrew Branch
|
9f601ff154
|
Change error code
|
2019-04-25 16:15:00 -07:00 |
|
Andrew Branch
|
b1b0a821f2
|
Add baselines
|
2019-04-25 15:56:24 -07:00 |
|
Andrew Branch
|
c5e6913ede
|
Add grammar error on quoted constructors for TS 3.5
|
2019-04-25 15:44:23 -07:00 |
|
Andrew Branch
|
72f30a8308
|
Add test for quoted constructors
|
2019-04-25 11:35:10 -07:00 |
|
Andrew Branch
|
89497fcac9
|
Don’t use checkExpressionCached when checking spread element inside a loop
|
2019-04-24 14:15:58 -07:00 |
|
Andrew Branch
|
7ba1c8aba2
|
Exclude everything in tests
|
2019-04-24 11:35:37 -07:00 |
|
Andrew Branch
|
48f038067e
|
Add crashing test
|
2019-04-24 11:35:18 -07:00 |
|
Andrew Branch
|
fc7b7c83b3
|
Exclude tests/cases from tslint
|
2019-04-24 10:41:17 -07:00 |
|
Andrew Branch
|
956436853e
|
Fix crash getting error for type alias index signature without a type
|
2019-04-24 10:35:23 -07:00 |
|
Andrew Branch
|
973c3cac8d
|
When unidirectionally merging symbols, do so recursively
|
2019-04-24 09:07:08 -07:00 |
|
Andrew Branch
|
eff3960020
|
Fix baseline file name changes
|
2019-04-24 08:52:07 -07:00 |
|
Andrew Branch
|
d69f9f3328
|
Add bad test case
|
2019-04-24 08:44:24 -07:00 |
|
Andrew Branch
|
3e30a7c2ad
|
Remove all but one server unit test
|
2019-04-23 16:45:08 -07:00 |
|
Andrew Branch
|
e28b9b2ba2
|
Copy smartSelect tests to fourslash
|
2019-04-23 16:41:59 -07:00 |
|
Andrew Branch
|
6fc2e4a32e
|
Add custom baseline format for smart selection
|
2019-04-23 15:34:01 -07:00 |
|
Andrew Branch
|
f2ec02b971
|
Add additional test to ensure merging more than augmentations still works
|
2019-04-23 13:26:00 -07:00 |
|
Andrew Branch
|
7409a04010
|
Fix merging module augmentations to pattern ambient modules
|
2019-04-23 12:06:56 -07:00 |
|
Andrew Branch
|
f0a3d2bf92
|
Filter out zero-width selections
|
2019-04-19 09:44:42 -07:00 |
|
Andrew Branch
|
95fb694eed
|
Consistify tabs/spaces in test and baselines
|
2019-04-19 08:58:29 -07:00 |
|
Andrew Branch
|
b472e9a9c4
|
Add baselines for new tests
|
2019-04-18 18:08:37 -07:00 |
|
Andrew Branch
|
6177596c27
|
Revert accidental submodule change I guess
|
2019-04-18 17:52:09 -07:00 |
|
Andrew Branch
|
99ace033bf
|
Revert accidental line ending change
|
2019-04-18 17:23:54 -07:00 |
|
Andrew Branch
|
511cc79642
|
Revert accidental line break added
|
2019-04-18 17:21:52 -07:00 |
|
Andrew Branch
|
12492a369e
|
Rename test to match
|
2019-04-18 16:28:12 -07:00 |
|
Andrew Branch
|
d8936fd290
|
Rename to be smarter
|
2019-04-18 16:23:06 -07:00 |
|
Andrew Branch
|
f0f7d82d7a
|
Remove debug info
|
2019-04-18 16:05:08 -07:00 |
|
Andrew Branch
|
5479893f00
|
Skip lone variable declarations
|
2019-04-18 16:05:08 -07:00 |
|
Andrew Branch
|
fed910fd0c
|
Add stop for JSDoc comments
|
2019-04-18 16:05:08 -07:00 |
|
Andrew Branch
|
d73eabd35a
|
Special rules for binding elements, extend brace/whitespace logic to other kinds of bookended lists
|
2019-04-18 16:05:08 -07:00 |
|
Andrew Branch
|
74fc84ff84
|
Snap to nodes directly behind the cursor, create special rules for ParameterNodes
|
2019-04-18 16:05:07 -07:00 |
|
Andrew Branch
|
4ecdc82736
|
Solidify fake tree approach
|
2019-04-18 16:05:07 -07:00 |
|
Andrew Branch
|
fcb7f0152f
|
Rethink sibling expansion by creating fake subtrees
|
2019-04-18 16:05:07 -07:00 |
|
Andrew Branch
|
70e2672ab3
|
Add rules for expanding selection to sibling nodes
|
2019-04-18 16:05:07 -07:00 |
|
Andrew Branch
|
0f7bc02892
|
Move to language service
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
61425cb304
|
Move most logic to separate file
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
0a4ef0f630
|
Distinguish between same-line and different-line braces
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
039487c84e
|
Also skip TemplateHeads
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
fd88e52252
|
Start imports
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
e62c2333eb
|
Add support for string literals
|
2019-04-18 16:05:06 -07:00 |
|
Andrew Branch
|
f98c00ab9d
|
Add more tests, special handling for mapped types
|
2019-04-18 16:05:05 -07:00 |
|
Andrew Branch
|
af3d0f0248
|
Start smart select API
|
2019-04-18 16:05:05 -07:00 |
|
Andrew Branch
|
680d18207c
|
Add tests for destructuring from variable with inferrable type
|
2019-04-18 12:01:11 -07:00 |
|
Andrew Branch
|
af498eb6ca
|
Clean up synthetic binding name creation and discriminating
|
2019-04-18 11:50:26 -07:00 |
|
Andrew Branch
|
e7fb18e395
|
Handle case where you have to add a destructuring after a try/catch block
|
2019-04-18 11:36:47 -07:00 |
|
Andrew Branch
|
92f0ac7efc
|
Remove unnecessary change
|
2019-04-17 18:48:01 -07:00 |
|
Andrew Branch
|
08bb58b0c1
|
Enable renaming object binding patterns when needed
|
2019-04-17 18:43:01 -07:00 |
|
Andrew Branch
|
ef18453166
|
Add tests for binding elements that need to be renamed
|
2019-04-17 18:43:01 -07:00 |
|
Andrew Branch
|
42c9b47add
|
Fix let/const selection for binding patterns
|
2019-04-17 18:43:01 -07:00 |
|
Andrew Branch
|
06c8506f96
|
Add new baselines
|
2019-04-17 18:43:01 -07:00 |
|
Andrew Branch
|
4c73b2e7bd
|
Basic support for binding patterns in async/await code fix
|
2019-04-17 18:43:00 -07:00 |
|
Andrew Branch
|
786753d13f
|
Use suggestion instead of ignoring UMD global access
|
2019-04-08 09:46:48 -07:00 |
|