Skip to content

Commit

Permalink
use < instead of (
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Apr 18, 2024
1 parent 48bbfa7 commit 864554b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/viewsExtensionPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 864554b

Please sign in to comment.