-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
This is an initial PR for #8788 |
Here are two examples I have of the new extension APIs in use: |
Also adds a couple of missing test files.
var EVENT_CHANGE = "change"; | ||
|
||
/** | ||
* Determine if an entry from the treeData map is a directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the naming and comment are a bit confusing. We are checking for a directory, but the method is called isFile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good catch! I've changed the comment.
I've addressed the review comments so far. As soon as splitview lands on master, I will rebase on top of master and make a new pull request targeting master. |
Here's my current list of issues/things to test that I'm looking into:
|
/** | ||
* Returns false for files and directories that are not commonly useful to display. | ||
* | ||
* @param {FileSystemEntry} entry File or directory to filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we should use {!FileSystemEntry}
to indicate that the parameter can not be null.
* | ||
* @param {string} path path to create | ||
* @param {boolean} isFolder true if the new entry is a folder | ||
* @return {Promise} resolved when the file or directory has been created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for consistency we should either use {jQuery.Promise}
or {Promise} all over the place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched to {jQuery.Promise}
since that's what we're using now.
…s-git. brackets-git needs to apply class changes to the tree *after* running git status. Since that happens asynchronously, brackets-git needs some way to signal that a change has occurred. The solution here is a new "forceRefresh" that causes the entire tree to re-render. (Not optimally efficient, but React still minimizes actual DOM changes.)
Closing this in favor of #9015, because I've addressed the review comments here. |
Note that this pull request is based on jeff/splitview-1x2. I'll make a new PR once that is merged into master.
cc @ingorichter