提交 a5121365 编写于 作者: S Sandeep Somavarapu

Fix tests

上级 6afc2c69
......@@ -152,7 +152,11 @@ export const MenuRegistry: IMenuRegistry = new class implements IMenuRegistry {
}
getCommands(): ICommandsMap {
return Object.freeze(this._commands);
const result: ICommandsMap = Object.create(null);
for (const key in this._commands) {
result[key] = this.getCommand(key);
}
return result;
}
appendMenuItem({ id }: MenuId, item: IMenuItem | ISubmenuItem): IDisposable {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册