We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a853936 commit 61b42a3Copy full SHA for 61b42a3
src/vs/workbench/contrib/preferences/browser/settingsTree.ts
@@ -2130,7 +2130,8 @@ function cleanRenderedMarkdown(element: Node): void {
2130
}
2131
2132
function fixSettingLinks(text: string, linkify = true): string {
2133
- return text.replace(/`#([^#]*)#`|'#([^#]*)#'/g, (match, settingKey) => {
+ return text.replace(/`#([^#]*)#`|'#([^#]*)#'/g, (match) => {
2134
+ const settingKey = match.substring(2, match.length - 2);
2135
const targetDisplayFormat = settingKeyToDisplayFormat(settingKey);
2136
const targetName = `${targetDisplayFormat.category}: ${targetDisplayFormat.label}`;
2137
return linkify ?
0 commit comments