Commit Graph
100 Commits
Author SHA1 Message Date
Ben Lichtman a4430f7baf Update tests to be more precise 2020-03-06 12:41:00 -08:00
Ben Lichtman 384f526637 Update baselines 2020-03-06 09:44:28 -08:00
Ben Lichtman 0ed21e34ed Fix file exists check for watch program 2020-03-06 09:44:16 -08:00
Ben Lichtman 2dd89ca57b Use deepEqual in tests for clarity 2020-01-28 11:30:23 -08:00
Ben Lichtman e479a9f679 Respond to CR 2020-01-24 16:23:54 -08:00
Ben Lichtman 8c18c7683a Add tests 2020-01-24 16:02:14 -08:00
Ben Lichtman f047111c64 Track changes to redirect info 2020-01-24 15:15:05 -08:00
Ben Lichtman 703685318c Merge branch 'master' into redirectInfo 2020-01-23 14:12:01 -08:00
Ben Lichtman 09528dd6d6 Add tests 2020-01-23 14:10:37 -08:00
Ben Lichtman c9c3792747 Produce redirect info about files when requested 2020-01-23 12:32:36 -08:00
Ben Lichtman d59c6f3e6a Make unchecked property assertion optional 2020-01-07 14:40:47 -08:00
Ben Lichtman 509d243ea5 Add test 2020-01-07 13:07:52 -08:00
Ben Lichtman 49f7f2532c Rename new property 2020-01-07 13:02:21 -08:00
Ben Lichtman 1bc387938a Add property for unchecked completions 2020-01-07 10:59:19 -08:00
Ben Lichtman 9f1e389441 Remove unnecessary internal tags, handle bad input 2019-12-18 10:44:40 -08:00
Ben Lichtman 42dc4155ce Refactor to make failure messages more consistent 2019-12-17 17:41:38 -08:00
Ben Lichtman 925582d034 Add asserts to narrow down position issue 2019-12-17 17:04:54 -08:00
Ben Lichtman 65561a89dd fix assertion condition 2019-10-18 09:18:16 -07:00
Ben Lichtman fcdd5bd782 Add assertion when classification has unexpected length 2019-10-10 16:28:41 -07:00
Ben Lichtman 3646809ecd Move helper function outside class 2019-08-07 09:46:49 -07:00
Ben Lichtman c0f187a4e8 Allow compile on save with decorator emit 2019-08-06 13:39:18 -07:00
Ben Lichtman 0cab79fc56 Add test 2019-08-02 15:56:01 -07:00
Ben Lichtman 5233bcc064 Avoid compile on save for declaration files 2019-08-02 15:53:54 -07:00
Benjamin Lichtman d3b6ba557a Change test instead of behavior 2019-05-31 14:46:15 -07:00
Benjamin Lichtman 7ac5fa783b Refactor and add wildcard scenario 2019-05-31 11:24:54 -07:00
Benjamin Lichtman 6b92ccaffa Respond to CR 2019-05-30 17:22:12 -07:00
Benjamin Lichtman a30cacb562 Add test 2019-05-30 16:56:27 -07:00
Benjamin Lichtman 8c443b1481 Stop invalidating resolution when file stays open 2019-05-30 15:05:53 -07:00
Benjamin Lichtman 2c50ed3089 Respond to CR 2019-01-14 17:05:25 -08:00
Benjamin Lichtman c88016d397 Fix comment 2019-01-11 14:52:47 -08:00
Benjamin Lichtman d029fae35c Add user preference to opt-in to renaming import paths 2019-01-11 14:45:08 -08:00
Benjamin Lichtman cb57f17aba Simplify approach 2018-12-31 16:25:26 -08:00
Benjamin Lichtman 28e68a6891 Fix spelling of convertible 2018-12-31 16:00:24 -08:00
Benjamin Lichtman 048d04684b use existing util functions 2018-12-31 15:56:54 -08:00
Benjamin Lichtman bb2f300191 Add test 2018-12-31 15:15:47 -08:00
Benjamin Lichtman 34970d8a69 give jsdoc outline span before func exp assigned to var 2018-12-31 15:10:22 -08:00
Benjamin Lichtman a266131928 Add test 2018-12-31 14:43:56 -08:00
Benjamin Lichtman 6c34520281 Use normal start for spans for args 2018-12-31 14:37:31 -08:00
Benjamin Lichtman adcb278272 Add test 2018-12-31 14:11:08 -08:00
Benjamin Lichtman b466336a3e Add class expression to set of nodes for outlining 2018-12-31 14:04:48 -08:00
Benjamin Lichtman 2dd6e20ef9 Only provide suggestion for outermost async fix 2018-12-31 11:50:40 -08:00
Benjamin Lichtman c46090b8dc Show template literal in navtree function call args 2018-12-27 17:43:56 -08:00
Benjamin Lichtman 2ebd986d99 Always await expression of promise type in return position 2018-10-05 09:59:22 -07:00
Benjamin Lichtman b850b3b88f Update test name 2018-09-18 10:26:12 -07:00
Benjamin Lichtman b484370dcc Clean up for type precision and clarity 2018-09-18 09:34:08 -07:00
Benjamin Lichtman b2378ca40c Stop adding name of function being fixed and update baseline 2018-09-17 16:33:32 -07:00
Benjamin Lichtman 76b0b2f1e8 Add test 2018-09-17 16:23:52 -07:00
Benjamin Lichtman a73b561dd3 Ensure name for callback is generated even when it has no args 2018-09-17 16:23:47 -07:00
Benjamin Lichtman 0995869377 Stop creating empty identifier name 2018-09-17 15:53:15 -07:00
Benjamin Lichtman e90679ce6b Add baseline 2018-09-17 15:52:59 -07:00
Benjamin Lichtman 1a3ff452c1 Respond to CR 2018-09-17 15:44:08 -07:00
Benjamin Lichtman 830b387765 No longer specially recognize underscore and update baselines 2018-09-17 14:34:31 -07:00
Benjamin Lichtman ad43020c8b Add tests 2018-09-17 11:33:47 -07:00
Benjamin Lichtman 1b9507ad06 Wrap expressions returned from promises in awaits when appropriate 2018-09-17 11:33:28 -07:00
Benjamin Lichtman 0016fd72f7 Add test 2018-09-17 09:48:24 -07:00
Benjamin Lichtman f9072621a9 Run callback as expression statement when no arg to assign to exists 2018-09-17 09:48:19 -07:00
Benjamin Lichtman 32cb9ece8b Add test 2018-09-14 17:20:46 -07:00
Benjamin Lichtman 9e1a05c9ec Handle function assigned to binding pattern 2018-09-14 17:20:41 -07:00
Benjamin Lichtman 853afd9d56 Add test 2018-09-14 16:34:17 -07:00
Benjamin Lichtman 2c881fd90a Report diagnostic on expression name if it exists 2018-09-14 16:34:16 -07:00
Benjamin Lichtman 98055ad540 Use separate map with smaller scope to track renames 2018-09-14 09:46:58 -07:00
Benjamin Lichtman 57a6dbd6fa Add clarifying comments 2018-09-14 08:50:18 -07:00
Benjamin Lichtman e700022cef Remove unnecessary case 2018-09-13 09:46:40 -07:00
Benjamin Lichtman d12110d3e5 Respond to CR 2018-09-13 09:32:38 -07:00
Benjamin Lichtman 504b5f2985 Add and update tests 2018-09-13 09:04:52 -07:00
Benjamin Lichtman 905578cf37 Use existing identifier when possible for renaming functions 2018-09-13 09:02:02 -07:00
Benjamin Lichtman 95e5f7d55a Add and update tests 2018-09-12 14:47:13 -07:00
Benjamin Lichtman 906fbae37b Handle promise handler block bodies with no return and other cleanup 2018-09-12 14:47:06 -07:00
Benjamin Lichtman 9079df1a4d Update baselines 2018-09-11 11:12:11 -07:00
Benjamin Lichtman 92edc2db56 [WIP] Record original name of renamed variable 2018-09-11 11:12:11 -07:00
Benjamin Lichtman a4c87df821 [WIP] Use original identifier name to count up from when renaming collisions 2018-09-11 11:12:11 -07:00
Benjamin Lichtman 7466ac1cd5 [WIP] add test 2018-09-11 11:12:10 -07:00
Benjamin Lichtman 8c9e8666ed Miscellaneous cleanup 2018-09-11 11:12:10 -07:00
Benjamin Lichtman 95d57885c5 Ensure diagnostic reporting matches code fix ability 2018-09-07 14:14:01 -07:00
Benjamin Lichtman f7f5b1ac87 Don't case on type node 2018-09-05 16:28:53 -07:00
Benjamin Lichtman 5a72da76c2 Only perform async refactor if it won't delete code 2018-09-05 16:27:14 -07:00
Benjamin Lichtman 64bbf8925c Allow for undefined in type 2018-08-30 16:53:46 -07:00
Benjamin Lichtman f4765a6ea3 Fix error introduced by rebase 2018-08-29 15:56:22 -07:00
Benjamin Lichtman bb892d951d Use non-diagnostics-producing typechecker to get type 2018-08-29 15:54:19 -07:00
Benjamin Lichtman 97e539339d Add comment explaining special casing 2018-08-29 15:53:34 -07:00
Benjamin Lichtman 3ad6a66e69 Add tests and validate diagnostic spans 2018-08-29 15:53:05 -07:00
Benjamin Lichtman 158f0b0c0b Allow codefix to apply to function expression in variable declaration 2018-08-29 15:52:35 -07:00
Benjamin Lichtman cc4e1f833e Look for correct description 2018-08-29 15:50:34 -07:00
Benjamin Lichtman d21c078363 Test for existence of diagnostic when running tests 2018-08-29 15:49:48 -07:00
Benjamin Lichtman 5c7b47e6e3 Pass sourceFile as appropriate 2018-07-09 08:54:57 -07:00
Benjamin Lichtman 2c14bf1d59 Add test 2018-06-29 17:12:06 -07:00
Benjamin Lichtman 6f68652f2a Only include attribute span if one or more 2018-06-29 17:12:05 -07:00
Benjamin Lichtman 3ca4c23e4c Add outlining regions for jsxelements and jsxattributes 2018-06-29 17:12:05 -07:00
Benjamin Lichtman ba8bc55907 Make regexp a constant 2018-06-29 11:51:56 -07:00
Benjamin Lichtman f0e5056063 Add test 2018-06-29 11:34:58 -07:00
Benjamin Lichtman 699186083b Stop including region delimiter comments in comment fold regions 2018-06-29 11:34:58 -07:00
Benjamin Lichtman c6bab0f395 Remove redundant null assertion 2018-06-04 09:20:49 -07:00
Benjamin Lichtman 80dbaf90c6 Make tag readonly 2018-06-01 16:03:04 -07:00
Benjamin Lichtman 4f4759590b Always get latest tag of types-registry 2018-06-01 15:52:19 -07:00
Benjamin Lichtman 8f14e24575 Remove second get call 2018-06-01 15:32:23 -07:00
Benjamin Lichtman 34cee162ed Replace has with get and check undefined 2018-06-01 15:21:22 -07:00
Benjamin Lichtman e9cddd471d Add test 2018-06-01 14:21:21 -07:00
Benjamin Lichtman 45f9370997 Handle installed package missing from registry 2018-06-01 14:11:45 -07:00
Benjamin Lichtman ee5e8e3eee Ensure proper JSON writing behavior of timestamps 2018-01-11 12:58:21 -08:00
Benjamin Lichtman 05a6f343f7 Update test 2017-12-28 13:10:32 -08:00