Skip to content

Update documentation to reflect the category property in commands #1465

Open
@ccrenfroe

Description

@ccrenfroe

Is your feature request related to a problem? Please describe.

The reloading commands guide gives a good code snippet to effectively reload commands if they are all on the same file level, however it doesn't work if commands are nested in subfolders.

To build the correct file path, you will need the file name. You can use command.data.name for doing that. This does not however take into account how this would work if you had subdirectories as described earlier in the guide at Command Handling.

Additionally, reload.js handles the logic differently, using the category property to build the filepath instead. Each command seems to have this property, although the guide does not highlight this on the reloading commands or the command handling pages

Describe the solution you'd like

I believe the best solution would be to update the documentation in both command categories and reloading commands to address the category property that is added to each command when implementing the subfolders approach.

Describe alternatives you've considered

No response

Additional notes

Please let me know if more info is needed or I am erroneous in my request. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: requestSuggestion to add new or change existing content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions