contextive icon indicating copy to clipboard operation
contextive copied to clipboard

Support multiple definition files in a single repository

Open chrissimon-au opened this issue 1 year ago • 0 comments

It should be possible to 'split' a definitions file into multiple files even in a single repo (monorepo) configuration, so that teams that 'own' a context and also 'own' a folder structure within the monorepo can keep their definitions local to their context code and own the file containing their definitions.

Some initial ideas for how to implement this:

  • Add an 'import' mechanism to the central definitions file. Other files can be located wherever and can be 'imported' via a relative path into the overall definitions structure
  • Update the contextive.path setting to be a contextive.paths setting which lists a set of files to be loaded by contextive
  • A more convention oriented approach where the whole folder structure is scanned for a well defined filename (e.g. definitions.yml or contextive.yml so it would just be a matter of creating a file anywhere with the correct filename and it would get picked up

Related Tickets

This is related to #39, however that ticket is more focussed on supporting the multi-root workspace in VSCode, which carries with it extra considerations around handling scoped settings and resources. However, the facility to at least handle definitions coming from multiple files will likely support the implementation of #39.

chrissimon-au avatar Jun 20 '23 09:06 chrissimon-au