@opensumi/ide-workspace 3.1.5-next-1722242436.0 → 3.1.5-next-1722325449.0
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.
|
@@ -3,6 +3,8 @@ export declare class WorkspaceContextKey {
|
|
|
3
3
|
private readonly globalContextKeyService;
|
|
4
4
|
readonly workbenchStateContextKey: IContextKey<string>;
|
|
5
5
|
readonly workspaceFolderCountContextKey: IContextKey<number>;
|
|
6
|
+
readonly workspaceTrustedContextKey: IContextKey<boolean>;
|
|
7
|
+
readonly virtualWorkspaceContextKey: IContextKey<boolean>;
|
|
6
8
|
constructor(contextKeyService: IContextKeyService);
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=workspace-contextkey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-contextkey.d.ts","sourceRoot":"","sources":["../../src/browser/workspace-contextkey.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-contextkey.d.ts","sourceRoot":"","sources":["../../src/browser/workspace-contextkey.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQ7E,qBACa,mBAAmB;IAE9B,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAqB;IAE7D,SAAgB,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9D,SAAgB,8BAA8B,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpE,SAAgB,0BAA0B,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,SAAgB,0BAA0B,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;gBAEzC,iBAAiB,EAAE,kBAAkB;CAO9D"}
|
|
@@ -10,6 +10,8 @@ let WorkspaceContextKey = class WorkspaceContextKey {
|
|
|
10
10
|
contextKeyService = contextKeyService || this.globalContextKeyService;
|
|
11
11
|
this.workbenchStateContextKey = contextkey_1.WorkbenchState.bind(contextKeyService);
|
|
12
12
|
this.workspaceFolderCountContextKey = contextkey_1.WorkspaceFolderCount.bind(contextKeyService);
|
|
13
|
+
this.workspaceTrustedContextKey = contextkey_1.WorkspaceTrusted.bind(contextKeyService);
|
|
14
|
+
this.virtualWorkspaceContextKey = contextkey_1.VirtualWorkspace.bind(contextKeyService);
|
|
13
15
|
}
|
|
14
16
|
};
|
|
15
17
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-contextkey.js","sourceRoot":"","sources":["../../src/browser/workspace-contextkey.ts"],"names":[],"mappings":";;;;AAAA,qCAA+D;AAC/D,iEAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"workspace-contextkey.js","sourceRoot":"","sources":["../../src/browser/workspace-contextkey.ts"],"names":[],"mappings":";;;;AAAA,qCAA+D;AAC/D,iEAA6E;AAC7E,0EAKmD;AAG5C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAS9B,YAAwB,iBAAqC;QAC3D,iBAAiB,GAAG,iBAAiB,IAAI,IAAI,CAAC,uBAAuB,CAAC;QACtE,IAAI,CAAC,wBAAwB,GAAG,2BAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACvE,IAAI,CAAC,8BAA8B,GAAG,iCAAoB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnF,IAAI,CAAC,0BAA0B,GAAG,6BAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC3E,IAAI,CAAC,0BAA0B,GAAG,6BAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC;CACF,CAAA;AAfC;IAAC,IAAA,cAAS,EAAC,qCAAkB,CAAC;;oEAC+B;AAFlD,mBAAmB;IAD/B,IAAA,eAAU,GAAE;IAUE,mBAAA,IAAA,aAAQ,GAAE,CAAA;;GATZ,mBAAmB,CAgB/B;AAhBY,kDAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-workspace",
|
|
3
|
-
"version": "3.1.5-next-
|
|
3
|
+
"version": "3.1.5-next-1722325449.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"src"
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"url": "git@github.com:opensumi/core.git"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@opensumi/ide-core-common": "3.1.5-next-
|
|
21
|
-
"@opensumi/ide-file-service": "3.1.5-next-
|
|
20
|
+
"@opensumi/ide-core-common": "3.1.5-next-1722325449.0",
|
|
21
|
+
"@opensumi/ide-file-service": "3.1.5-next-1722325449.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@opensumi/ide-core-browser": "3.1.5-next-
|
|
25
|
-
"@opensumi/ide-dev-tool": "3.1.5-next-
|
|
26
|
-
"@opensumi/ide-overlay": "3.1.5-next-
|
|
24
|
+
"@opensumi/ide-core-browser": "3.1.5-next-1722325449.0",
|
|
25
|
+
"@opensumi/ide-dev-tool": "3.1.5-next-1722325449.0",
|
|
26
|
+
"@opensumi/ide-overlay": "3.1.5-next-1722325449.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f9d54b8fb85143f8deee1880955c4467767229b3"
|
|
29
29
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Autowired, Injectable, Optional } from '@opensumi/di';
|
|
2
2
|
import { IContextKey, IContextKeyService } from '@opensumi/ide-core-browser';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
VirtualWorkspace,
|
|
5
|
+
WorkbenchState,
|
|
6
|
+
WorkspaceFolderCount,
|
|
7
|
+
WorkspaceTrusted,
|
|
8
|
+
} from '@opensumi/ide-core-browser/lib/contextkey';
|
|
4
9
|
|
|
5
10
|
@Injectable()
|
|
6
11
|
export class WorkspaceContextKey {
|
|
@@ -9,10 +14,14 @@ export class WorkspaceContextKey {
|
|
|
9
14
|
|
|
10
15
|
public readonly workbenchStateContextKey: IContextKey<string>;
|
|
11
16
|
public readonly workspaceFolderCountContextKey: IContextKey<number>;
|
|
17
|
+
public readonly workspaceTrustedContextKey: IContextKey<boolean>;
|
|
18
|
+
public readonly virtualWorkspaceContextKey: IContextKey<boolean>;
|
|
12
19
|
|
|
13
20
|
constructor(@Optional() contextKeyService: IContextKeyService) {
|
|
14
21
|
contextKeyService = contextKeyService || this.globalContextKeyService;
|
|
15
22
|
this.workbenchStateContextKey = WorkbenchState.bind(contextKeyService);
|
|
16
23
|
this.workspaceFolderCountContextKey = WorkspaceFolderCount.bind(contextKeyService);
|
|
24
|
+
this.workspaceTrustedContextKey = WorkspaceTrusted.bind(contextKeyService);
|
|
25
|
+
this.virtualWorkspaceContextKey = VirtualWorkspace.bind(contextKeyService);
|
|
17
26
|
}
|
|
18
27
|
}
|