prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Load a specific system-objecttype-extensions.xml

Open carey opened this issue 2 years ago • 2 comments

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

Code assistance using the generated system-objecttype-extensions.d.ts works well, except that we have a couple of LINK cartridges imported into our workspace, and one of them gets used instead of our own system object XML.

Describe the solution you'd like

I'd like to be able to pick up a specific system-objecttype-extensions.xml file, or multiple files, so that all our custom properties are present when editing code. This could be though configuration, or just by knowing where to put our file so that it gets picked up before external LINK cartridges.

Describe alternatives you've considered

We could delete the other XML files, but we're using Git submodules in some cases so this is a lot of work, and we'd prefer not to modify the upstream code at all.

carey avatar Dec 14 '21 03:12 carey

Hi @carey Another options is to add extra files into files.exclude list in for VSCode or rename extra system-objecttype-extensions.xml to different name, for instance system-objecttype-extensions-example.xml

Introducing another configuration may confuse users of prophet (even at this moment amount of configs confuses people)

SqrTT avatar Dec 14 '21 08:12 SqrTT

Thanks, using files.exclude for files that I can’t delete or rename for any reason is the workaround I need for now.

It would be nice to have a way to know which file is used when there a multiple ones, in the future, even if it's just the first one alphabetically and I can name my folders correctly.

carey avatar Dec 14 '21 21:12 carey