mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 02:26:04 +00:00
Settings editor - descriptions cleanup #54690
This commit is contained in:
parent
a7d9853ffe
commit
dbc42c3fe9
|
@ -361,17 +361,17 @@ const editorConfiguration: IConfigurationNode = {
|
|||
'editor.find.seedSearchStringFromSelection': {
|
||||
'type': 'boolean',
|
||||
'default': EDITOR_DEFAULTS.contribInfo.find.seedSearchStringFromSelection,
|
||||
'description': nls.localize('find.seedSearchStringFromSelection', "Controls if we seed the search string in Find Widget from editor selection.")
|
||||
'description': nls.localize('find.seedSearchStringFromSelection', "Controls whether the search string in the Find Widget is seeded from the editor selection.")
|
||||
},
|
||||
'editor.find.autoFindInSelection': {
|
||||
'type': 'boolean',
|
||||
'default': EDITOR_DEFAULTS.contribInfo.find.autoFindInSelection,
|
||||
'description': nls.localize('find.autoFindInSelection', "Controls if the Find in Selection flag is turned on when multiple characters or lines of text are selected in the editor.")
|
||||
'description': nls.localize('find.autoFindInSelection', "Controls whether the Find in Selection flag is turned on when multiple characters or lines of text are selected in the editor.")
|
||||
},
|
||||
'editor.find.globalFindClipboard': {
|
||||
'type': 'boolean',
|
||||
'default': EDITOR_DEFAULTS.contribInfo.find.globalFindClipboard,
|
||||
'description': nls.localize('find.globalFindClipboard', "Controls if the Find Widget should read or modify the shared find clipboard on macOS."),
|
||||
'description': nls.localize('find.globalFindClipboard', "Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),
|
||||
'included': platform.isMacintosh
|
||||
},
|
||||
'editor.wordWrap': {
|
||||
|
|
|
@ -848,7 +848,7 @@ export class SettingsRenderer implements IRenderer {
|
|||
template.labelElement.title = titleTooltip;
|
||||
|
||||
let enumDescriptionText = '';
|
||||
if (element.setting.enumDescriptions && element.setting.enum && element.setting.enum.length < SettingsRenderer.MAX_ENUM_DESCRIPTIONS) {
|
||||
if (element.valueType === 'string' && element.setting.enumDescriptions && element.setting.enum && element.setting.enum.length < SettingsRenderer.MAX_ENUM_DESCRIPTIONS) {
|
||||
enumDescriptionText = '\n' + element.setting.enumDescriptions
|
||||
.map((desc, i) => desc ?
|
||||
` - \`${element.setting.enum[i]}\` :
|
||||
|
|
Loading…
Reference in a new issue