https://code.visualstudio.com/api/get-started/your-first-extension
Install vsce: https://code.visualstudio.com/api/working-with-extensions/publishing-extension
Steps:
npm install -g @vscode/vsce
Go to the extension directory
npm i
npm run compile
vsce package