提交 40a902c9 编写于 作者: R Rob Lourens

Multiline markdownEnumDescription should not break split json settings editor

Fix #110840
上级 a7b12670
......@@ -996,7 +996,9 @@ class SettingsContentBuilder {
`${displayEnum}: ${fixSettingLink(desc)}` :
displayEnum;
this._contentByLines.push(`${indent}// - ${line}`);
const lines = line.split(/\n/g);
lines[0] = ' - ' + lines[0];
this._contentByLines.push(...lines.map(l => `${indent}// ${l}`));
setting.descriptionRanges.push({ startLineNumber: this.lineCountWithOffset, startColumn: this.lastLine.indexOf(line) + 1, endLineNumber: this.lineCountWithOffset, endColumn: this.lastLine.length });
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册