Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting for automatically loading schema used in minDynatraceVersion #223

Open
vbalbp opened this issue Jun 7, 2024 · 2 comments
Open
Labels
feature New functionality

Comments

@vbalbp
Copy link
Contributor

vbalbp commented Jun 7, 2024

Summary
A setting in VSCode that will run the Load schema function automatically each time the minDynatraceVersion is changed.

Details
When developing, sometimes one forgets the minDynatraceVersion has changed and will perform changes in the extension YAML that are validated, and then notice that they are actually not valid at the moment of upload, possibly causing you to have to re-factor stuff. Having the schema be loaded automatically when the version changes could potentially make development faster and easier.

Use Cases
When developing extensions, not having to care about what schema the VSCode add-on is using, as it will always use the one I have as the minDynatraceVersion would make developing much easier.

Challenges
This should be a setting in case someone wants to work as it always have, by running the Load schema function. Maybe loading it very often could have some issues, maybe performance, but I wouldn't think so.

@vbalbp vbalbp added the feature New functionality label Jun 7, 2024
@radu-stefan-dt
Copy link
Collaborator

The recommendation is to not change minDynatraceVersion manually yourself, but always through the Load schemas command.

@radu-stefan-dt
Copy link
Collaborator

radu-stefan-dt commented Jun 19, 2024

Nevertheless, should someone will have the time to implement it, it would have to be done in the onChange listener that's already hooked up to the extension which parses the extension.yaml. Before we communicate the new parsedExtension object, we have the opportunity to check if the minDynatraceVersion has changed and if so trigger async the loadSchemas function with that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

2 participants