Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8761cfa

Browse files
committed
log key bindings on ctrl+enter
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent0e806fb commit8761cfa

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

‎package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@
7878
"title":"Start",
7979
"category":"CodeRoad"
8080
}
81+
],
82+
"keybindings": [
83+
{
84+
"key":"ctrl+enter",
85+
"mac":"ctrl+enter",
86+
"command":"coderoad.enter"
87+
}
8188
]
8289
},
8390
"displayName":"CodeRoad",

‎src/editor/commands.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const COMMANDS = {
1212
CONFIG_TEST_RUNNER:'coderoad.config_test_runner',
1313
RUN_TEST:'coderoad.run_test',
1414
SET_CURRENT_POSITION:'coderoad.set_current_position',
15+
ENTER:'coderoad.enter',
1516
}
1617

1718
interfaceCreateCommandProps{
@@ -103,5 +104,8 @@ export const createCommands = ({ extensionPath, workspaceState }: CreateCommandP
103104
logger('currentPosition',currentPosition)
104105
testRunner({position:currentPosition,onSuccess:callbacks?.onSuccess, subtasks})
105106
},
107+
[COMMANDS.ENTER]:()=>{
108+
console.log('KEY: ctrl+enter')
109+
},
106110
}
107111
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp