Reimplemented Git-FTP features after 489a60c merge#288
Reimplemented Git-FTP features after 489a60c merge#288zaggino merged 4 commits intobrackets-userland:masterfrom
Conversation
Currently it supports: - Git-FTP remote (scope) creation - Git-FTP remote deletion - Git-FTP remote selection
There was a problem hiding this comment.
lets use type="normal" and type="ftp" so we can add other types in the future
|
First review finished. Please fix the cases where you only modified the original formatting, because it's hard to review changes. Example: you changed to Please never do this. If you have some kind of extension which does this automatically - turn it off. |
|
About the formatting problems, if I use your method the linter tells me that it expects |
|
Which linter? Do you have JSHint installed? |
|
JSHint reads configuration from this file |
|
Sorry my fault, nevermind ^^" |
|
Just a little question. We have |
|
Yes, rename it. |
|
You can't use |
|
In this way them are ran one after the other, not together, and it makes the extension load in more time. Not sure this is the right solution... |
|
Ok, I'll make an API for them to run simultaneously, put there a TODO comment please. |
|
We need |
|
Btw why do you want to ignore an error? If I have ftps turned on, I don't want them to fail silently - I want to see an error dialog and submit a bug. |
|
Because is the shortest way I've found to make the But now that you make me think about it maybe I could just write something like: What do you think? |
|
Oh wait, found the solution I guess... |
|
Why don't you just do this? remotes will be always there and ftpRemotes will be there only if it was enabled |
|
Umh yes actualy in this way it's much better, thanks. |
|
Just a problem with your method, I can't know what failed of the two taks if one of them fails... Does it matter? |
|
No, it really doesn't matter, just do the normal handler maybe with an addition |
|
Problem: is wrong, because I assign the result of the two functions to promises. is even wrong because the resulting array is: and not |
|
The first case is right because |
|
yes, it doesn't work, I think the function is executed during the assignment (note the |
|
The function is executed and returns a promise which will be resolved later. is exactly the same as |
|
Just put a |
|
Can I review again / merge this? |
|
As you prefer, I'm not at office so I will not work on it till tomorrow (EU time). |
There was a problem hiding this comment.
Why there's this check for gitFtpEnabled and again lower at line 15?
|
I'm reading the diff wrong or have this disappeared completely? |
|
#288 (comment) looks like it's disappeared, I've almost replaced the entire |
|
Ok, I'll merge this today so you can continue tomorrow. |
|
Thanks :) |
|
@FezVrasta done, see #294 for details. |
Currently it supports:
There is a lot to rewrite and fix, will wait for your first review to proceed.