vscode

sashton 2021-11-03T18:50:42.001600Z

For those using vspacecode, is there a way to define a new top-level WhichKey menu? I’ve tried the following without success:

👀 1
sashton 2021-11-03T18:50:57.001900Z

"vspacecode.bindingOverrides": [
        {
            "key": "A",
            "name": "App...",
            "type": "bindings",
            "bindings": [
                {
                    "key": "s",
                    "name": "Open Settings (JSON)",
                    "type": "command",
                    "command":"workbench.action.openSettingsJson",
                }
            ]
        }

sashton 2021-11-03T19:06:04.003100Z

Ok, trial and error got it working (based on someone’s gist):

{
            "keys": ["A"],
            "name": "App",
            "type": "bindings",
            "bindings":[
                {
                    "key": "s",
                    "name": "Open Settings (JSON)",
                    "type": "command",
                    "command":"workbench.action.openSettingsJson",
                }
            ]
        },
       
I’m not sure whey the keys needs to be an array here. I didn’t notice that in any examples.

🙏 1