tweak error messages when API proposal isn't available, https://github.com/microsoft/vscode/issues/131165

This commit is contained in:
Johannes Rieken
2021-11-12 15:03:11 +01:00
parent df681dcbfe
commit 112709a721
5 changed files with 6 additions and 6 deletions

View File

@@ -750,7 +750,7 @@ menusExtensionPoint.setHandler(extensions => {
}
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
collector.error(localize('proposedAPI.invalid', "{0} is a proposed menu identifier and is only available when running out of dev or with the following command line switch: --enable-proposed-api {1}", entry.key, extension.description.identifier.value));
collector.error(localize('proposedAPI.invalid', "{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}", entry.key, menu.proposed, extension.description.identifier.value));
return;
}