@theia/plugin-ext-vscode 1.34.1 → 1.34.3

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.
Files changed (53) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +32 -32
  3. package/lib/browser/plugin-vscode-commands-contribution.d.ts +79 -79
  4. package/lib/browser/plugin-vscode-commands-contribution.js +768 -768
  5. package/lib/browser/plugin-vscode-contribution.d.ts +5 -5
  6. package/lib/browser/plugin-vscode-contribution.js +53 -53
  7. package/lib/browser/plugin-vscode-frontend-module.d.ts +3 -3
  8. package/lib/browser/plugin-vscode-frontend-module.js +30 -30
  9. package/lib/common/plugin-vscode-environment.d.ts +7 -7
  10. package/lib/common/plugin-vscode-environment.js +47 -47
  11. package/lib/common/plugin-vscode-types.d.ts +2 -2
  12. package/lib/common/plugin-vscode-types.js +21 -21
  13. package/lib/common/plugin-vscode-uri.d.ts +16 -16
  14. package/lib/common/plugin-vscode-uri.js +51 -51
  15. package/lib/node/context/plugin-vscode-init-fe.d.ts +2 -2
  16. package/lib/node/context/plugin-vscode-init-fe.js +37 -37
  17. package/lib/node/local-vsix-file-plugin-deployer-resolver.d.ts +14 -14
  18. package/lib/node/local-vsix-file-plugin-deployer-resolver.js +77 -77
  19. package/lib/node/package.spec.js +25 -25
  20. package/lib/node/plugin-reader.d.ts +6 -6
  21. package/lib/node/plugin-reader.js +36 -36
  22. package/lib/node/plugin-vscode-backend-module.d.ts +3 -3
  23. package/lib/node/plugin-vscode-backend-module.js +43 -43
  24. package/lib/node/plugin-vscode-cli-contribution.d.ts +21 -21
  25. package/lib/node/plugin-vscode-cli-contribution.js +67 -67
  26. package/lib/node/plugin-vscode-deployer-participant.d.ts +6 -6
  27. package/lib/node/plugin-vscode-deployer-participant.js +43 -43
  28. package/lib/node/plugin-vscode-directory-handler.d.ts +21 -21
  29. package/lib/node/plugin-vscode-directory-handler.js +144 -144
  30. package/lib/node/plugin-vscode-file-handler.d.ts +11 -11
  31. package/lib/node/plugin-vscode-file-handler.js +82 -82
  32. package/lib/node/plugin-vscode-init.d.ts +2 -2
  33. package/lib/node/plugin-vscode-init.js +68 -68
  34. package/lib/node/scanner-vscode.d.ts +12 -12
  35. package/lib/node/scanner-vscode.js +111 -111
  36. package/package.json +15 -15
  37. package/src/browser/plugin-vscode-commands-contribution.ts +924 -924
  38. package/src/browser/plugin-vscode-contribution.ts +47 -47
  39. package/src/browser/plugin-vscode-frontend-module.ts +30 -30
  40. package/src/common/plugin-vscode-environment.ts +36 -36
  41. package/src/common/plugin-vscode-types.ts +20 -20
  42. package/src/common/plugin-vscode-uri.ts +47 -47
  43. package/src/node/context/plugin-vscode-init-fe.ts +43 -43
  44. package/src/node/local-vsix-file-plugin-deployer-resolver.ts +65 -65
  45. package/src/node/package.spec.ts +28 -28
  46. package/src/node/plugin-reader.ts +28 -28
  47. package/src/node/plugin-vscode-backend-module.ts +50 -50
  48. package/src/node/plugin-vscode-cli-contribution.ts +64 -64
  49. package/src/node/plugin-vscode-deployer-participant.ts +32 -32
  50. package/src/node/plugin-vscode-directory-handler.ts +141 -141
  51. package/src/node/plugin-vscode-file-handler.ts +72 -72
  52. package/src/node/plugin-vscode-init.ts +80 -80
  53. package/src/node/scanner-vscode.ts +108 -108
