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

dataModelObjects and conversionMetadata in templates #163

Merged
merged 3 commits into from
Sep 23, 2023
Merged

Conversation

smithgp
Copy link
Contributor

@smithgp smithgp commented Sep 15, 2023

What does this PR do?

Adds optional conversionMetadata field to datasetFiles in template-info.json, including validation, code-completion, and definition (CMD+click) support to the related file.

Add dataModelObjects to template-info.json, including validation, and code-completion, quick-fix, and definition support on the dataset field.

These features are currently in pilot in Winter '24 release.

Also, unrelated, fixes a json schema issue with name being required in backgroundImages in layout.json.

What issues does this PR fix or reference?

Fixes @W-14039520.

This feature is currently in pilot in Winter '24 release.
This feature is currently in pilot in Winter '24 release.

This includes schema support, and validation, code-completion, quick fix and
definition support on the `dataset` field.
@smithgp smithgp self-assigned this Sep 15, 2023
@@ -35,42 +34,3 @@ export class LayoutVariableCodeActionProvider extends VariableRefCodeActionProvi
return undefined;
}
}

/** Provide quick fixes for unrecognized variable tile keys in layout.json's. */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refactored this into shared code in util/actions.ts below.

@@ -367,15 +400,6 @@ export class TemplateDirEditing extends Disposable {
providedCodeActionKinds: LayoutVariableCodeActionProvider.providedCodeActionKinds
}),

// hookup quick fixes for variable tile keys in layout.json's
vscode.languages.registerCodeActionsProvider(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now handled by the common FuzzyMatchCodeActionProvider registration above.

@smithgp smithgp requested a review from a team September 15, 2023 19:51
@smithgp smithgp merged commit 6c29554 into develop Sep 23, 2023
4 checks passed
@smithgp smithgp deleted the gps/more-dmos branch September 23, 2023 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants