MCPcopy Index your code
hub / github.com/coder/code-server / executeCommandViaMenus

Method executeCommandViaMenus

test/e2e/models/CodeServer.ts:437–444  ·  view source on GitHub ↗

* Navigate to the command palette via menus then execute a command by typing * it then clicking the match from the results.

(command: string)

Source from the content-addressed store, hash-verified

435 * it then clicking the match from the results.
436 */
437 async executeCommandViaMenus(command: string) {
438 await this.navigateMenus(["View", "Command Palette..."])
439
440 await this.page.keyboard.type(command)
441
442 await this.page.hover(`text=${command}`)
443 await this.page.click(`text=${command}`)
444 }
445
446 /**
447 * Navigate through the items in the selector. `open` is a function that will

Callers 4

doFocusMethod · 0.95
webview.test.tsFile · 0.80
github.test.tsFile · 0.80
runTestExtensionTestsFunction · 0.80

Calls 1

navigateMenusMethod · 0.95

Tested by 1

runTestExtensionTestsFunction · 0.64