@@ -1,6 +1,6 @@
1
- import { FileServiceContribution, FileService } from '@theia/filesystem/lib/browser/file-service';
2
- export declare class PluginVSCodeContribution implements FileServiceContribution {
3
- registerFileSystemProviders(service: FileService): void;
4
- protected mapSchemas(service: FileService, from: string, to: string): void;
5
- }
1
+ import { FileServiceContribution, FileService } from '@theia/filesystem/lib/browser/file-service';
2
+ export declare class PluginVSCodeContribution implements FileServiceContribution {
3
+ registerFileSystemProviders(service: FileService): void;
4
+ protected mapSchemas(service: FileService, from: string, to: string): void;
5
+ }
6
6
  //# sourceMappingURL=plugin-vscode-contribution.d.ts.map
@@ -1,54 +1,54 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.PluginVSCodeContribution = void 0;
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const user_storage_uri_1 = require("@theia/userstorage/lib/browser/user-storage-uri");
27
- const uri_components_1 = require("@theia/plugin-ext/lib/common/uri-components");
28
- const delegating_file_system_provider_1 = require("@theia/filesystem/lib/common/delegating-file-system-provider");
29
- let PluginVSCodeContribution = class PluginVSCodeContribution {
30
- registerFileSystemProviders(service) {
31
- this.mapSchemas(service, uri_components_1.Schemes.vscodeRemote, 'file');
32
- this.mapSchemas(service, uri_components_1.Schemes.userData, user_storage_uri_1.UserStorageUri.scheme);
33
- }
34
- mapSchemas(service, from, to) {
35
- service.onWillActivateFileSystemProvider(event => {
36
- if (event.scheme === from) {
37
- event.waitUntil((async () => {
38
- const provider = await service.activateProvider(to);
39
- service.registerProvider(from, new delegating_file_system_provider_1.DelegatingFileSystemProvider(provider, {
40
- uriConverter: {
41
- to: resource => resource.withScheme(to),
42
- from: resource => resource.withScheme(from)
43
- }
44
- }));
45
- })());
46
- }
47
- });
48
- }
49
- };
50
- PluginVSCodeContribution = __decorate([
51
- (0, inversify_1.injectable)()
52
- ], PluginVSCodeContribution);
53
- exports.PluginVSCodeContribution = PluginVSCodeContribution;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.PluginVSCodeContribution = void 0;
25
+ const inversify_1 = require("@theia/core/shared/inversify");
26
+ const user_storage_uri_1 = require("@theia/userstorage/lib/browser/user-storage-uri");
27
+ const uri_components_1 = require("@theia/plugin-ext/lib/common/uri-components");
28
+ const delegating_file_system_provider_1 = require("@theia/filesystem/lib/common/delegating-file-system-provider");
29
+ let PluginVSCodeContribution = class PluginVSCodeContribution {
30
+ registerFileSystemProviders(service) {
31
+ this.mapSchemas(service, uri_components_1.Schemes.vscodeRemote, 'file');
32
+ this.mapSchemas(service, uri_components_1.Schemes.userData, user_storage_uri_1.UserStorageUri.scheme);
33
+ }
34
+ mapSchemas(service, from, to) {
35
+ service.onWillActivateFileSystemProvider(event => {
36
+ if (event.scheme === from) {
37
+ event.waitUntil((async () => {
38
+ const provider = await service.activateProvider(to);
39
+ service.registerProvider(from, new delegating_file_system_provider_1.DelegatingFileSystemProvider(provider, {
40
+ uriConverter: {
41
+ to: resource => resource.withScheme(to),
42
+ from: resource => resource.withScheme(from)
43
+ }
44
+ }));
45
+ })());
46
+ }
47
+ });
48
+ }
49
+ };
50
+ PluginVSCodeContribution = __decorate([
51
+ (0, inversify_1.injectable)()
52
+ ], PluginVSCodeContribution);
53
+ exports.PluginVSCodeContribution = PluginVSCodeContribution;
54
54
  //# sourceMappingURL=plugin-vscode-contribution.js.map
