Skip to content

Commit

Permalink
Also include markdownDescription in exported config
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 17, 2018
1 parent 2c74afb commit a1b5114
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export class DefaultConfigurationExportHelper {
const processProperty = (name: string, prop: IConfigurationPropertySchema) => {
const propDetails: IExportedConfigurationNode = {
name,
description: prop.description,
description: prop.description || prop.markdownDescription || '',
default: prop.default,
type: prop.type
};
Expand All @@ -751,8 +751,8 @@ export class DefaultConfigurationExportHelper {
propDetails.enum = prop.enum;
}

if (prop.enumDescriptions) {
propDetails.enumDescriptions = prop.enumDescriptions;
if (prop.enumDescriptions || prop.markdownEnumDescriptions) {
propDetails.enumDescriptions = prop.enumDescriptions || prop.markdownEnumDescriptions;
}

settings.push(propDetails);
Expand Down

0 comments on commit a1b5114

Please sign in to comment.