}
if (typeof meta['command'] === 'string') {
return {
kind: 'command',
command: meta['command'],
...(typeof meta['description'] === 'string' ? { description: meta['description'] } : {}),
...(typeof meta['argumentHint'] === 'string' ? { argumentHint: meta['argumentHint'] } : {}),
...(action ? { action } : {}),
};
}
if (typeof meta['uri'] === 'string') {
return {