Skip to content

Latest commit

 

History

History
76 lines (44 loc) · 1.78 KB

File metadata and controls

76 lines (44 loc) · 1.78 KB

Devai VS Code extension for local code review

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.

Devai VS Code Extension integration

Custom commands in VS Code

Devai VS Code Extension Commands

Review Output - markdown preview for readability

Devai VS Code Extension Output

Custom Review Prompt in Secret Manager

Devai VS Code Extension Review Prompt

Save review prompt in Secret Manager:

gcloud secrets create CUSTOM_REVIEW_PROMPT --data-file=CUSTOM_REVIEW_PROMPT.txt

Setup

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.

Devai VS Code Extension Debugging

Publishing Extension

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:

Devai VS Code Extension Install

Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension