use <> instead of () for keybinding syntax (#210676)

This commit is contained in:
Megan Rogge
2024-04-18 09:44:45 -07:00
committed by GitHub
parent 48bbfa7161
commit e7e6fb64da
2 changed files with 2 additions and 2 deletions
@@ -173,7 +173,7 @@ const viewDescriptor: IJSONSchema = {
},
accessibilityHelpContent: {
type: 'string',
markdownDescription: localize('vscode.extension.contributes.view.accessibilityHelpContent', "When the accessibility help dialog is invoked in this view, this content will be presented to the user as a markdown string. Keybindings will be resolved when provided in the format of (keybinding:commandId). If there is no keybinding, that will be indicated with a link to configure one.")
markdownDescription: localize('vscode.extension.contributes.view.accessibilityHelpContent', "When the accessibility help dialog is invoked in this view, this content will be presented to the user as a markdown string. Keybindings will be resolved when provided in the format of <keybinding:commandId>. If there is no keybinding, that will be indicated with a link to configure one.")
}
}
};
@@ -406,7 +406,7 @@ function resolveExtensionHelpContent(keybindingService: IKeybindingService, cont
return;
}
let resolvedContent = typeof content === 'string' ? content : content.value;
const matches = resolvedContent.matchAll(/\(keybinding:(?<commandId>.*)\)/gm);
const matches = resolvedContent.matchAll(/\<keybinding:(?<commandId>.*)\>/gm);
for (const match of [...matches]) {
const commandId = match?.groups?.commandId;
if (match?.length && commandId) {