-
Notifications
You must be signed in to change notification settings - Fork 30k
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
'group' property is not an object literal in tasks.json #29573
Comments
The problem is that group is either a string or an object literal. Might be the problem why code complete only shows the string enums. @aeschli the property is defined as follows: const group: IJSONSchema = {
oneOf: [
{
type: 'string',
enum: ['none', 'clean', 'build', 'rebuildAll', 'test'],
default: 'none',
},
{
type: 'object',
properties: {
kind: {
type: 'string',
enum: ['none', 'clean', 'build', 'rebuildAll', 'test'],
default: 'none',
description: nls.localize('JsonSchema.tasks.group.kind', 'The task\'s execution group.')
},
isPrimary: {
type: 'boolean',
default: false,
description: nls.localize('JsonSchema.tasks.group.isPrimary', 'Defines if this task is a primary task in a group.')
}
}
}
],
description: nls.localize('JsonSchema.tasks.group', 'Defines to which execution group this task belongs to. If omitted the task belongs to no group.')
}; And how do I add documentation for the enum values defined for the string ? |
This might help: https://github.com/json-schema/json-schema/wiki/Enum |
@dbaeumer To add descriptions to the enum values, use 'enumDescriptions', as seen here Adding an enum just for the sake of proposals is not recommended as enums are used for validation. |
Testing #29442:
Intellisense on
group
property suggests only "kind" of a group, rather than an object literal withkind
andisPrimary
. Is it intended?Also no documentation on
build
kind when typing"group": "build"
.The text was updated successfully, but these errors were encountered: