Update `extension`'s `package.json` format and fix minor bugs.