@@ -1,4 +1,4 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
4
  //# sourceMappingURL=plugin-vscode-frontend-module.d.ts.map
@@ -1,31 +1,31 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 Red Hat, Inc. and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const core_1 = require("@theia/core");
20
- const plugin_vscode_commands_contribution_1 = require("./plugin-vscode-commands-contribution");
21
- const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
22
- const plugin_vscode_contribution_1 = require("./plugin-vscode-contribution");
23
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
24
- exports.default = new inversify_1.ContainerModule(bind => {
25
- bind(plugin_vscode_environment_1.PluginVSCodeEnvironment).toSelf().inSingletonScope();
26
- bind(plugin_vscode_commands_contribution_1.PluginVscodeCommandsContribution).toSelf().inSingletonScope();
27
- bind(core_1.CommandContribution).toService(plugin_vscode_commands_contribution_1.PluginVscodeCommandsContribution);
28
- bind(plugin_vscode_contribution_1.PluginVSCodeContribution).toSelf().inSingletonScope();
29
- bind(file_service_1.FileServiceContribution).toService(plugin_vscode_contribution_1.PluginVSCodeContribution);
30
- });
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 Red Hat, Inc. and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const inversify_1 = require("@theia/core/shared/inversify");
19
+ const core_1 = require("@theia/core");
20
+ const plugin_vscode_commands_contribution_1 = require("./plugin-vscode-commands-contribution");
21
+ const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
22
+ const plugin_vscode_contribution_1 = require("./plugin-vscode-contribution");
23
+ const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
24
+ exports.default = new inversify_1.ContainerModule(bind => {
25
+ bind(plugin_vscode_environment_1.PluginVSCodeEnvironment).toSelf().inSingletonScope();
26
+ bind(plugin_vscode_commands_contribution_1.PluginVscodeCommandsContribution).toSelf().inSingletonScope();
27
+ bind(core_1.CommandContribution).toService(plugin_vscode_commands_contribution_1.PluginVscodeCommandsContribution);
28
+ bind(plugin_vscode_contribution_1.PluginVSCodeContribution).toSelf().inSingletonScope();
29
+ bind(file_service_1.FileServiceContribution).toService(plugin_vscode_contribution_1.PluginVSCodeContribution);
30
+ });
31
31
  //# sourceMappingURL=plugin-vscode-frontend-module.js.map
@@ -1,8 +1,8 @@
1
- import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
2
- import URI from '@theia/core/lib/common/uri';
3
- export declare class PluginVSCodeEnvironment {
4
- protected readonly environments: EnvVariablesServer;
5
- protected _extensionsDirUri: URI | undefined;
6
- getExtensionsDirUri(): Promise<URI>;
7
- }
1
+ import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
2
+ import URI from '@theia/core/lib/common/uri';
3
+ export declare class PluginVSCodeEnvironment {
4
+ protected readonly environments: EnvVariablesServer;
5
+ protected _extensionsDirUri: URI | undefined;
6
+ getExtensionsDirUri(): Promise<URI>;
7
+ }
8
8
  //# sourceMappingURL=plugin-vscode-environment.d.ts.map
