()
| 120 | } |
| 121 | |
| 122 | export function deactivate(): Thenable<void> { |
| 123 | Exiting.isExiting = true; |
| 124 | // Make sure to shutdown anybody who needs it. |
| 125 | if (activatedServiceContainer) { |
| 126 | const registry = activatedServiceContainer.get<IAsyncDisposableRegistry>(IAsyncDisposableRegistry); |
| 127 | if (registry) { |
| 128 | return registry.dispose(); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | return Promise.resolve(); |
| 133 | } |
| 134 | |
| 135 | ///////////////////////////// |
| 136 | // activation helpers |