Upgrade command-palette to use new APIs