opensumi/core

[BUG] contributes.commands 下的 enablement 字段不符合预期

Opened this issue · 0 comments

描述你的问题(Describe the bug)
配置了enablement,默认foo.enableXXX不设置值,发现没有禁用

{
  "command": "foo.xxx",
  "title": "Foo Title",
  "enablement": "foo.enableXXX",
  "when": "foo.permission.xxx"
}

"explorer/context": [
    {
      "group": "Foo",
      "command": "foo.xxx"
    }
  ]

复现路径(To Reproduce)

预期表现(Expected behavior)
应该禁用不可点击

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1]
  • Browser: [e.g. chrome]
  • OpenSumi Version: [e.g. 2.13.0]