MCPcopy
hub / github.com/VSCodeVim/Vim / waitForTabChange

Function waitForTabChange

test/testUtils.ts:209–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 * For those, a timeout is given
208 */
209export async function waitForTabChange(): Promise<void> {
210 await new Promise((resolve, reject) => {
211 setTimeout(resolve, 500);
212
213 const subscription = vscode.window.onDidChangeActiveTextEditor((textEditor) => {
214 subscription.dispose();
215
216 resolve(textEditor);
217 });
218 });
219}
220
221export async function replaceContent(
222 document: vscode.TextDocument,

Callers 1

smile.test.tsFile · 0.90

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected