I was trying to set use the “command” type of configuration, and I found that while my command works fine from the command palette, in the extension settings panel it creates the button, but pushing the button appears to do nothing at all except leave a spinning progress indicator.
Here’s the snippets from my extension.json:
In the “commands” entry I have this which works fine:
"command-palette": [
{
"title": "Detect Dub",
"command": "dvelop.detectDub"
}
]
In the “config” section I have this:
{
"key": "dvelop.detectDub",
"title": "Detect Dub",
"description": "Locate dub automatically",
"type": "command",
"command": "dvelop.detectDub"
}
Am I doing something wrong? I looked around and I couldn’t find any extensions using the command type. (Context here is that I want this to fire off a command that uses /usr/bin/which to find the appropriate path for a helper program, and update another configuration item. Again, this works perfectly from the palette just not the config UI.)