()
| 130 | } |
| 131 | |
| 132 | export function deactivate(): Thenable<void> { |
| 133 | Exiting.isExiting = true; |
| 134 | // Make sure to shutdown anybody who needs it. |
| 135 | if (activatedServiceContainer) { |
| 136 | const registry = activatedServiceContainer.get<IAsyncDisposableRegistry>(IAsyncDisposableRegistry); |
| 137 | if (registry) { |
| 138 | return registry.dispose(); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | deactivateExecutionAnalysis(); |
| 143 | |
| 144 | return Promise.resolve(); |
| 145 | } |
| 146 | |
| 147 | ///////////////////////////// |
| 148 | // activation helpers |