-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Reload Without User Extensions #5764
Comments
Comment by lkcampbell FYI, one of the big chunks of code, the function _disableCache() in main.js, has not been changed, it has only been moved to the top of the file to avoid a JSLint error, so disregard that part of the diff. |
Comment by lkcampbell This PR replaces PR #5620. |
Comment by redmunds I notice that extensions in the src/extensions/dev folder are still loaded in "Reload Without User Extensions" mode. Seems like they should not be loaded either. |
Comment by lkcampbell
|
Comment by redmunds I notice that Menus.js is using CollectionUtils (which is deprecated in favor of lodash) when removing MenuItems. You can see warnings in console log. This should be cleaned up either in this pull request or split into a separate one. |
Comment by redmunds This functionality should be mentioned in the documentation. Here are a couple places that come to mind:
|
Comment by lkcampbell Updating Menus.js to use lodash instead of CollectionUtils: Done. |
Comment by lkcampbell Another piece of documentation that needs to be updated: The How to Report an Issue Extension bugs section Do you want me to make these changes now or after the next Sprint release? |
Comment by lkcampbell
|
Comment by redmunds
Good point. These changes should be done right after next Sprint Release. |
Comment by lkcampbell
|
Comment by redmunds Done with final pass through the code. 1 more comment. |
Comment by redmunds Also, I just submitted pull request adobe/brackets-shell#407 to fix menu drawing performance on Windows. Not sure if you noticed this, but on Windows you can watch each menu being removed one at a time because the menu is redrawn for every menu item removed (which really slows down performance). This is not a common or time-critical operation, so it's not required for this pull request, but I'd like to get it in the same Sprint. Let me know if you want to review that one. |
Comment by lkcampbell
|
Comment by lkcampbell
|
Comment by redmunds Looks good. Thanks for sticking with this complicated issue! Merging. |
Comment by ishan1608 "Extension Manager" is disabled when reloaded for NO Extensions, but the menu item "Reload Without User Extensions" is still there and not disabled. Doesn't it makes more sense to disable that too ? |
Comment by redmunds
|
Comment by ishan1608
|
Comment by redmunds
So, if you use "Reload Without User Extensions" and then do something that requires a reload (such as make an update to your system externally from Brackets), then you may want to "Reload Without User Extensions" again to refresh your system, but not load user extensions. Hope that makes sense. If you have any suggestions on how to improve this, then your feedback is welcome. |
Comment by njx Part of the problem might be that it's not obvious that "Reload Brackets" will turn extensions back on again. Should we consider making it so that menu item changes its name to "Reload With Extensions" when we're in safe mode? |
Comment by ishan1608
I am just pitching the previously stated idea here. I was expecting this to be a feature since I started using brackets. And the original idea seemed more practical to me as most of us use keyboard shortcuts instead of going to menus. |
Comment by redmunds "Reload Brackets" and shutdown/restart are only slightly different, so I am not sure that they were intended to be handled differently. I, personally, considered them to be synonymous in this context. One missing piece to this puzzle is that we plan to provide a UI in the Extension Manager for explicitly enabling and disabling individual extensions. These settings will persist across sessions. Do you agree that this will be even better than the behavior that you are describing? If so, is the current behavior ok as it is? If you think a SAFE MODE is important, then it seems like it should persist across shutdown/restart. |
Comment by ishan1608
What I suggest is to have the feature of enabling/disabling extensions with persistence across different sessions. And we should also have the "Reload Without User Extensions" feature. Just the modification in this feature is that when once in the No User Extension mode, the menu item Reload Without User Extensions should be disabled. The Reload Brackets (F5) menu item should be modified to behave as Reload Without User Extensions. And when the user shutdown/restart the behavior of Reload Brackets (F5) goes back to the norm of reloading with extensions. |
Comment by peterflynn
You mentioned the risk that users might forget that they're in the mode where extensions are disabled -- but that actually seems to argue more for the behavior in the pull request, where it's easier to turn extensions back on. (I'm not terribly worried about users having this issue though). It seems simpler technically to leave this as is, and also less confusing to avoid having the menu items' meanings juggle around after disabling extensions. |
Comment by ishan1608
|
Comment by lkcampbell
|
Comment by MarcelGerber My opinion: |
Comment by ishan1608 I thought that I was clear enough on what I think is better. Anyways....
I think this time it's clear enough to not have any confusions regarding what I am trying to say. As I tend to agree more with the suggestion made by Now I do realize that design decisions change with the development. And if everybody wants that there should be some option to get the extensions back on without shutdown/restart, then I think the suggestion made by |
Comment by lkcampbell
That's the point that it went from "Restart" to "Reload". It was in response to some implementation questions that |
Issue by lkcampbell
Sunday Dec 29, 2013 at 19:10 GMT
Originally opened as adobe/brackets#6334
This PR fixes issue #5078 by adding a new Debug Command: Reload Without User Extensions.
lkcampbell included the following code: https://github.com/adobe/brackets/pull/6334/commits
The text was updated successfully, but these errors were encountered: