When compiling VSCode extension then typescript persistently complained
error TS2307: Cannot find module \'vscode\'.
Installation <
You can simply install them by yarn install or npm install. If you've faced with "Visual Studio Code is unable to watch for file changes in this large workspace" error in VSCode, follow the instructions in this link.
yarn install
npm install