Skip to content

Support multiple configurations in extension editor #54116

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

Merged
merged 3 commits into from
Jul 13, 2018

Conversation

ramya-rao-a
Copy link
Contributor

Related to #54098

The CSS Language Features extensions fails to show any settings in the "Contributions" section of the extensions editor. This is because it contributes to multiple configuration targets and the editor cannot support this case

@ramya-rao-a ramya-rao-a requested a review from sandy081 July 11, 2018 23:53
@ramya-rao-a ramya-rao-a self-assigned this Jul 11, 2018
@@ -594,7 +594,13 @@ export class ExtensionEditor extends BaseEditor {
private renderSettings(container: HTMLElement, manifest: IExtensionManifest, onDetailsToggle: Function): boolean {
const contributes = manifest.contributes;
const configuration = contributes && contributes.configuration;
const properties = configuration && configuration.properties;
let properties = configuration && configuration.properties;
Copy link
Member

Choose a reason for hiding this comment

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

May be we should fix the type of contribues.configuration to be IConfiguration | IConfiguration[] and the consumers can check for the type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the type.

@sandy081
Copy link
Member

LGTM

@ramya-rao-a ramya-rao-a merged commit 8b9495d into master Jul 13, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
@alexdima alexdima deleted the settings-contrib branch June 30, 2020 06:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants