Skip to content

feature: 当自定义菜单不存在时,使用Ctrl+Shift+M,会报错 #31

@BernardXiong

Description

@BernardXiong

当自定义菜单不存在时,使用Ctrl+Shift+M,会报错,显示:

  • command 'extension.openMenu' not found.

期望如果自定义菜单不存在时,进入这部分的设置界面,可以由用户来添加自定义项。同时,希望插件的设置可以做得更人性化些,而不仅仅是当前的比较原始的模式:

        "configuration": {
            "type": "object",
            "title": "Custom Commands(menu)",
            "properties": {
                "smart.menuCommands": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "default": []
                },
                "smart.parallelBuidNumber": {
                    "type": "number",
                    "default": 1
                }
            }
        },
        "keybindings": [
            {
                "command": "extension.buildProject",
                "key": "ctrl+shift+b"
            },
            {
                "command": "extension.openMenu",
                "key": "ctrl+shift+m"
            }
        ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions