Skip to content

Commit ac1dca2

Browse files
feat: add VS Code extension for QyverixAI API integration (imDarshanGK#161)
Co-authored-by: ionfwsrijan <ionfwsrijan@users.noreply.github.com> Co-authored-by: Darshan G K <122042809+imDarshanGK@users.noreply.github.com>
1 parent 0ad05f1 commit ac1dca2

5 files changed

Lines changed: 661 additions & 0 deletions

File tree

vscode-extension/.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/**
2+
.vscode-test/**
3+
node_modules/**
4+
src/**
5+
tsconfig.json
6+
.gitignore
7+
**/*.ts
8+
**/*.map

vscode-extension/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# QyverixAI VS Code Extension
2+
3+
Analyze, debug, and explain code directly from VS Code using the [QyverixAI](https://qyverixai.onrender.com) API.
4+
5+
## Features
6+
7+
- **🧪 Analyze** (`qyverixai.analyze`) — Full code analysis: explanation, bug detection, and improvement suggestions in one go. Sets inline diagnostics (squiggly lines) for detected issues.
8+
- **🐛 Debug** (`qyverixai.debug`) — Scan the current file for bugs, errors, and warnings. Inline diagnostics highlight problem areas in the editor.
9+
- **📖 Explain** (`qyverixai.explain`) — Get a plain-English summary of what the code does, its complexity, key points, and structure.
10+
11+
## Usage
12+
13+
1. Open any file in VS Code.
14+
2. Right-click in the editor and select:
15+
- **QyverixAI: Analyze Current File**
16+
- **QyverixAI: Debug Current File**
17+
- **QyverixAI: Explain Current File**
18+
19+
Or use the Command Palette (`Ctrl+Shift+P`) and type `QyverixAI`.
20+
21+
3. A WebView panel opens beside your editor with the results.
22+
4. For **Analyze** and **Debug**, squiggly lines appear in the editor at the locations of detected issues. Open the **Problems** panel (`Ctrl+Shift+M`) to see the full list.
23+
24+
## Requirements
25+
26+
- VS Code 1.82+
27+
- The QyverixAI API must be running and reachable. The extension defaults to the hosted API at `https://qyverixai.onrender.com`.
28+
29+
## Extension Settings
30+
31+
This extension contributes the following settings:
32+
33+
| Setting | Default | Description |
34+
|---|---|---|
35+
| `qyverixai.apiUrl` | `https://qyverixai.onrender.com` | Base URL of the QyverixAI API |
36+
| `qyverixai.timeout` | `30` | Request timeout in seconds |
37+
38+
## Known Issues
39+
40+
- The API works best with complete, syntactically valid files.
41+
- Very large files (>50 KB) may be truncated by the API's 50 000 character limit.
42+
43+
## Development
44+
45+
```bash
46+
cd vscode-extension
47+
npm install -g @vscode/vsce
48+
vsce package
49+
code --install-extension qyverixai-vscode-*.vsix
50+
```
51+
52+
## License
53+
54+
MIT

vscode-extension/package.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"name": "qyverixai-vscode",
3+
"displayName": "QyverixAI Code Assistant",
4+
"description": "Analyze, debug, and explain code directly from VS Code using the QyverixAI API",
5+
"version": "0.1.0",
6+
"publisher": "qyverixai",
7+
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/imDarshanGK/AI-dev-assistant.git"
11+
},
12+
"engines": {
13+
"vscode": "^1.82.0"
14+
},
15+
"categories": [
16+
"Programming Languages",
17+
"Linters",
18+
"Other"
19+
],
20+
"keywords": [
21+
"qyverixai",
22+
"code analysis",
23+
"debugging",
24+
"code explanation",
25+
"ai"
26+
],
27+
"activationEvents": [
28+
"onCommand:qyverixai.analyze",
29+
"onCommand:qyverixai.debug",
30+
"onCommand:qyverixai.explain"
31+
],
32+
"main": "./extension.js",
33+
"contributes": {
34+
"commands": [
35+
{
36+
"command": "qyverixai.analyze",
37+
"title": "QyverixAI: Analyze Current File"
38+
},
39+
{
40+
"command": "qyverixai.debug",
41+
"title": "QyverixAI: Debug Current File"
42+
},
43+
{
44+
"command": "qyverixai.explain",
45+
"title": "QyverixAI: Explain Current File"
46+
}
47+
],
48+
"menus": {
49+
"editor/context": [
50+
{
51+
"command": "qyverixai.analyze",
52+
"group": "1_modification"
53+
},
54+
{
55+
"command": "qyverixai.debug",
56+
"group": "1_modification"
57+
},
58+
{
59+
"command": "qyverixai.explain",
60+
"group": "1_modification"
61+
}
62+
]
63+
},
64+
"configuration": {
65+
"title": "QyverixAI",
66+
"properties": {
67+
"qyverixai.apiUrl": {
68+
"type": "string",
69+
"default": "https://qyverixai.onrender.com",
70+
"description": "Base URL of the QyverixAI API (e.g. https://qyverixai.onrender.com or http://localhost:8000)"
71+
},
72+
"qyverixai.timeout": {
73+
"type": "number",
74+
"default": 30,
75+
"description": "Request timeout in seconds"
76+
}
77+
}
78+
}
79+
}
80+
}

0 commit comments

Comments
 (0)