@@ -1,48 +1,48 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.PluginVSCodeEnvironment = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const env_variables_1 = require("@theia/core/lib/common/env-variables");
30
- const uri_1 = require("@theia/core/lib/common/uri");
31
- let PluginVSCodeEnvironment = class PluginVSCodeEnvironment {
32
- async getExtensionsDirUri() {
33
- if (!this._extensionsDirUri) {
34
- const configDir = new uri_1.default(await this.environments.getConfigDirUri());
35
- this._extensionsDirUri = configDir.resolve('extensions');
36
- }
37
- return this._extensionsDirUri;
38
- }
39
- };
40
- __decorate([
41
- (0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
42
- __metadata("design:type", Object)
43
- ], PluginVSCodeEnvironment.prototype, "environments", void 0);
44
- PluginVSCodeEnvironment = __decorate([
45
- (0, inversify_1.injectable)()
46
- ], PluginVSCodeEnvironment);
47
- exports.PluginVSCodeEnvironment = PluginVSCodeEnvironment;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.PluginVSCodeEnvironment = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const env_variables_1 = require("@theia/core/lib/common/env-variables");
30
+ const uri_1 = require("@theia/core/lib/common/uri");
31
+ let PluginVSCodeEnvironment = class PluginVSCodeEnvironment {
32
+ async getExtensionsDirUri() {
33
+ if (!this._extensionsDirUri) {
34
+ const configDir = new uri_1.default(await this.environments.getConfigDirUri());
35
+ this._extensionsDirUri = configDir.resolve('extensions');
36
+ }
37
+ return this._extensionsDirUri;
38
+ }
39
+ };
40
+ __decorate([
41
+ (0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
42
+ __metadata("design:type", Object)
43
+ ], PluginVSCodeEnvironment.prototype, "environments", void 0);
44
+ PluginVSCodeEnvironment = __decorate([
45
+ (0, inversify_1.injectable)()
46
+ ], PluginVSCodeEnvironment);
47
+ exports.PluginVSCodeEnvironment = PluginVSCodeEnvironment;
48
48
  //# sourceMappingURL=plugin-vscode-environment.js.map
@@ -1,3 +1,3 @@
1
- export declare const VSCODE_DEFAULT_API_VERSION = "1.68.1";
2
- export declare const VSX_REGISTRY_URL_DEFAULT = "https://open-vsx.org";
1
+ export declare const VSCODE_DEFAULT_API_VERSION = "1.68.1";
2
+ export declare const VSX_REGISTRY_URL_DEFAULT = "https://open-vsx.org";
3
3
  //# sourceMappingURL=plugin-vscode-types.d.ts.map
@@ -1,22 +1,22 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 Ericsson and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.VSX_REGISTRY_URL_DEFAULT = exports.VSCODE_DEFAULT_API_VERSION = void 0;
19
- const api_1 = require("@theia/core/shared/@theia/application-package/lib/api");
20
- exports.VSCODE_DEFAULT_API_VERSION = api_1.DEFAULT_SUPPORTED_API_VERSION;
21
- exports.VSX_REGISTRY_URL_DEFAULT = 'https://open-vsx.org';
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VSX_REGISTRY_URL_DEFAULT = exports.VSCODE_DEFAULT_API_VERSION = void 0;
19
+ const api_1 = require("@theia/core/shared/@theia/application-package/lib/api");
20
+ exports.VSCODE_DEFAULT_API_VERSION = api_1.DEFAULT_SUPPORTED_API_VERSION;
21
+ exports.VSX_REGISTRY_URL_DEFAULT = 'https://open-vsx.org';
22
22
  //# sourceMappingURL=plugin-vscode-types.js.map
@@ -1,17 +1,17 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- /**
3
- * Static methods for identifying a plugin as the target of the VSCode deployment system.
4
- * In practice, this means that it will be resolved and deployed by the Open-VSX system.
5
- */
6
- export declare namespace VSCodeExtensionUri {
7
- const VSCODE_PREFIX = "vscode:extension/";
8
- /**
9
- * Should be used to prefix a plugin's ID to ensure that it is identified as a VSX Extension.
10
- * @returns `vscode:extension/${id}`
11
- */
12
- function toVsxExtensionUriString(id: string): string;
13
- function toUri(name: string, namespace: string): URI;
14
- function toUri(id: string): URI;
15
- function toId(uri: URI): string | undefined;
16
- }
1
+ import URI from '@theia/core/lib/common/uri';
2
+ /**
3
+ * Static methods for identifying a plugin as the target of the VSCode deployment system.
4
+ * In practice, this means that it will be resolved and deployed by the Open-VSX system.
5
+ */
6
+ export declare namespace VSCodeExtensionUri {
7
+ const VSCODE_PREFIX = "vscode:extension/";
8
+ /**
9
+ * Should be used to prefix a plugin's ID to ensure that it is identified as a VSX Extension.
10
+ * @returns `vscode:extension/${id}`
11
+ */
12
+ function toVsxExtensionUriString(id: string): string;
13
+ function toUri(name: string, namespace: string): URI;
14
+ function toUri(id: string): URI;
15
+ function toId(uri: URI): string | undefined;
16
+ }
17
17
  //# sourceMappingURL=plugin-vscode-uri.d.ts.map
@@ -1,52 +1,52 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2022 Ericsson and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.VSCodeExtensionUri = void 0;
19
- const uri_1 = require("@theia/core/lib/common/uri");
20
- /**
21
- * Static methods for identifying a plugin as the target of the VSCode deployment system.
22
- * In practice, this means that it will be resolved and deployed by the Open-VSX system.
23
- */
24
- var VSCodeExtensionUri;
25
- (function (VSCodeExtensionUri) {
26
- VSCodeExtensionUri.VSCODE_PREFIX = 'vscode:extension/';
27
- /**
28
- * Should be used to prefix a plugin's ID to ensure that it is identified as a VSX Extension.
29
- * @returns `vscode:extension/${id}`
30
- */
31
- function toVsxExtensionUriString(id) {
32
- return `${VSCodeExtensionUri.VSCODE_PREFIX}${id}`;
33
- }
34
- VSCodeExtensionUri.toVsxExtensionUriString = toVsxExtensionUriString;
35
- function toUri(idOrName, namespace) {
36
- if (typeof namespace === 'string') {
37
- return new uri_1.default(toVsxExtensionUriString(`${namespace}.${idOrName}`));
38
- }
39
- else {
40
- return new uri_1.default(toVsxExtensionUriString(idOrName));
41
- }
42
- }
43
- VSCodeExtensionUri.toUri = toUri;
44
- function toId(uri) {
45
- if (uri.scheme === 'vscode' && uri.path.dir.toString() === 'extension') {
46
- return uri.path.base;
47
- }
48
- return undefined;
49
- }
50
- VSCodeExtensionUri.toId = toId;
51
- })(VSCodeExtensionUri = exports.VSCodeExtensionUri || (exports.VSCodeExtensionUri = {}));
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2022 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VSCodeExtensionUri = void 0;
19
+ const uri_1 = require("@theia/core/lib/common/uri");
20
+ /**
21
+ * Static methods for identifying a plugin as the target of the VSCode deployment system.
22
+ * In practice, this means that it will be resolved and deployed by the Open-VSX system.
23
+ */
24
+ var VSCodeExtensionUri;
25
+ (function (VSCodeExtensionUri) {
26
+ VSCodeExtensionUri.VSCODE_PREFIX = 'vscode:extension/';
27
+ /**
28
+ * Should be used to prefix a plugin's ID to ensure that it is identified as a VSX Extension.
29
+ * @returns `vscode:extension/${id}`
30
+ */
31
+ function toVsxExtensionUriString(id) {
32
+ return `${VSCodeExtensionUri.VSCODE_PREFIX}${id}`;
33
+ }
34
+ VSCodeExtensionUri.toVsxExtensionUriString = toVsxExtensionUriString;
35
+ function toUri(idOrName, namespace) {
36
+ if (typeof namespace === 'string') {
37
+ return new uri_1.default(toVsxExtensionUriString(`${namespace}.${idOrName}`));
38
+ }
39
+ else {
40
+ return new uri_1.default(toVsxExtensionUriString(idOrName));
41
+ }
42
+ }
43
+ VSCodeExtensionUri.toUri = toUri;
44
+ function toId(uri) {
45
+ if (uri.scheme === 'vscode' && uri.path.dir.toString() === 'extension') {
46
+ return uri.path.base;
47
+ }
48
+ return undefined;
49
+ }
50
+ VSCodeExtensionUri.toId = toId;
51
+ })(VSCodeExtensionUri = exports.VSCodeExtensionUri || (exports.VSCodeExtensionUri = {}));
52
52
  //# sourceMappingURL=plugin-vscode-uri.js.map
@@ -1,3 +1,3 @@
1
- declare const _scope: any;
2
- declare const _getModule: () => any;
1
+ declare const _scope: any;
2
+ declare const _getModule: () => any;
3
3
  //# sourceMappingURL=plugin-vscode-init-fe.d.ts.map
@@ -1,38 +1,38 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 Arm and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
- const _scope = this;
18
- _scope.exports = {};
19
- const _getModule = () => {
20
- if (!_scope[_scope.frontendModuleName]) {
21
- _scope[_scope.frontendModuleName] = {};
22
- }
23
- return _scope[_scope.frontendModuleName];
24
- };
25
- Object.defineProperty(_scope.exports, 'activate', {
26
- set: value => _getModule().activate = value
27
- });
28
- Object.defineProperty(_scope.exports, 'deactivate', {
29
- set: value => _getModule().deactivate = value
30
- });
31
- _scope.require = (moduleName) => {
32
- const vscodeModuleName = 'vscode';
33
- if (moduleName === vscodeModuleName) {
34
- // Return the defaultApi
35
- return _scope.theia._empty;
36
- }
37
- };
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 Arm and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ const _scope = this;
18
+ _scope.exports = {};
19
+ const _getModule = () => {
20
+ if (!_scope[_scope.frontendModuleName]) {
21
+ _scope[_scope.frontendModuleName] = {};
22
+ }
23
+ return _scope[_scope.frontendModuleName];
24
+ };
25
+ Object.defineProperty(_scope.exports, 'activate', {
26
+ set: value => _getModule().activate = value
27
+ });
28
+ Object.defineProperty(_scope.exports, 'deactivate', {
29
+ set: value => _getModule().deactivate = value
30
+ });
31
+ _scope.require = (moduleName) => {
32
+ const vscodeModuleName = 'vscode';
33
+ if (moduleName === vscodeModuleName) {
34
+ // Return the defaultApi
35
+ return _scope.theia._empty;
36
+ }
37
+ };
38
38
  //# sourceMappingURL=plugin-vscode-init-fe.js.map
@@ -1,15 +1,15 @@
1
- import { PluginDeployerResolverContext } from '@theia/plugin-ext';
2
- import { LocalPluginDeployerResolver } from '@theia/plugin-ext/lib/main/node/resolvers/local-plugin-deployer-resolver';
3
- import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
4
- export declare class LocalVSIXFilePluginDeployerResolver extends LocalPluginDeployerResolver {
5
- static LOCAL_FILE: string;
6
- protected readonly environment: PluginVSCodeEnvironment;
7
- protected get supportedScheme(): string;
8
- accept(pluginId: string): boolean;
9
- resolveFromLocalPath(pluginResolverContext: PluginDeployerResolverContext, localPath: string): Promise<void>;
10
- /**
11
- * Ensures that a user-installed plugin file is transferred to the user extension folder.
12
- */
13
- protected ensureDiscoverability(localPath: string): Promise<string>;
14
- }
1
+ import { PluginDeployerResolverContext } from '@theia/plugin-ext';
2
+ import { LocalPluginDeployerResolver } from '@theia/plugin-ext/lib/main/node/resolvers/local-plugin-deployer-resolver';
3
+ import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
4
+ export declare class LocalVSIXFilePluginDeployerResolver extends LocalPluginDeployerResolver {
5
+ static LOCAL_FILE: string;
6
+ protected readonly environment: PluginVSCodeEnvironment;
7
+ protected get supportedScheme(): string;
8
+ accept(pluginId: string): boolean;
9
+ resolveFromLocalPath(pluginResolverContext: PluginDeployerResolverContext, localPath: string): Promise<void>;
10
+ /**
11
+ * Ensures that a user-installed plugin file is transferred to the user extension folder.
12
+ */
13
+ protected ensureDiscoverability(localPath: string): Promise<string>;
14
+ }
15
15
  //# sourceMappingURL=local-vsix-file-plugin-deployer-resolver.d.ts.map