提交 428031ba 编写于 作者: J Johannes Rieken

warn when alt-command isn't supported, #8435

上级 b4df3add
......@@ -260,7 +260,11 @@ ExtensionsRegistry.registerExtensionPoint<{ [loc: string]: IDeclaredMenuItem[] }
collector.warn(localize('missing.altCommand', "Menu item references an alt-command `{0}` which is not defined in the 'commands' section.", item.alt));
}
if (item.command === item.alt) {
collector.info(localize('dupe.command', "Menu item references the same command as default and alternative command"));
collector.info(localize('dupe.command', "Menu item references the same command as default and alt-command"));
}
if (item.alt && menu !== MenuId.EditorTitle) {
collector.info(localize('nosupport.altCommand', "Sorry, but currently only 'editor/title' supports alt-commands"));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册