File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import { state } from './extension';
4
4
5
5
export function setupCommands ( context : ExtensionContext ) {
6
6
const runSketch = commands . registerCommand ( 'processing.sketch.run' , ( resource : Uri ) => {
7
+ // TODO: If the command is run from a keyboard shortcut, find the current file
7
8
if ( ! resource ) {
8
9
return ;
9
10
}
10
11
11
12
// TODO: Save the current file, maybe settting?
12
- // TODO: Add a keyboard shortcut to run the sketch
13
13
// TODO: Give feedback if the sketch is starting
14
14
15
15
let terminal = state . terminal ;
Original file line number Diff line number Diff line change 43
43
"icon" : " $(new-file)"
44
44
}
45
45
],
46
+ "keybindings" : [
47
+ {
48
+ "command" : " processing.sketch.run" ,
49
+ "key" : " ctrl+r" ,
50
+ "when" : " editorTextFocus" ,
51
+ "mac" : " cmd+r"
52
+ }
53
+ ],
46
54
"menus" : {
47
55
"explorer/context" : [
48
56
{
You can’t perform that action at this time.
0 commit comments