提交 7637cec0 编写于 作者: R Rob Lourens

Settings editor - show enumDescriptions in old settings editor

上级 d7abec3a
......@@ -856,6 +856,16 @@ class SettingsContentBuilder {
setting.descriptionRanges.push({ startLineNumber: this.lineCountWithOffset, startColumn: this.lastLine.indexOf(line) + 1, endLineNumber: this.lineCountWithOffset, endColumn: this.lastLine.length });
}
if (setting.enumDescriptions && setting.enumDescriptions.some(desc => !!desc)) {
setting.enumDescriptions.forEach((desc, i) => {
if (desc) {
this._contentByLines.push(` // - ${setting.enum[i]}: ${desc}`);
} else {
this._contentByLines.push(` // - ${setting.enum[i]}`);
}
});
}
let preValueConent = indent;
const keyString = JSON.stringify(setting.key);
preValueConent += keyString;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册