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';
44
55export function setupCommands ( context : ExtensionContext ) {
66 const runSketch = commands . registerCommand ( 'processing.sketch.run' , ( resource : Uri ) => {
7+ // TODO: If the command is run from a keyboard shortcut, find the current file
78 if ( ! resource ) {
89 return ;
910 }
1011
1112 // TODO: Save the current file, maybe settting?
12- // TODO: Add a keyboard shortcut to run the sketch
1313 // TODO: Give feedback if the sketch is starting
1414
1515 let terminal = state . terminal ;
Original file line number Diff line number Diff line change 4343 "icon" : " $(new-file)"
4444 }
4545 ],
46+ "keybindings" : [
47+ {
48+ "command" : " processing.sketch.run" ,
49+ "key" : " ctrl+r" ,
50+ "when" : " editorTextFocus" ,
51+ "mac" : " cmd+r"
52+ }
53+ ],
4654 "menus" : {
4755 "explorer/context" : [
4856 {
You can’t perform that action at this time.
0 commit comments