Issue by lkcampbell
Thursday Apr 17, 2014 at 15:04 GMT
Originally opened as adobe/brackets#7556
We have a bunch of constants in the Commands module that are prefixed with menu names. For example: Commands.FILE_NEW_FOLDER.
This is a maintenance hassle when moving commands from one menu to another.
Consider changing all Commands module constant names to have a prefix of CMD_ instead. For example: Commands.CMD_NEW_FOLDER.
See adobe/brackets#7488 as a concrete example of this problem.
IMPORTANT NOTE: This solution has some serious backwards compatibility problems associated with it. Even if the core code is updated there may be many extensions that rely on these constant names. We need to come up with some sort of deprecation strategy to warn extension authors. Currently, we do not have a good way to deprecate data values.
Thursday Apr 17, 2014 at 15:04 GMT
Originally opened as adobe/brackets#7556
We have a bunch of constants in the Commands module that are prefixed with menu names. For example:
Commands.FILE_NEW_FOLDER.This is a maintenance hassle when moving commands from one menu to another.
Consider changing all Commands module constant names to have a prefix of
CMD_instead. For example:Commands.CMD_NEW_FOLDER.See adobe/brackets#7488 as a concrete example of this problem.
IMPORTANT NOTE: This solution has some serious backwards compatibility problems associated with it. Even if the core code is updated there may be many extensions that rely on these constant names. We need to come up with some sort of deprecation strategy to warn extension authors. Currently, we do not have a good way to deprecate data values.