forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.ts
More file actions
37 lines (34 loc) · 1.15 KB
/
components.ts
File metadata and controls
37 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { IDisposableRegistry, IExtensionContext } from './common/types';
import { IServiceContainer, IServiceManager } from './ioc/types';
/**
* The global extension state needed by components.
*
*/
export type ExtensionState = {
context: IExtensionContext;
disposables: IDisposableRegistry;
// For now we include the objects dealing with inversify (IOC)
// registration. These will be removed later.
legacyIOC: {
serviceManager: IServiceManager;
serviceContainer: IServiceContainer;
};
};
/**
* The result of activating a component of the extension.
*
* Getting this value means the component has reached a state where it
* may be used by the rest of the extension.
*
* If the component started any non-critical activation-related
* operations during activation then the "fullyReady" property will only
* resolve once all those operations complete.
*
* The component may have also started long-running background helpers.
* Those are not exposed here.
*/
export type ActivationResult = {
fullyReady: Promise<void>;
};