mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-05 12:55:10 +01:00
use <> instead of () for keybinding syntax (#210676)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user