@theia/plugin-ext-vscode 1.34.3 → 1.34.4
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.
- package/LICENSE +641 -641
- package/README.md +32 -32
- package/lib/browser/plugin-vscode-commands-contribution.d.ts +79 -79
- package/lib/browser/plugin-vscode-commands-contribution.js +768 -768
- package/lib/browser/plugin-vscode-contribution.d.ts +5 -5
- package/lib/browser/plugin-vscode-contribution.js +53 -53
- package/lib/browser/plugin-vscode-frontend-module.d.ts +3 -3
- package/lib/browser/plugin-vscode-frontend-module.js +30 -30
- package/lib/common/plugin-vscode-environment.d.ts +7 -7
- package/lib/common/plugin-vscode-environment.js +47 -47
- package/lib/common/plugin-vscode-types.d.ts +2 -2
- package/lib/common/plugin-vscode-types.js +21 -21
- package/lib/common/plugin-vscode-uri.d.ts +16 -16
- package/lib/common/plugin-vscode-uri.js +51 -51
- package/lib/node/context/plugin-vscode-init-fe.d.ts +2 -2
- package/lib/node/context/plugin-vscode-init-fe.js +37 -37
- package/lib/node/local-vsix-file-plugin-deployer-resolver.d.ts +14 -14
- package/lib/node/local-vsix-file-plugin-deployer-resolver.js +77 -77
- package/lib/node/package.spec.js +25 -25
- package/lib/node/plugin-reader.d.ts +6 -6
- package/lib/node/plugin-reader.js +36 -36
- package/lib/node/plugin-vscode-backend-module.d.ts +3 -3
- package/lib/node/plugin-vscode-backend-module.js +43 -43
- package/lib/node/plugin-vscode-cli-contribution.d.ts +21 -21
- package/lib/node/plugin-vscode-cli-contribution.js +67 -67
- package/lib/node/plugin-vscode-deployer-participant.d.ts +6 -6
- package/lib/node/plugin-vscode-deployer-participant.js +43 -43
- package/lib/node/plugin-vscode-directory-handler.d.ts +21 -21
- package/lib/node/plugin-vscode-directory-handler.js +144 -144
- package/lib/node/plugin-vscode-file-handler.d.ts +11 -11
- package/lib/node/plugin-vscode-file-handler.js +82 -82
- package/lib/node/plugin-vscode-init.d.ts +2 -2
- package/lib/node/plugin-vscode-init.js +68 -68
- package/lib/node/scanner-vscode.d.ts +12 -12
- package/lib/node/scanner-vscode.js +111 -111
- package/package.json +15 -15
- package/src/browser/plugin-vscode-commands-contribution.ts +924 -924
- package/src/browser/plugin-vscode-contribution.ts +47 -47
- package/src/browser/plugin-vscode-frontend-module.ts +30 -30
- package/src/common/plugin-vscode-environment.ts +36 -36
- package/src/common/plugin-vscode-types.ts +20 -20
- package/src/common/plugin-vscode-uri.ts +47 -47
- package/src/node/context/plugin-vscode-init-fe.ts +43 -43
- package/src/node/local-vsix-file-plugin-deployer-resolver.ts +65 -65
- package/src/node/package.spec.ts +28 -28
- package/src/node/plugin-reader.ts +28 -28
- package/src/node/plugin-vscode-backend-module.ts +50 -50
- package/src/node/plugin-vscode-cli-contribution.ts +64 -64
- package/src/node/plugin-vscode-deployer-participant.ts +32 -32
- package/src/node/plugin-vscode-directory-handler.ts +141 -141
- package/src/node/plugin-vscode-file-handler.ts +72 -72
- package/src/node/plugin-vscode-init.ts +80 -80
- package/src/node/scanner-vscode.ts +108 -108
|
@@ -1,44 +1,44 @@
|
|
|
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.PluginVSCodeDeployerParticipant = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
|
|
30
|
-
let PluginVSCodeDeployerParticipant = class PluginVSCodeDeployerParticipant {
|
|
31
|
-
async onWillStart(context) {
|
|
32
|
-
const extensionsDirUri = await this.environments.getExtensionsDirUri();
|
|
33
|
-
context.userEntries.push(extensionsDirUri.withScheme('local-dir').toString());
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
|
|
38
|
-
__metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
|
|
39
|
-
], PluginVSCodeDeployerParticipant.prototype, "environments", void 0);
|
|
40
|
-
PluginVSCodeDeployerParticipant = __decorate([
|
|
41
|
-
(0, inversify_1.injectable)()
|
|
42
|
-
], PluginVSCodeDeployerParticipant);
|
|
43
|
-
exports.PluginVSCodeDeployerParticipant = PluginVSCodeDeployerParticipant;
|
|
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.PluginVSCodeDeployerParticipant = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
|
|
30
|
+
let PluginVSCodeDeployerParticipant = class PluginVSCodeDeployerParticipant {
|
|
31
|
+
async onWillStart(context) {
|
|
32
|
+
const extensionsDirUri = await this.environments.getExtensionsDirUri();
|
|
33
|
+
context.userEntries.push(extensionsDirUri.withScheme('local-dir').toString());
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
|
|
38
|
+
__metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
|
|
39
|
+
], PluginVSCodeDeployerParticipant.prototype, "environments", void 0);
|
|
40
|
+
PluginVSCodeDeployerParticipant = __decorate([
|
|
41
|
+
(0, inversify_1.injectable)()
|
|
42
|
+
], PluginVSCodeDeployerParticipant);
|
|
43
|
+
exports.PluginVSCodeDeployerParticipant = PluginVSCodeDeployerParticipant;
|
|
44
44
|
//# sourceMappingURL=plugin-vscode-deployer-participant.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { RecursivePartial } from '@theia/core';
|
|
2
|
-
import { PluginDeployerDirectoryHandler, PluginDeployerEntry, PluginDeployerDirectoryHandlerContext, PluginPackage } from '@theia/plugin-ext';
|
|
3
|
-
import { PluginCliContribution } from '@theia/plugin-ext/lib/main/node/plugin-cli-contribution';
|
|
4
|
-
export declare class PluginVsCodeDirectoryHandler implements PluginDeployerDirectoryHandler {
|
|
5
|
-
protected readonly deploymentDirectory: import("@theia/core").URI;
|
|
6
|
-
protected readonly pluginCli: PluginCliContribution;
|
|
7
|
-
accept(plugin: PluginDeployerEntry): boolean;
|
|
8
|
-
protected attemptResolution(plugin: PluginDeployerEntry): boolean;
|
|
9
|
-
protected deriveMetadata(plugin: PluginDeployerEntry): boolean;
|
|
10
|
-
handle(context: PluginDeployerDirectoryHandlerContext): Promise<void>;
|
|
11
|
-
protected copyDirectory(context: PluginDeployerDirectoryHandlerContext): Promise<void>;
|
|
12
|
-
protected resolveFromSources(plugin: PluginDeployerEntry): boolean;
|
|
13
|
-
protected resolveFromVSIX(plugin: PluginDeployerEntry): boolean;
|
|
14
|
-
protected resolveFromNpmTarball(plugin: PluginDeployerEntry): boolean;
|
|
15
|
-
protected resolvePackage(plugin: PluginDeployerEntry, options?: {
|
|
16
|
-
pluginPath: string;
|
|
17
|
-
pck?: RecursivePartial<PluginPackage>;
|
|
18
|
-
}): boolean;
|
|
19
|
-
protected requirePackage(pluginPath: string): PluginPackage | undefined;
|
|
20
|
-
protected getExtensionDir(context: PluginDeployerDirectoryHandlerContext): Promise<string>;
|
|
21
|
-
}
|
|
1
|
+
import { RecursivePartial } from '@theia/core';
|
|
2
|
+
import { PluginDeployerDirectoryHandler, PluginDeployerEntry, PluginDeployerDirectoryHandlerContext, PluginPackage } from '@theia/plugin-ext';
|
|
3
|
+
import { PluginCliContribution } from '@theia/plugin-ext/lib/main/node/plugin-cli-contribution';
|
|
4
|
+
export declare class PluginVsCodeDirectoryHandler implements PluginDeployerDirectoryHandler {
|
|
5
|
+
protected readonly deploymentDirectory: import("@theia/core").URI;
|
|
6
|
+
protected readonly pluginCli: PluginCliContribution;
|
|
7
|
+
accept(plugin: PluginDeployerEntry): boolean;
|
|
8
|
+
protected attemptResolution(plugin: PluginDeployerEntry): boolean;
|
|
9
|
+
protected deriveMetadata(plugin: PluginDeployerEntry): boolean;
|
|
10
|
+
handle(context: PluginDeployerDirectoryHandlerContext): Promise<void>;
|
|
11
|
+
protected copyDirectory(context: PluginDeployerDirectoryHandlerContext): Promise<void>;
|
|
12
|
+
protected resolveFromSources(plugin: PluginDeployerEntry): boolean;
|
|
13
|
+
protected resolveFromVSIX(plugin: PluginDeployerEntry): boolean;
|
|
14
|
+
protected resolveFromNpmTarball(plugin: PluginDeployerEntry): boolean;
|
|
15
|
+
protected resolvePackage(plugin: PluginDeployerEntry, options?: {
|
|
16
|
+
pluginPath: string;
|
|
17
|
+
pck?: RecursivePartial<PluginPackage>;
|
|
18
|
+
}): boolean;
|
|
19
|
+
protected requirePackage(pluginPath: string): PluginPackage | undefined;
|
|
20
|
+
protected getExtensionDir(context: PluginDeployerDirectoryHandlerContext): Promise<string>;
|
|
21
|
+
}
|
|
22
22
|
//# sourceMappingURL=plugin-vscode-directory-handler.d.ts.map
|
|
@@ -1,145 +1,145 @@
|
|
|
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
|
-
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.PluginVsCodeDirectoryHandler = void 0;
|
|
28
|
-
const path = require("path");
|
|
29
|
-
const filenamify = require("filenamify");
|
|
30
|
-
const fs = require("@theia/core/shared/fs-extra");
|
|
31
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
32
|
-
const plugin_ext_1 = require("@theia/plugin-ext");
|
|
33
|
-
const node_1 = require("@theia/core/lib/node");
|
|
34
|
-
const temp_dir_util_1 = require("@theia/plugin-ext/lib/main/node/temp-dir-util");
|
|
35
|
-
const plugin_cli_contribution_1 = require("@theia/plugin-ext/lib/main/node/plugin-cli-contribution");
|
|
36
|
-
let PluginVsCodeDirectoryHandler = class PluginVsCodeDirectoryHandler {
|
|
37
|
-
constructor() {
|
|
38
|
-
this.deploymentDirectory = node_1.FileUri.create((0, temp_dir_util_1.getTempDir)('vscode-copied'));
|
|
39
|
-
}
|
|
40
|
-
accept(plugin) {
|
|
41
|
-
console.debug(`Resolving "${plugin.id()}" as a VS Code extension...`);
|
|
42
|
-
return this.attemptResolution(plugin);
|
|
43
|
-
}
|
|
44
|
-
attemptResolution(plugin) {
|
|
45
|
-
return this.resolvePackage(plugin) || this.deriveMetadata(plugin);
|
|
46
|
-
}
|
|
47
|
-
deriveMetadata(plugin) {
|
|
48
|
-
return this.resolveFromSources(plugin) || this.resolveFromVSIX(plugin) || this.resolveFromNpmTarball(plugin);
|
|
49
|
-
}
|
|
50
|
-
async handle(context) {
|
|
51
|
-
await this.copyDirectory(context);
|
|
52
|
-
const types = [];
|
|
53
|
-
const packageJson = context.pluginEntry().getValue('package.json');
|
|
54
|
-
if (packageJson.browser) {
|
|
55
|
-
types.push(plugin_ext_1.PluginDeployerEntryType.FRONTEND);
|
|
56
|
-
}
|
|
57
|
-
if (packageJson.main || !packageJson.browser) {
|
|
58
|
-
types.push(plugin_ext_1.PluginDeployerEntryType.BACKEND);
|
|
59
|
-
}
|
|
60
|
-
context.pluginEntry().accept(...types);
|
|
61
|
-
}
|
|
62
|
-
async copyDirectory(context) {
|
|
63
|
-
if (this.pluginCli.copyUncompressedPlugins() && context.pluginEntry().type === plugin_ext_1.PluginType.User) {
|
|
64
|
-
const entry = context.pluginEntry();
|
|
65
|
-
const id = entry.id();
|
|
66
|
-
const pathToRestore = entry.path();
|
|
67
|
-
const origin = entry.originalPath();
|
|
68
|
-
const targetDir = await this.getExtensionDir(context);
|
|
69
|
-
try {
|
|
70
|
-
if (fs.existsSync(targetDir) || !entry.path().startsWith(origin)) {
|
|
71
|
-
console.log(`[${id}]: already copied.`);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
console.log(`[${id}]: copying to "${targetDir}"`);
|
|
75
|
-
await fs.mkdirp(node_1.FileUri.fsPath(this.deploymentDirectory));
|
|
76
|
-
await context.copy(origin, targetDir);
|
|
77
|
-
entry.updatePath(targetDir);
|
|
78
|
-
if (!this.deriveMetadata(entry)) {
|
|
79
|
-
throw new Error('Unable to resolve plugin metadata after copying');
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e) {
|
|
84
|
-
console.warn(`[${id}]: Error when copying.`, e);
|
|
85
|
-
entry.updatePath(pathToRestore);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
resolveFromSources(plugin) {
|
|
90
|
-
const pluginPath = plugin.path();
|
|
91
|
-
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
92
|
-
}
|
|
93
|
-
resolveFromVSIX(plugin) {
|
|
94
|
-
if (!fs.existsSync(path.join(plugin.path(), 'extension.vsixmanifest'))) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
const pluginPath = path.join(plugin.path(), 'extension');
|
|
98
|
-
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
99
|
-
}
|
|
100
|
-
resolveFromNpmTarball(plugin) {
|
|
101
|
-
const pluginPath = path.join(plugin.path(), 'package');
|
|
102
|
-
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
103
|
-
}
|
|
104
|
-
resolvePackage(plugin, options) {
|
|
105
|
-
var _a;
|
|
106
|
-
const { pluginPath, pck } = options || {
|
|
107
|
-
pluginPath: plugin.path(),
|
|
108
|
-
pck: plugin.getValue('package.json')
|
|
109
|
-
};
|
|
110
|
-
if (!pck || !pck.name || !pck.version || !pck.engines || !pck.engines.vscode) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
(_a = pck.publisher) !== null && _a !== void 0 ? _a : (pck.publisher = plugin_ext_1.PluginIdentifiers.UNPUBLISHED);
|
|
114
|
-
if (options) {
|
|
115
|
-
plugin.storeValue('package.json', pck);
|
|
116
|
-
plugin.rootPath = plugin.path();
|
|
117
|
-
plugin.updatePath(pluginPath);
|
|
118
|
-
}
|
|
119
|
-
console.log(`Resolved "${plugin.id()}" to a VS Code extension "${pck.name}@${pck.version}" with engines:`, pck.engines);
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
requirePackage(pluginPath) {
|
|
123
|
-
var _a;
|
|
124
|
-
try {
|
|
125
|
-
const plugin = fs.readJSONSync(path.join(pluginPath, 'package.json'));
|
|
126
|
-
(_a = plugin.publisher) !== null && _a !== void 0 ? _a : (plugin.publisher = plugin_ext_1.PluginIdentifiers.UNPUBLISHED);
|
|
127
|
-
return plugin;
|
|
128
|
-
}
|
|
129
|
-
catch (_b) {
|
|
130
|
-
return undefined;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
async getExtensionDir(context) {
|
|
134
|
-
return node_1.FileUri.fsPath(this.deploymentDirectory.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, inversify_1.inject)(plugin_cli_contribution_1.PluginCliContribution),
|
|
139
|
-
__metadata("design:type", plugin_cli_contribution_1.PluginCliContribution)
|
|
140
|
-
], PluginVsCodeDirectoryHandler.prototype, "pluginCli", void 0);
|
|
141
|
-
PluginVsCodeDirectoryHandler = __decorate([
|
|
142
|
-
(0, inversify_1.injectable)()
|
|
143
|
-
], PluginVsCodeDirectoryHandler);
|
|
144
|
-
exports.PluginVsCodeDirectoryHandler = PluginVsCodeDirectoryHandler;
|
|
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
|
+
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.PluginVsCodeDirectoryHandler = void 0;
|
|
28
|
+
const path = require("path");
|
|
29
|
+
const filenamify = require("filenamify");
|
|
30
|
+
const fs = require("@theia/core/shared/fs-extra");
|
|
31
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
32
|
+
const plugin_ext_1 = require("@theia/plugin-ext");
|
|
33
|
+
const node_1 = require("@theia/core/lib/node");
|
|
34
|
+
const temp_dir_util_1 = require("@theia/plugin-ext/lib/main/node/temp-dir-util");
|
|
35
|
+
const plugin_cli_contribution_1 = require("@theia/plugin-ext/lib/main/node/plugin-cli-contribution");
|
|
36
|
+
let PluginVsCodeDirectoryHandler = class PluginVsCodeDirectoryHandler {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.deploymentDirectory = node_1.FileUri.create((0, temp_dir_util_1.getTempDir)('vscode-copied'));
|
|
39
|
+
}
|
|
40
|
+
accept(plugin) {
|
|
41
|
+
console.debug(`Resolving "${plugin.id()}" as a VS Code extension...`);
|
|
42
|
+
return this.attemptResolution(plugin);
|
|
43
|
+
}
|
|
44
|
+
attemptResolution(plugin) {
|
|
45
|
+
return this.resolvePackage(plugin) || this.deriveMetadata(plugin);
|
|
46
|
+
}
|
|
47
|
+
deriveMetadata(plugin) {
|
|
48
|
+
return this.resolveFromSources(plugin) || this.resolveFromVSIX(plugin) || this.resolveFromNpmTarball(plugin);
|
|
49
|
+
}
|
|
50
|
+
async handle(context) {
|
|
51
|
+
await this.copyDirectory(context);
|
|
52
|
+
const types = [];
|
|
53
|
+
const packageJson = context.pluginEntry().getValue('package.json');
|
|
54
|
+
if (packageJson.browser) {
|
|
55
|
+
types.push(plugin_ext_1.PluginDeployerEntryType.FRONTEND);
|
|
56
|
+
}
|
|
57
|
+
if (packageJson.main || !packageJson.browser) {
|
|
58
|
+
types.push(plugin_ext_1.PluginDeployerEntryType.BACKEND);
|
|
59
|
+
}
|
|
60
|
+
context.pluginEntry().accept(...types);
|
|
61
|
+
}
|
|
62
|
+
async copyDirectory(context) {
|
|
63
|
+
if (this.pluginCli.copyUncompressedPlugins() && context.pluginEntry().type === plugin_ext_1.PluginType.User) {
|
|
64
|
+
const entry = context.pluginEntry();
|
|
65
|
+
const id = entry.id();
|
|
66
|
+
const pathToRestore = entry.path();
|
|
67
|
+
const origin = entry.originalPath();
|
|
68
|
+
const targetDir = await this.getExtensionDir(context);
|
|
69
|
+
try {
|
|
70
|
+
if (fs.existsSync(targetDir) || !entry.path().startsWith(origin)) {
|
|
71
|
+
console.log(`[${id}]: already copied.`);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
console.log(`[${id}]: copying to "${targetDir}"`);
|
|
75
|
+
await fs.mkdirp(node_1.FileUri.fsPath(this.deploymentDirectory));
|
|
76
|
+
await context.copy(origin, targetDir);
|
|
77
|
+
entry.updatePath(targetDir);
|
|
78
|
+
if (!this.deriveMetadata(entry)) {
|
|
79
|
+
throw new Error('Unable to resolve plugin metadata after copying');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e) {
|
|
84
|
+
console.warn(`[${id}]: Error when copying.`, e);
|
|
85
|
+
entry.updatePath(pathToRestore);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
resolveFromSources(plugin) {
|
|
90
|
+
const pluginPath = plugin.path();
|
|
91
|
+
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
92
|
+
}
|
|
93
|
+
resolveFromVSIX(plugin) {
|
|
94
|
+
if (!fs.existsSync(path.join(plugin.path(), 'extension.vsixmanifest'))) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
const pluginPath = path.join(plugin.path(), 'extension');
|
|
98
|
+
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
99
|
+
}
|
|
100
|
+
resolveFromNpmTarball(plugin) {
|
|
101
|
+
const pluginPath = path.join(plugin.path(), 'package');
|
|
102
|
+
return this.resolvePackage(plugin, { pluginPath, pck: this.requirePackage(pluginPath) });
|
|
103
|
+
}
|
|
104
|
+
resolvePackage(plugin, options) {
|
|
105
|
+
var _a;
|
|
106
|
+
const { pluginPath, pck } = options || {
|
|
107
|
+
pluginPath: plugin.path(),
|
|
108
|
+
pck: plugin.getValue('package.json')
|
|
109
|
+
};
|
|
110
|
+
if (!pck || !pck.name || !pck.version || !pck.engines || !pck.engines.vscode) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
(_a = pck.publisher) !== null && _a !== void 0 ? _a : (pck.publisher = plugin_ext_1.PluginIdentifiers.UNPUBLISHED);
|
|
114
|
+
if (options) {
|
|
115
|
+
plugin.storeValue('package.json', pck);
|
|
116
|
+
plugin.rootPath = plugin.path();
|
|
117
|
+
plugin.updatePath(pluginPath);
|
|
118
|
+
}
|
|
119
|
+
console.log(`Resolved "${plugin.id()}" to a VS Code extension "${pck.name}@${pck.version}" with engines:`, pck.engines);
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
requirePackage(pluginPath) {
|
|
123
|
+
var _a;
|
|
124
|
+
try {
|
|
125
|
+
const plugin = fs.readJSONSync(path.join(pluginPath, 'package.json'));
|
|
126
|
+
(_a = plugin.publisher) !== null && _a !== void 0 ? _a : (plugin.publisher = plugin_ext_1.PluginIdentifiers.UNPUBLISHED);
|
|
127
|
+
return plugin;
|
|
128
|
+
}
|
|
129
|
+
catch (_b) {
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async getExtensionDir(context) {
|
|
134
|
+
return node_1.FileUri.fsPath(this.deploymentDirectory.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, inversify_1.inject)(plugin_cli_contribution_1.PluginCliContribution),
|
|
139
|
+
__metadata("design:type", plugin_cli_contribution_1.PluginCliContribution)
|
|
140
|
+
], PluginVsCodeDirectoryHandler.prototype, "pluginCli", void 0);
|
|
141
|
+
PluginVsCodeDirectoryHandler = __decorate([
|
|
142
|
+
(0, inversify_1.injectable)()
|
|
143
|
+
], PluginVsCodeDirectoryHandler);
|
|
144
|
+
exports.PluginVsCodeDirectoryHandler = PluginVsCodeDirectoryHandler;
|
|
145
145
|
//# sourceMappingURL=plugin-vscode-directory-handler.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PluginDeployerFileHandler, PluginDeployerEntry, PluginDeployerFileHandlerContext } from '@theia/plugin-ext';
|
|
2
|
-
import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
|
|
3
|
-
export declare const isVSCodePluginFile: (pluginPath?: string | undefined) => boolean;
|
|
4
|
-
export declare class PluginVsCodeFileHandler implements PluginDeployerFileHandler {
|
|
5
|
-
protected readonly environment: PluginVSCodeEnvironment;
|
|
6
|
-
private readonly systemExtensionsDirUri;
|
|
7
|
-
accept(resolvedPlugin: PluginDeployerEntry): boolean;
|
|
8
|
-
handle(context: PluginDeployerFileHandlerContext): Promise<void>;
|
|
9
|
-
protected getExtensionDir(context: PluginDeployerFileHandlerContext): Promise<string>;
|
|
10
|
-
protected decompress(extensionDir: string, context: PluginDeployerFileHandlerContext): Promise<void>;
|
|
11
|
-
}
|
|
1
|
+
import { PluginDeployerFileHandler, PluginDeployerEntry, PluginDeployerFileHandlerContext } from '@theia/plugin-ext';
|
|
2
|
+
import { PluginVSCodeEnvironment } from '../common/plugin-vscode-environment';
|
|
3
|
+
export declare const isVSCodePluginFile: (pluginPath?: string | undefined) => boolean;
|
|
4
|
+
export declare class PluginVsCodeFileHandler implements PluginDeployerFileHandler {
|
|
5
|
+
protected readonly environment: PluginVSCodeEnvironment;
|
|
6
|
+
private readonly systemExtensionsDirUri;
|
|
7
|
+
accept(resolvedPlugin: PluginDeployerEntry): boolean;
|
|
8
|
+
handle(context: PluginDeployerFileHandlerContext): Promise<void>;
|
|
9
|
+
protected getExtensionDir(context: PluginDeployerFileHandlerContext): Promise<string>;
|
|
10
|
+
protected decompress(extensionDir: string, context: PluginDeployerFileHandlerContext): Promise<void>;
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=plugin-vscode-file-handler.d.ts.map
|
|
@@ -1,83 +1,83 @@
|
|
|
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
|
-
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.PluginVsCodeFileHandler = exports.isVSCodePluginFile = void 0;
|
|
28
|
-
const plugin_ext_1 = require("@theia/plugin-ext");
|
|
29
|
-
const fs = require("@theia/core/shared/fs-extra");
|
|
30
|
-
const path = require("path");
|
|
31
|
-
const filenamify = require("filenamify");
|
|
32
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
33
|
-
const temp_dir_util_1 = require("@theia/plugin-ext/lib/main/node/temp-dir-util");
|
|
34
|
-
const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
|
|
35
|
-
const file_uri_1 = require("@theia/core/lib/node/file-uri");
|
|
36
|
-
const isVSCodePluginFile = (pluginPath) => Boolean(pluginPath && (pluginPath.endsWith('.vsix') || pluginPath.endsWith('.tgz')));
|
|
37
|
-
exports.isVSCodePluginFile = isVSCodePluginFile;
|
|
38
|
-
let PluginVsCodeFileHandler = class PluginVsCodeFileHandler {
|
|
39
|
-
constructor() {
|
|
40
|
-
this.systemExtensionsDirUri = file_uri_1.FileUri.create((0, temp_dir_util_1.getTempDir)('vscode-unpacked'));
|
|
41
|
-
}
|
|
42
|
-
accept(resolvedPlugin) {
|
|
43
|
-
if (!resolvedPlugin.isFile()) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
return (0, exports.isVSCodePluginFile)(resolvedPlugin.path());
|
|
47
|
-
}
|
|
48
|
-
async handle(context) {
|
|
49
|
-
const id = context.pluginEntry().id();
|
|
50
|
-
const extensionDir = await this.getExtensionDir(context);
|
|
51
|
-
console.log(`[${id}]: trying to decompress into "${extensionDir}"...`);
|
|
52
|
-
if (context.pluginEntry().type === plugin_ext_1.PluginType.User && await fs.pathExists(extensionDir)) {
|
|
53
|
-
console.log(`[${id}]: already found`);
|
|
54
|
-
context.pluginEntry().updatePath(extensionDir);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
await this.decompress(extensionDir, context);
|
|
58
|
-
console.log(`[${id}]: decompressed`);
|
|
59
|
-
context.pluginEntry().updatePath(extensionDir);
|
|
60
|
-
}
|
|
61
|
-
async getExtensionDir(context) {
|
|
62
|
-
return file_uri_1.FileUri.fsPath(this.systemExtensionsDirUri.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
|
|
63
|
-
}
|
|
64
|
-
async decompress(extensionDir, context) {
|
|
65
|
-
await context.unzip(context.pluginEntry().path(), extensionDir);
|
|
66
|
-
if (context.pluginEntry().path().endsWith('.tgz')) {
|
|
67
|
-
const extensionPath = path.join(extensionDir, 'package');
|
|
68
|
-
const vscodeNodeModulesPath = path.join(extensionPath, 'vscode_node_modules.zip');
|
|
69
|
-
if (await fs.pathExists(vscodeNodeModulesPath)) {
|
|
70
|
-
await context.unzip(vscodeNodeModulesPath, path.join(extensionPath, 'node_modules'));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
|
|
77
|
-
__metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
|
|
78
|
-
], PluginVsCodeFileHandler.prototype, "environment", void 0);
|
|
79
|
-
PluginVsCodeFileHandler = __decorate([
|
|
80
|
-
(0, inversify_1.injectable)()
|
|
81
|
-
], PluginVsCodeFileHandler);
|
|
82
|
-
exports.PluginVsCodeFileHandler = PluginVsCodeFileHandler;
|
|
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
|
+
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.PluginVsCodeFileHandler = exports.isVSCodePluginFile = void 0;
|
|
28
|
+
const plugin_ext_1 = require("@theia/plugin-ext");
|
|
29
|
+
const fs = require("@theia/core/shared/fs-extra");
|
|
30
|
+
const path = require("path");
|
|
31
|
+
const filenamify = require("filenamify");
|
|
32
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
33
|
+
const temp_dir_util_1 = require("@theia/plugin-ext/lib/main/node/temp-dir-util");
|
|
34
|
+
const plugin_vscode_environment_1 = require("../common/plugin-vscode-environment");
|
|
35
|
+
const file_uri_1 = require("@theia/core/lib/node/file-uri");
|
|
36
|
+
const isVSCodePluginFile = (pluginPath) => Boolean(pluginPath && (pluginPath.endsWith('.vsix') || pluginPath.endsWith('.tgz')));
|
|
37
|
+
exports.isVSCodePluginFile = isVSCodePluginFile;
|
|
38
|
+
let PluginVsCodeFileHandler = class PluginVsCodeFileHandler {
|
|
39
|
+
constructor() {
|
|
40
|
+
this.systemExtensionsDirUri = file_uri_1.FileUri.create((0, temp_dir_util_1.getTempDir)('vscode-unpacked'));
|
|
41
|
+
}
|
|
42
|
+
accept(resolvedPlugin) {
|
|
43
|
+
if (!resolvedPlugin.isFile()) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return (0, exports.isVSCodePluginFile)(resolvedPlugin.path());
|
|
47
|
+
}
|
|
48
|
+
async handle(context) {
|
|
49
|
+
const id = context.pluginEntry().id();
|
|
50
|
+
const extensionDir = await this.getExtensionDir(context);
|
|
51
|
+
console.log(`[${id}]: trying to decompress into "${extensionDir}"...`);
|
|
52
|
+
if (context.pluginEntry().type === plugin_ext_1.PluginType.User && await fs.pathExists(extensionDir)) {
|
|
53
|
+
console.log(`[${id}]: already found`);
|
|
54
|
+
context.pluginEntry().updatePath(extensionDir);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
await this.decompress(extensionDir, context);
|
|
58
|
+
console.log(`[${id}]: decompressed`);
|
|
59
|
+
context.pluginEntry().updatePath(extensionDir);
|
|
60
|
+
}
|
|
61
|
+
async getExtensionDir(context) {
|
|
62
|
+
return file_uri_1.FileUri.fsPath(this.systemExtensionsDirUri.resolve(filenamify(context.pluginEntry().id(), { replacement: '_' })));
|
|
63
|
+
}
|
|
64
|
+
async decompress(extensionDir, context) {
|
|
65
|
+
await context.unzip(context.pluginEntry().path(), extensionDir);
|
|
66
|
+
if (context.pluginEntry().path().endsWith('.tgz')) {
|
|
67
|
+
const extensionPath = path.join(extensionDir, 'package');
|
|
68
|
+
const vscodeNodeModulesPath = path.join(extensionPath, 'vscode_node_modules.zip');
|
|
69
|
+
if (await fs.pathExists(vscodeNodeModulesPath)) {
|
|
70
|
+
await context.unzip(vscodeNodeModulesPath, path.join(extensionPath, 'node_modules'));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
|
|
77
|
+
__metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
|
|
78
|
+
], PluginVsCodeFileHandler.prototype, "environment", void 0);
|
|
79
|
+
PluginVsCodeFileHandler = __decorate([
|
|
80
|
+
(0, inversify_1.injectable)()
|
|
81
|
+
], PluginVsCodeFileHandler);
|
|
82
|
+
exports.PluginVsCodeFileHandler = PluginVsCodeFileHandler;
|
|
83
83
|
//# sourceMappingURL=plugin-vscode-file-handler.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BackendInitializationFn } from '@theia/plugin-ext';
|
|
2
|
-
export declare const doInitialization: BackendInitializationFn;
|
|
1
|
+
import { BackendInitializationFn } from '@theia/plugin-ext';
|
|
2
|
+
export declare const doInitialization: BackendInitializationFn;
|
|
3
3
|
//# sourceMappingURL=plugin-vscode-init.d.ts.map
|