MCPcopy Index your code
hub / github.com/microsoft/vscode / selectQuickInputElement

Method selectQuickInputElement

test/automation/src/quickinput.ts:48–58  ·  view source on GitHub ↗
(index: number, keepOpen?: boolean)

Source from the content-addressed store, hash-verified

46 }
47
48 async selectQuickInputElement(index: number, keepOpen?: boolean): Promise<void> {
49 await this.waitForQuickInputOpened();
50 for (let from = 0; from < index; from++) {
51 await this.code.dispatchKeybinding('down', async () => { });
52 }
53 await this.code.dispatchKeybinding('enter', async () => {
54 if (!keepOpen) {
55 await this.waitForQuickInputClosed();
56 }
57 });
58 }
59}

Callers 6

openFileMethod · 0.80
runCommandMethod · 0.80
assertTasksMethod · 0.80
configureTaskMethod · 0.80
openNotebookMethod · 0.80
setupFunction · 0.80

Calls 3

dispatchKeybindingMethod · 0.80

Tested by 1

setupFunction · 0.64