Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
feat: Adds command to analyze code using Quack API (#12)
Browse files Browse the repository at this point in the history
* feat: Adds command to analyze code

* fix: Fixed guideline order

* style: Fixes linting
  • Loading branch information
frgfm authored Nov 3, 2023
1 parent ac0b5ba commit a02cb5b
Show file tree
Hide file tree
Showing 7 changed files with 437 additions and 36 deletions.
1 change: 1 addition & 0 deletions media/dark/debug-rerun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions media/light/debug-rerun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 61 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@
]
},
"commands": [
{
"command": "quack-companion.fetchGuidelines",
"category": "Quack AI",
"title": "Fetch contribution guidelines",
"icon": {
"light": "media/light/refresh.svg",
"dark": "media/dark/refresh.svg"
}
},
{
"command": "quack-companion.findStarterIssues",
"category": "Quack AI",
Expand All @@ -108,7 +99,34 @@
{
"command": "quack-companion.loginQuack",
"category": "Quack AI",
"title": "Log in with GitHub"
"title": "Log in with GitHub & Quack"
},
{
"command": "quack-companion.fetchGuidelines",
"category": "Quack AI",
"title": "Fetch contribution guidelines",
"icon": {
"light": "media/light/refresh.svg",
"dark": "media/dark/refresh.svg"
}
},
{
"command": "quack-companion.analyzeCode",
"category": "Quack AI",
"title": "Analyze code with Quack AI",
"icon": {
"light": "media/light/debug-rerun.svg",
"dark": "media/dark/debug-rerun.svg"
}
},
{
"command": "quack-companion.analyzeCodeMonoGuideline",
"category": "Quack AI",
"title": "Analyze code snippet in respect to a specific guideline",
"icon": {
"light": "media/light/debug-rerun.svg",
"dark": "media/dark/debug-rerun.svg"
}
}
],
"viewsWelcome": [
Expand All @@ -124,12 +142,44 @@
"mac": "cmd+shift+g",
"key": "ctrl+shift+g"
},
{
"command": "quack-companion.analyzeCode",
"mac": "cmd+shift+q",
"key": "ctrl+shift+q"
},
{
"command": "quack-companion.debugInfo",
"mac": "cmd+shift+d",
"key": "ctrl+shift+d"
}
]
],
"menus": {
"editor/context": [
{
"command": "quack-companion.analyzeCode",
"when": "editorHasSelection && resourceLangId == 'python'"
}
],
"view/title": [
{
"command": "quack-companion.fetchGuidelines",
"when": "view == quack-companion.guidelineTreeView",
"group": "navigation"
},
{
"command": "quack-companion.analyzeCode",
"when": "view == quack-companion.guidelineTreeView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "quack-companion.analyzeCodeMonoGuideline",
"when": "view == quack-companion.guidelineTreeView && viewItem == guidelineTreeItem",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
Expand Down
Loading

0 comments on commit a02cb5b

Please sign in to comment.