Commit Graph
26450 Commits
Author SHA1 Message Date
csigs eb01d0c701 LEGO: check in for master to temporary branch. 2020-06-02 16:10:34 +00:00
Alexander T bc502c8c3c fix(38081): allow transforming object binding to named imports 2020-06-02 11:23:56 +03:00
1d1c1673bf add support to convert lambda to function and vice-versa (#28250)
* add skeleton

* add getAvailableActions

* add working getEditsForAction

* add multi vardecl

* fix multi decl bug

* change refactor name

* add tests for ToAnon, ToArrow and available arrow

* add tests for ToNamed and available anon

* add tests for ReturnType and available Arrow as FnParam

* fix bug modifiers by toNamed

* add tests for modifiers

* fix for tslint error

* adapt one test case

* refactor getInfo getAvailableActions

* refactor small progress

* extract creation of block

* extract creation of funcDeclaration

* make guideline compliant

* apply feedback from pr

* add testcase and apply feedback from pr

* apply feedback from pr

* add newline

* rename testcases

* Make conditions more expressive

* fix for unnecessary duplication of comment

* apply feedback from pr

* update getAvailableActions

* check if functionExpression name is used

* add more testcases

* do not provide refactoring when it contains this
because this behaves differently in arrow than in function

* exclude nested functions and classes at containingThis check

* fix linting error

* fix line endings

Co-authored-by: BigAru <arooran@indikon.ch>
Co-authored-by: bigaru <bigaru@users.noreply.github.com>
Co-authored-by: Jesse Trinity <42591254+jessetrinity@users.noreply.github.com>
Co-authored-by: Jesse Trinity <jetrinit@microsoft.com>
2020-06-01 15:26:45 -07:00
csigs db85857d2b LEGO: check in for master to temporary branch. 2020-06-01 22:10:41 +00:00
Wesley WighamandGitHub b36b803cdd Skip default when initially iterating exports in __importStar, same as __exportStar (#38808)
* Skip default when iterating exports in __importStar, same as __exportStar

* Accept baselines
2020-06-01 14:52:24 -07:00
Jesse Trinity fb3a84c4f1 fix line endings 2020-06-01 14:15:02 -07:00
Jesse TrinityandGitHub 52dad733db Merge branch 'master' into m-lambda-to-fn 2020-06-01 13:53:19 -07:00
8e290e5aae Improve error range for ts2657 (jsx expr must have parent element), add code fix for it (#37917)
* fix: range of ts2657 (jsx expr must have parent) and remove 2695 (LHS expr of comma has no side effects)

* feat: add code fix for 2657

* fix: resolve review

* chore: hoist a var

* chore: add test for skipTrivia

* fix: rebase error

* Update src/compiler/diagnosticMessages.json

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* Update src/services/codefixes/wrapJsxInFragment.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrew@wheream.io>
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-06-01 12:22:44 -07:00
Alexander TandGitHub 4f0b81d415 fix(32341): add prefix name for module exports properties (#38541) 2020-06-01 11:45:05 -07:00
Alexander TandGitHub fa49ac0b78 fix(19385): add space after brace in the multiline string template (#38742) 2020-06-01 10:30:52 -07:00
Alexander TandGitHub 68d2ee055c fix(38815): dive in arrow functions to check only this usage instead of checking all statements (#38865) 2020-06-01 10:27:11 -07:00
csigs 85cb8e14f4 LEGO: check in for master to temporary branch. 2020-06-01 16:10:38 +00:00
csigs 287cdbf079 LEGO: check in for master to temporary branch. 2020-06-01 10:10:57 +00:00
csigs cd64b13faf LEGO: check in for master to temporary branch. 2020-06-01 04:10:40 +00:00
csigs 82f84e5411 LEGO: check in for master to temporary branch. 2020-05-31 04:10:39 +00:00
csigs 7f98da0837 LEGO: check in for master to temporary branch. 2020-05-30 10:10:59 +00:00
csigs 8caaf2f01f LEGO: check in for master to temporary branch. 2020-05-30 04:10:38 +00:00
csigs 8325a0f3ea LEGO: check in for master to temporary branch. 2020-05-29 22:10:46 +00:00
Jesse Trinity ca58c0e03c fix merge conflicts 2020-05-29 14:04:07 -07:00
Jesse Trinity 06d2461cd0 convert import trigger reason only 2020-05-29 13:03:05 -07:00
Jesse Trinity a7c07d67d8 convert export cursor only changes 2020-05-29 13:02:57 -07:00
Jesse Trinity a07a79b772 remove unused test method 2020-05-29 13:02:49 -07:00
Jesse Trinity e565931392 fix up some bools 2020-05-29 13:01:33 -07:00
Jesse Trinity 85e0d8b14a add refactorNotAvailableForTriggerReason 2020-05-29 12:55:35 -07:00
Jesse Trinity f3751fbdf3 change type of RefactorTriggerReason 2020-05-29 12:54:59 -07:00
Jesse Trinity 23f4dc9bd9 use enum for RefactorTriggerReason 2020-05-29 12:49:41 -07:00
Jesse Trinity f1127e6e94 extract symbol 2020-05-29 12:45:57 -07:00
Jesse Trinity 602ee995d0 fix lint errors 2020-05-29 12:45:54 -07:00
Jesse Trinity 55880ee5e0 extractType explicitCursorRequest 2020-05-29 12:41:28 -07:00
Jesse Trinity 0296254a60 extractType 2020-05-29 12:41:22 -07:00
Jesse Trinity 1efcffc915 convertImport 2020-05-29 12:41:18 -07:00
Jesse Trinity c3828ed086 loosen convertExport conditions 2020-05-29 12:41:14 -07:00
Jesse Trinity 02fa39a6a9 enable explicit requests for addOrRemoveBracesToArrowFunction 2020-05-29 12:41:10 -07:00
Jesse Trinity bac046573f add trigger reason to protocol 2020-05-29 12:41:06 -07:00
Daniel RosenwasserandGitHub 6128f30c3b Merge pull request #38821 from a-tarasyuk/bug/23716
fix(23716): signature help of tagged template doesn't show instantiated signature
2020-05-28 17:19:23 -07:00
csigs 1507b189c6 LEGO: check in for master to temporary branch. 2020-05-28 16:10:42 +00:00
Ankit Singh BalyanandGitHub 9256b85947 Convert HTML tags in doc-comments into markdown
HTML tags in doc-comments don't get parsed properly by tools like TypeDoc,
once it encounters an open HTML tag like <b> in the comments, all the subsequent
doc-comments become bold in the generated docs.
2020-05-27 20:51:44 +02:00
BigAru fcb8e87e69 fix linting error 2020-05-27 20:47:02 +02:00
BigAru e6dc8f6c69 Merge remote-tracking branch 'upstream/master' into m-lambda-to-fn 2020-05-27 20:33:27 +02:00
csigs abf09270d4 LEGO: check in for master to temporary branch. 2020-05-27 04:10:38 +00:00
Armando Aguirre 0985afd51a Fixed uncomment bug 2020-05-26 19:26:28 -07:00
Armando Aguirre 9f03d7bad7 Use getFileAndLanguageServiceForSyntacticOperation 2020-05-26 17:34:38 -07:00
csigs 2a2bb5775b LEGO: check in for master to temporary branch. 2020-05-26 22:10:44 +00:00
Daniel RosenwasserandGitHub f2d6eda60e Merge pull request #38049 from JoshuaKGoldberg/literal-to-primitive-relation-reporting
Report primitive type in literal-to-primitive relation complaints
2020-05-26 13:18:14 -07:00
Alexander TandGitHub 6214bd29f3 fix(38722): change error message for use-before-declaration on const enum (#38728) 2020-05-26 11:53:18 -07:00
Nathan Shively-SandersandGitHub bfa1744586 Merge pull request #37894 from microsoft/always-error-on-property-override-accessor
Always error on property override accessor
2020-05-26 10:37:07 -07:00
Alexander T 6e98431cec fix(23716): show generic type in tagged template expression 2020-05-26 19:16:44 +03:00
csigs a095dde901 LEGO: check in for master to temporary branch. 2020-05-26 16:10:41 +00:00
Nathan Shively-SandersandGitHub 324d292e3d Merge pull request #38415 from Kingwl/navTree-fix
Fix trancked es5 classes after new scope
2020-05-26 09:05:17 -07:00
csigs a0d9e75fc6 LEGO: check in for master to temporary branch. 2020-05-26 10:10:35 +00:00