提交 ac9debd6 编写于 作者: J Johannes Rieken

very wrong equal comparision, fixes #8247

上级 b26c9851
......@@ -259,7 +259,7 @@ ExtensionsRegistry.registerExtensionPoint<{ [loc: string]: IDeclaredMenuItem[] }
if (item.alt && !MenuRegistry.hasCommand(item.alt)) {
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) {
if (item.command === item.alt) {
collector.info(localize('dupe.command', "Menu item references the same command as default and alternative command"));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册