From 553ea57b7e104e072cbd88fb468e7dd84906783e Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Mon, 14 Feb 2022 11:20:38 +0800 Subject: [PATCH] #2659: Allow empty context menu item title (#2690) --- src/extensionPoints/contextMenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensionPoints/contextMenu.ts b/src/extensionPoints/contextMenu.ts index adc2be44a5..39306c5640 100644 --- a/src/extensionPoints/contextMenu.ts +++ b/src/extensionPoints/contextMenu.ts @@ -177,7 +177,7 @@ export abstract class ContextMenuExtensionPoint extends ExtensionPoint ): Promise { - const { title } = extension.config; + const { title = "Untitled menu item" } = extension.config; // Check for null/undefined to preserve backward compatability if (!isDeploymentActive(extension)) {