League-of-Foundry-Developers / foundryvtt-devMode

A module with some tools to help enable Foundry VTT package developers.
MIT License
12 stars 15 forks source link

Option to clear compendiumConfiguration in v11 to reset Compendium Folders while testing #58

Open kristianserrano opened 1 year ago

kristianserrano commented 1 year ago

Is your feature request related to a problem? Please describe. In Foundry v11, Folder structure gets stored in core.compendiumConfiguration which doesn't update if a module modifies the folder structure in its manifest.

Describe the solution you'd like To update folders from from modules, you must clear the Compendium Configuration data. The command to do this is:

game.settings.set("core", "compendiumConfiguration", undefined)

See @cswendrowski 's comment in the Foundry VTT repo.

Having an option (e.g. a button or macro) that either clears this on demand or a setting that always clears when loading a world (is that possible?) might be useful when testing modules during development.

Describe alternatives you've considered I've created a macro for myself to do this when needed, but that could be at risk of accidentally getting lost.

Additional context None.