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

Function withinIsolatedEditor

test/cmd_line/only.test.ts:25–30  ·  view source on GitHub ↗
(lambda: () => Thenable<unknown>)

Source from the content-addressed store, hash-verified

23 });
24
25const withinIsolatedEditor = async (lambda: () => Thenable<unknown>) => {
26 await vscode.commands.executeCommand('workbench.action.files.newUntitledFile');
27 const result = await lambda();
28 await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
29 return result;
30};
31
32const getNumberOfVisibleLines = async () =>
33 vscode.window.activeTextEditor!.visibleRanges[0].end.line;

Callers 1

isPanelVisibleFunction · 0.85

Calls 1

lambdaFunction · 0.85

Tested by

no test coverage detected