-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fixed: LanguageManager shouldn't throw exceptions #3034
Conversation
Reviewing |
|
||
var finish = function () { | ||
if (!CodeMirror.modes[mode]) { | ||
result.reject("CodeMirror mode \"" + mode + "\" is not loaded"); | ||
return; | ||
return result.promise(); |
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.
No need to return promise to the finish
callback right?
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.
Oh, absolutely right!
Initial review complete |
@jasonsanjose Thanks for the review! I fixed the problems you found. |
@jasonsanjose JSHint doesn't like my code, but JSLint does. Should we configure JSHint with "laxbreak: true" or should I update my code? Not sure how, though, I wouldn't want all this to be in one line:
|
How about this?
Looks and works in jshint.org and JSLint. |
@TomMalbran Looks good to me, thanks! |
Changes look good. Just need to fix the merge conflict. |
* text=auto | ||
src/nls/zh-cn/strings.js binary |
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.
See #3164
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.
If you omit this change here, will the merge conflicts go away? Raymond is reviewing your other pull.
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.
How do you mean? Without this change, git thinks I modified the Chinese translation and checks that in - and I don't want to mess anything up this way.
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 had the same problem when I merged last night after the translation was merged, but merging again this morning (by removing the translation file) the problem fixed by itself, the translation was properly readded.
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.
Okay, pulled a fresh master and with that I can now create new branches and check them out without git complaining.
Supposedly the Chinese translation was changed by this... I'll try rebasing. |
Looking better. |
Purified version - no more messing with .gitattributes. Thanks @TomMalbran! |
Confirmed unit tests pass after trying a test merge with master. Merging. Thanks for your patience @DennisKehrig. |
Fixed: LanguageManager shouldn't throw exceptions
Fix for #2967