-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
[status-bar & tree-view] Manual Decaf Source #707
Conversation
So in the body of the PR I've described how much of a complex mess It seems we found one of the few files where it truly matters the exact version of CoffeeScript is being used. That means I had to redecaf This unfortunately means that the file has become even less readable as a result, and now at it's All I've done to this file is add back in comments, and that's it. (Since this version of CoffeeScript drops comments entirely) |
Alright, as we have done with all other decaf PRs, tests here are happy, I'll go ahead and change the main branch over. |
Alright, with happy tests, gonna go ahead and merge this one! |
👍 on this PR in general, as per all the decaf PR's generally. But I think this PR did upset the "documentation" GitHub Actions workflow over on $ jsdoc2md --files src --configure docs/.jsdoc.json > ./docs/Pulsar-API-Documentation.md
JSDOC_ERROR: ERROR: The @example tag requires a value. File: tree-view.js, line: 1730
ERROR: The @example tag requires a value. File: tree-view.js, line: 1738 Just noting it, I can try and help fixing it once I get some other things out of the way, backlog items, etc. |
@DeeDeeG Good catch on that, yeah I didn't notice. I believe this stems from # Public: Return an array of paths from all selected items
#
# Example: @selectedPaths()
# => ['selected/path/one', 'selected/path/two', 'selected/path/three']
# Returns Array of selected item paths Into: /**
* @memberof TreeView
* @function selectedPaths
* @desc Public: Return an array of paths from all selected items
* @example
* @selectedPaths() => ['selected/path/one', 'selected/path/two', 'selected/path/three' ]
* @returns {array} Selected item paths
*/ And if I had to guess, while this is valid, and attempts to represent the same exact comment, since the comment comes from /**
* this.selectedPaths() => ['selected/path/on', 'selected/path/two', 'selected/path/three']
*/ And that will likely resolve the error. |
Alright, here's the long awaited last decaf PR for the foreseeable future.
In this PR I've gone ahead and decaffed the
source
of:status-bar
tree-view
But it feels important to mention the decaf here is light, partly because that's why most decaf PRs have gone so smoothly, but this light work is especially present in
tree-view/lib/tree-view.js
. This file is1,593
lines long, with some complex logic behind it. And rather than attempt significant decaf work, which 1. I feel would have to warrant a thorough review of this code and 2. has a very likely chance of causing breaking changes in this section of the codebase, I've instead opted to leave it nearly untouched, even so far as leaving behind the decaffination tips, for whoever in the future plans to refactor this file, which is severely needed, but as such a PR would have a significantly smaller scope, it feels much more achievable there, than it does here.(So if someone in the future, is using git blame to find out why this file is such a mess, sorry about that)
Otherwise this PR is just like all other decaf work, the diff will temporarily be using the base branch
machine-decaf-source
until such a time as all tests are passing, and hopefully with a review, then the branch will be changed tomaster
making the diff unreadable.Resolves #444