(disposables: IDisposable[] = [])
| 32 | } |
| 33 | |
| 34 | export async function closeActiveWindows(disposables: IDisposable[] = []): Promise<void> { |
| 35 | if (!IS_SMOKE_TEST()) { |
| 36 | clearPendingChainedUpdatesForTests(); |
| 37 | } |
| 38 | clearPendingTimers(); |
| 39 | dispose(disposables); |
| 40 | await closeWindowsAndNotebooks(); |
| 41 | } |
| 42 | async function closeWindowsAndNotebooks(): Promise<void> { |
| 43 | if (!isInsiders() || !isANotebookOpen()) { |
| 44 | await closeWindowsInternal(); |