MCPcopy
hub / github.com/microsoft/vscode / dispatchKeybinding

Method dispatchKeybinding

test/automation/src/code.ts:176–178  ·  view source on GitHub ↗

* Dispatch a keybinding to the application. * @param keybinding The keybinding to dispatch, e.g. 'ctrl+shift+p'. * @param accept The acceptance function to await before returning. Wherever * possible this should verify that the keybinding did what was expected, * otherwise it will likely be

(keybinding: string, accept: () => Promise<void>)

Source from the content-addressed store, hash-verified

174 * like not making it async.
175 */
176 async dispatchKeybinding(keybinding: string, accept: () => Promise<void>): Promise<void> {
177 await this.driver.sendKeybinding(keybinding, accept);
178 }
179
180 async didFinishLoad(): Promise<void> {
181 return this.driver.didFinishLoad();

Callers 15

runCommandMethod · 0.80
runCommandWithValueMethod · 0.80
runCommandInTerminalMethod · 0.80
updateKeybindingMethod · 0.80
closeQuickInputMethod · 0.80
configureTaskMethod · 0.80
renameMethod · 0.80
saveOpenedFileMethod · 0.80
newUntitledFileMethod · 0.80

Calls 1

sendKeybindingMethod · 0.80

Tested by 2

setupFunction · 0.64
setupFunction · 0.64