Add multiline text editors in settings editor (#127118)

Also adds an editPresentation prop with descriptions to the schema.
This commit is contained in:
Raymond Zhao
2021-07-07 14:35:16 -07:00
committed by GitHub
parent f35bf81919
commit be81d88a5e
7 changed files with 113 additions and 18 deletions

View File

@@ -81,6 +81,16 @@ const configurationEntrySchema: IJSONSchema = {
markdownDeprecationMessage: {
type: 'string',
description: nls.localize('scope.markdownDeprecationMessage', 'If set, the property is marked as deprecated and the given message is shown as an explanation in the markdown format.')
},
editPresentation: {
type: 'string',
enum: ['singlelineText', 'multilineText'],
enumDescriptions: [
nls.localize('scope.singlelineText.description', 'The value will be shown in an inputbox.'),
nls.localize('scope.multilineText.description', 'The value will be shown in a textarea.')
],
default: 'singlelineText',
description: nls.localize('scope.editPresentation', 'When specified, controls the presentation format of the string setting.')
}
}
}