I've build the demo listview extension through yo @microsoft/sharepoint... after trusting the dev-cert and gulp serve I received
Do you want allow debug scripts
after confirming with yes... nothing happens :(
...
@override
public onRefreshCommand(event: IListViewCommandSetRefreshEventParameters): void {
event.visible = true; // assume true by default
if (this.properties.disabledCommandIds) {
if (this.properties.disabledCommandIds.indexOf(event.commandId) >= 0) {
Log.info(LOG_SOURCE, 'Hiding command ' + event.commandId);
event.visible = false;
}
}
}
...
my url parameters looks like that:
?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&customActions=%7B"a5b8e4c8-9a51-4d02-b605-fd7af9af90bb":%7B"location":"ClientSideExtension.ListViewCommandSet.CommandBar"%7D%7D
the guid is already replaced with the right one in HelloWorldCommandSet.manifest.json