(lambda: () => Thenable<unknown>)
| 23 | }); |
| 24 | |
| 25 | const 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 | |
| 32 | const getNumberOfVisibleLines = async () => |
| 33 | vscode.window.activeTextEditor!.visibleRanges[0].end.line; |
no test coverage detected