@opensumi/ide-core-browser 2.22.1-rc-1673608349.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const config_provider_1 = require("../react-providers/config-provider");
|
|
7
7
|
function isDisposable(target) {
|
|
8
|
-
return target && target.dispose;
|
|
8
|
+
return target && target.dispose && !target.disposed;
|
|
9
9
|
}
|
|
10
10
|
function useInjectable(Constructor, args) {
|
|
11
11
|
const { injector } = react_1.default.useContext(config_provider_1.ConfigContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectable-hooks.js","sourceRoot":"","sources":["../../src/react-hooks/injectable-hooks.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAK1B,wEAAmE;AAEnE,SAAS,YAAY,CAAC,MAAW;IAC/B,OAAO,MAAM,IAAK,MAAc,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"injectable-hooks.js","sourceRoot":"","sources":["../../src/react-hooks/injectable-hooks.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAK1B,wEAAmE;AAEnE,SAAS,YAAY,CAAC,MAAW;IAC/B,OAAO,MAAM,IAAK,MAAc,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC/D,CAAC;AAED,SAAgB,aAAa,CAAU,WAAkB,EAAE,IAAU;IACnE,MAAM,EAAE,QAAQ,EAAE,GAAG,eAAK,CAAC,UAAU,CAAC,+BAAa,CAAC,CAAC;IAErD,MAAM,QAAQ,GAAG,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAE/F,eAAK,CAAC,SAAS,CACb,GAAG,EAAE,CAAC,GAAG,EAAE;QACT,0BAA0B;QAC1B,kCAAkC;QAClC,IAAI,IAAI,GAAyB,QAAQ,CAAC;QAC1C,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE;YAC1C,IAAI,GAAI,IAAY,CAAC,MAAM,CAAC;SAC7B;QACD,IAAI,CAAC,IAAI,EAAE;YACT,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE;gBAC1B,QAAQ,CAAC,OAAO,EAAE,CAAC;aACpB;SACF;IACH,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAvBD,sCAuBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-core-browser",
|
|
3
|
-
"version": "2.22.1
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "@opensumi/ide-core-browser",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"build": "tsc --build ../../configs/ts/references/tsconfig.core-browser.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@opensumi/ide-components": "2.22.1
|
|
22
|
-
"@opensumi/ide-connection": "2.22.1
|
|
23
|
-
"@opensumi/ide-core-common": "2.22.1
|
|
21
|
+
"@opensumi/ide-components": "2.22.1",
|
|
22
|
+
"@opensumi/ide-connection": "2.22.1",
|
|
23
|
+
"@opensumi/ide-core-common": "2.22.1",
|
|
24
24
|
"@opensumi/vscode-debugprotocol": "1.49.0-beta.1",
|
|
25
25
|
"@vscode/codicons": "0.0.27",
|
|
26
26
|
"ajv": "^6.10.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"strip-json-comments": "3.0.1",
|
|
46
46
|
"vscode-textmate": "7.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "09d143012d1397536758bb9c5e7fdfb5c612a2ab"
|
|
49
49
|
}
|
|
@@ -6,7 +6,7 @@ import { Disposable } from '@opensumi/ide-core-common';
|
|
|
6
6
|
import { ConfigContext } from '../react-providers/config-provider';
|
|
7
7
|
|
|
8
8
|
function isDisposable(target: any): target is Disposable {
|
|
9
|
-
return target && (target as any).dispose;
|
|
9
|
+
return target && (target as any).dispose && !target.disposed;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function useInjectable<T = any>(Constructor: Token, args?: any): T {
|