-
Couldn't load subscription status.
- Fork 1.3k
[WIP] Add localtofield refactoring based on rope functionality #3825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @tonybaloney, thanks for the contribution! I'll try to help with answering questions. First, we generally work off of issues in our repo. Is there an issue that corresponds to the work that you are proposing? If there isn't one please feel free to create one and link it to this PR. As for your questions:
We would generally take contributions after there are adequate TS unit / system tests in place that fully prove out the feature (as best as possible of course) within our CI.
You've discovered the existing refactor methods! Within HTH. A bit of a heads up, our team will review new PRs from external contributors generally in the next following sprint - so we might not get to reviews until January. |
|
@d3r3kk thanks for all the pointers. I’ll raise an issue as well. |
|
|
Codecov Report
@@ Coverage Diff @@
## master #3825 +/- ##
=======================================
- Coverage 79% 79% -<1%
=======================================
Files 387 399 +12
Lines 17834 18278 +444
Branches 2879 2949 +70
=======================================
+ Hits 13974 14286 +312
- Misses 3856 3989 +133
+ Partials 4 3 -1
Continue to review full report at Codecov.
|
|
@d3r3kk Probably a silly question. But how do I get the tests to actually run? The scripts seem to have unittests and functional tests. The functional tests download the extension from a website (which is not what I want) The unittests seem to target the build version, not the source version? "test": "node ./out/test/standardTest.js && node ./out/test/multiRootTest.js",
"test:unittests": "mocha --require source-map-support/register --opts ./build/.mocha.unittests.opts",
"test:unittests:cover": "nyc --nycrc-path ./build/.nycrc npm run test:unittests",
"test:functional": "mocha --require source-map-support/register --opts ./build/.mocha.functional.opts",
"test:functional:cover": "nyc --nycrc-path ./build/.nycrc npm run test:functional",
"testDebugger": "node ./out/test/debuggerTest.js",
"testSingleWorkspace": "node ./out/test/standardTest.js",
"testMultiWorkspace": "node ./out/test/multiRootTest.js",
"testPerformance": "node ./out/test/performanceTest.js",
"testSmoke": "node ./out/test/smokeTest.js", |
|
To run them locally, you can follow the guide in our CONTRIBUTING.md document here. |
|
Closing this PR as this has been stale for over a month |

I would like to add more of the functionality of rope into this plugin. I've started with the simplest and a very useful local-to-field refactoring command in the hope of getting a little bit of guidance and then tackling more complicated refactorings (those which need user input)
I don't think this PR includes all of the required TS changes, but I couldn't find one of the existing refactor methods to use as a template so I've marked this as WIP.
What does
simpleRefactorProvider.tsdo?package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)