Skip to content

Commit

Permalink
#2659: Allow empty context menu item title (#2690)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Feb 14, 2022
1 parent 4de5ce6 commit 553ea57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensionPoints/contextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export abstract class ContextMenuExtensionPoint extends ExtensionPoint<ContextMe
"id" | "config" | "_deployment"
>
): Promise<void> {
const { title } = extension.config;
const { title = "Untitled menu item" } = extension.config;

// Check for null/undefined to preserve backward compatability
if (!isDeploymentActive(extension)) {
Expand Down

0 comments on commit 553ea57

Please sign in to comment.