Skip to content

Commit f5e2ae0

Browse files
authored
feat: Add 'Ask Sourcery' keybinding (#186)
1 parent d7517c6 commit f5e2ae0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,17 @@
416416
"description": "Show comments."
417417
}
418418
}
419-
}
419+
},
420+
"keybindings": [
421+
{
422+
"command": "sourcery.chat.ask",
423+
"linux": "ctrl+y",
424+
"mac": "cmd+y",
425+
"windows": "ctrl+shift+y",
426+
"when": "editorTextFocus"
427+
}
428+
]
429+
420430
},
421431
"main": "./out/extension",
422432
"scripts": {

src/ask-sourcery.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function showAskSourceryQuickPick(recipes: Recipe[]) {
3636
}));
3737

3838
const quickPick = vscode.window.createQuickPick();
39-
quickPick.placeholder = "Ask any question or choose one of these recipes";
39+
quickPick.placeholder =
40+
"Ask Sourcery a question or choose one of these recipes";
4041
quickPick.items = recipeItems;
4142

4243
quickPick.onDidAccept(() => {

0 commit comments

Comments
 (0)