Devai VS Code extension is based on Pipet Code Agent project: https://ai.google.dev/gemini-api/tutorials/pipet-code-agent
Devai extension was extended to do prompt lookup in Secret Manager.
Save review prompt in Secret Manager:
gcloud secrets create CUSTOM_REVIEW_PROMPT --data-file=CUSTOM_REVIEW_PROMPT.txt
Install dependencies:
cd devai-vscode-extension
npm install
Compile the extension:
npm run compile
Start debugging - open src/extension.ts
and select from the top level menu:
Run > Start Debugging
Select VS Code Extension Development
.
Install Visual Studio Code Extensions(vsce) cli:
npm install -g @vscode/vsce
Package the extension:
cd devai-vscode-extension
vsce package
# devai-vscode-extension.vsix generated
Install extension from VSIX:
Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension