-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc79ee4
commit a6a4c62
Showing
3 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,47 @@ | ||
type SCOPE = "block" | "selection" | "none"; | ||
export type SlashCommand = { | ||
label: string; | ||
intent: string; | ||
description: string; | ||
scope: SCOPE[]; | ||
multistep: boolean; | ||
}; | ||
|
||
export const SLASH_COMANDS: SlashCommand[] = [ | ||
{ | ||
label: "$(feedback) explain", | ||
intent: "/explain-code", | ||
description: "Explain the selected code", | ||
scope: ["selection", "block"], | ||
multistep: false, | ||
}, | ||
{ | ||
label: "$(beaker) test", | ||
intent: "/generate-test-for-code", | ||
description: "Write tests for the selected code", | ||
scope: ["block"], | ||
multistep: false, | ||
}, | ||
{ | ||
label: "$(checklist) document", | ||
intent: "/document-code", | ||
description: "Add documentation for the selected code", | ||
scope: ["block"], | ||
multistep: false, | ||
}, | ||
{ | ||
label: "$(symbol-property) fix", | ||
intent: "/fix-code", | ||
description: "Find errors in the selected code and fix them", | ||
scope: ["block"], | ||
multistep: false, | ||
}, | ||
{ | ||
label: "$(search) workspace", | ||
intent: "/workspace", | ||
description: | ||
"Ask a question related to any code within your current workspace", | ||
scope: ["none"], | ||
multistep: true, | ||
}, | ||
]; |