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

Reuse settings in contributes.configuration section of extension's package.json #97662

Closed
mcsknp opened this issue May 13, 2020 · 1 comment
Closed
Assignees

Comments

@mcsknp
Copy link

mcsknp commented May 13, 2020

When define available configurations for extension in contributes.configuration section of package.json, I can't reuse some properties for other like definitions in JSON schema.
As below:

{
    // ...
    "contributes": {
        // ...
        "configuration": {
            "definitions": {
                "something": {
                    // ...
                }
            },
            "someconfig": {
                "$ref": "#/definitions/something" // or anyway to reference to above definitions
            }
            // ...
        }
        // ...
    }
    // ...
}
@aeschli
Copy link
Contributor

aeschli commented May 13, 2020

The configuration extension point only supports a subset of JSON schema: See https://code.visualstudio.com/api/references/contribution-points#Configuration-property-schema.

$ref is not part of it.

I made it more explicit with microsoft/vscode-docs@7108f81

We can allow the use of refs when we support when we support "$id" references. #92042

duplicate of #81782

@aeschli aeschli closed this as completed May 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants