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

Method waitForEditorSelection

test/automation/src/code.ts:321–323  ·  view source on GitHub ↗
(selector: string, accept: (selection: { selectionStart: number; selectionEnd: number }) => boolean)

Source from the content-addressed store, hash-verified

319 }
320
321 async waitForEditorSelection(selector: string, accept: (selection: { selectionStart: number; selectionEnd: number }) => boolean): Promise<void> {
322 await this.poll(() => this.driver.getEditorSelection(selector), accept, `get editor selection '${selector}'`);
323 }
324
325 async waitForTerminalBuffer(selector: string, accept: (result: string[]) => boolean): Promise<void> {
326 await this.poll(() => this.driver.getTerminalBuffer(selector), accept, `get terminal buffer '${selector}'`);

Callers 2

addUserSettingMethod · 0.45
addUserSettingsMethod · 0.45

Calls 2

pollMethod · 0.95
getEditorSelectionMethod · 0.65

Tested by

no test coverage detected