@theia/vsx-registry 1.46.0-next.196 → 1.46.0-next.200
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/lib/node/vsx-cli-deployer-participant.js +3 -3
- package/lib/node/vsx-cli-deployer-participant.js.map +1 -1
- package/lib/node/vsx-remote-cli.d.ts +7 -0
- package/lib/node/vsx-remote-cli.d.ts.map +1 -0
- package/lib/node/vsx-remote-cli.js +40 -0
- package/lib/node/vsx-remote-cli.js.map +1 -0
- package/package.json +10 -10
- package/src/node/vsx-cli-deployer-participant.ts +3 -3
- package/src/node/vsx-remote-cli.ts +39 -0
|
@@ -25,7 +25,7 @@ const node_1 = require("@theia/core/lib/node");
|
|
|
25
25
|
const path = require("path");
|
|
26
26
|
let VsxCliDeployerParticipant = class VsxCliDeployerParticipant {
|
|
27
27
|
async onWillStart(context) {
|
|
28
|
-
const pluginUris = this.vsxCli.pluginsToInstall.map(async (id) => {
|
|
28
|
+
const pluginUris = await Promise.all(this.vsxCli.pluginsToInstall.map(async (id) => {
|
|
29
29
|
try {
|
|
30
30
|
const resolvedPath = path.resolve(id);
|
|
31
31
|
const stat = await fs.promises.stat(resolvedPath);
|
|
@@ -37,8 +37,8 @@ let VsxCliDeployerParticipant = class VsxCliDeployerParticipant {
|
|
|
37
37
|
// expected if file does not exist
|
|
38
38
|
}
|
|
39
39
|
return common_1.VSXExtensionUri.fromVersionedId(id).toString();
|
|
40
|
-
});
|
|
41
|
-
context.userEntries.push(...
|
|
40
|
+
}));
|
|
41
|
+
context.userEntries.push(...pluginUris);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
(0, tslib_1.__decorate)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vsx-cli-deployer-participant.js","sourceRoot":"","sources":["../../src/node/vsx-cli-deployer-participant.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAElE,uCAAmC;AACnC,sCAA4C;AAC5C,yBAAyB;AACzB,+CAA+C;AAC/C,6BAA6B;AAG7B,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAKlC,KAAK,CAAC,WAAW,CAAC,OAAmC;QACjD,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"vsx-cli-deployer-participant.js","sourceRoot":"","sources":["../../src/node/vsx-cli-deployer-participant.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAElE,uCAAmC;AACnC,sCAA4C;AAC5C,yBAAyB;AACzB,+CAA+C;AAC/C,6BAA6B;AAG7B,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAKlC,KAAK,CAAC,WAAW,CAAC,OAAmC;QACjD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;YAC7E,IAAI;gBACA,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBACtC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAClD,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;oBACf,OAAO,cAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC;iBAC3E;aACJ;YAAC,OAAO,CAAC,EAAE;gBACR,kCAAkC;aACrC;YACD,OAAO,wBAAe,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1D,CAAC,CAAC,CAAC,CAAC;QACJ,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAjBG;IADC,IAAA,kBAAM,EAAC,gBAAM,CAAC;2CACY,gBAAM;yDAAC;AAHzB,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAoBrC;AApBY,8DAAyB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
2
|
+
import { PluginDeployerHandler } from '@theia/plugin-ext';
|
|
3
|
+
export declare class VsxRemoteCli implements RemoteCliContribution {
|
|
4
|
+
protected readonly pluginDeployerHandler: PluginDeployerHandler;
|
|
5
|
+
enhanceArgs(context: RemoteCliContext): Promise<string[]>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=vsx-remote-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vsx-remote-cli.d.ts","sourceRoot":"","sources":["../../src/node/vsx-remote-cli.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAE9G,OAAO,EAAE,qBAAqB,EAAc,MAAM,mBAAmB,CAAC;AAEtE,qBACa,YAAa,YAAW,qBAAqB;IAGtD,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAE1D,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAYlE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2024 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-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.VsxRemoteCli = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const plugin_ext_1 = require("@theia/plugin-ext");
|
|
22
|
+
let VsxRemoteCli = class VsxRemoteCli {
|
|
23
|
+
async enhanceArgs(context) {
|
|
24
|
+
const deployedPlugins = await this.pluginDeployerHandler.getDeployedPlugins();
|
|
25
|
+
// Plugin IDs can be duplicated between frontend and backend plugins, so we create a set first
|
|
26
|
+
const installPluginArgs = Array.from(new Set(deployedPlugins
|
|
27
|
+
.filter(plugin => plugin.type === plugin_ext_1.PluginType.User)
|
|
28
|
+
.map(p => `--install-plugin=${p.metadata.model.id}`)));
|
|
29
|
+
return installPluginArgs;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
(0, tslib_1.__decorate)([
|
|
33
|
+
(0, inversify_1.inject)(plugin_ext_1.PluginDeployerHandler),
|
|
34
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
35
|
+
], VsxRemoteCli.prototype, "pluginDeployerHandler", void 0);
|
|
36
|
+
VsxRemoteCli = (0, tslib_1.__decorate)([
|
|
37
|
+
(0, inversify_1.injectable)()
|
|
38
|
+
], VsxRemoteCli);
|
|
39
|
+
exports.VsxRemoteCli = VsxRemoteCli;
|
|
40
|
+
//# sourceMappingURL=vsx-remote-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vsx-remote-cli.js","sourceRoot":"","sources":["../../src/node/vsx-remote-cli.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,4DAAkE;AAClE,kDAAsE;AAGtE,IAAa,YAAY,GAAzB,MAAa,YAAY;IAKrB,KAAK,CAAC,WAAW,CAAC,OAAyB;QACvC,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC;QAC9E,8FAA8F;QAC9F,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAChC,IAAI,GAAG,CACH,eAAe;aACV,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,uBAAU,CAAC,IAAI,CAAC;aACjD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAC3D,CACJ,CAAC;QACF,OAAO,iBAAiB,CAAC;IAC7B,CAAC;CACJ,CAAA;AAdG;IADC,IAAA,kBAAM,EAAC,kCAAqB,CAAC;;2DACkC;AAHvD,YAAY;IADxB,IAAA,sBAAU,GAAE;GACA,YAAY,CAiBxB;AAjBY,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/vsx-registry",
|
|
3
|
-
"version": "1.46.0-next.
|
|
3
|
+
"version": "1.46.0-next.200+44b4f27c6",
|
|
4
4
|
"description": "Theia - VSX Registry",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.46.0-next.
|
|
7
|
-
"@theia/filesystem": "1.46.0-next.
|
|
8
|
-
"@theia/navigator": "1.46.0-next.
|
|
9
|
-
"@theia/ovsx-client": "1.46.0-next.
|
|
10
|
-
"@theia/plugin-ext": "1.46.0-next.
|
|
11
|
-
"@theia/plugin-ext-vscode": "1.46.0-next.
|
|
12
|
-
"@theia/preferences": "1.46.0-next.
|
|
13
|
-
"@theia/workspace": "1.46.0-next.
|
|
6
|
+
"@theia/core": "1.46.0-next.200+44b4f27c6",
|
|
7
|
+
"@theia/filesystem": "1.46.0-next.200+44b4f27c6",
|
|
8
|
+
"@theia/navigator": "1.46.0-next.200+44b4f27c6",
|
|
9
|
+
"@theia/ovsx-client": "1.46.0-next.200+44b4f27c6",
|
|
10
|
+
"@theia/plugin-ext": "1.46.0-next.200+44b4f27c6",
|
|
11
|
+
"@theia/plugin-ext-vscode": "1.46.0-next.200+44b4f27c6",
|
|
12
|
+
"@theia/preferences": "1.46.0-next.200+44b4f27c6",
|
|
13
|
+
"@theia/workspace": "1.46.0-next.200+44b4f27c6",
|
|
14
14
|
"luxon": "^2.4.0",
|
|
15
15
|
"p-debounce": "^2.1.0",
|
|
16
16
|
"semver": "^7.5.4",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"nyc": {
|
|
61
61
|
"extends": "../../configs/nyc.json"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "44b4f27c63028c1bdc7dcd9b565d666428af6f97"
|
|
64
64
|
}
|
|
@@ -29,7 +29,7 @@ export class VsxCliDeployerParticipant implements PluginDeployerParticipant {
|
|
|
29
29
|
protected readonly vsxCli: VsxCli;
|
|
30
30
|
|
|
31
31
|
async onWillStart(context: PluginDeployerStartContext): Promise<void> {
|
|
32
|
-
const pluginUris = this.vsxCli.pluginsToInstall.map(async id => {
|
|
32
|
+
const pluginUris = await Promise.all(this.vsxCli.pluginsToInstall.map(async id => {
|
|
33
33
|
try {
|
|
34
34
|
const resolvedPath = path.resolve(id);
|
|
35
35
|
const stat = await fs.promises.stat(resolvedPath);
|
|
@@ -40,7 +40,7 @@ export class VsxCliDeployerParticipant implements PluginDeployerParticipant {
|
|
|
40
40
|
// expected if file does not exist
|
|
41
41
|
}
|
|
42
42
|
return VSXExtensionUri.fromVersionedId(id).toString();
|
|
43
|
-
});
|
|
44
|
-
context.userEntries.push(...
|
|
43
|
+
}));
|
|
44
|
+
context.userEntries.push(...pluginUris);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2024 TypeFox 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-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
18
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
|
+
import { PluginDeployerHandler, PluginType } from '@theia/plugin-ext';
|
|
20
|
+
|
|
21
|
+
@injectable()
|
|
22
|
+
export class VsxRemoteCli implements RemoteCliContribution {
|
|
23
|
+
|
|
24
|
+
@inject(PluginDeployerHandler)
|
|
25
|
+
protected readonly pluginDeployerHandler: PluginDeployerHandler;
|
|
26
|
+
|
|
27
|
+
async enhanceArgs(context: RemoteCliContext): Promise<string[]> {
|
|
28
|
+
const deployedPlugins = await this.pluginDeployerHandler.getDeployedPlugins();
|
|
29
|
+
// Plugin IDs can be duplicated between frontend and backend plugins, so we create a set first
|
|
30
|
+
const installPluginArgs = Array.from(
|
|
31
|
+
new Set(
|
|
32
|
+
deployedPlugins
|
|
33
|
+
.filter(plugin => plugin.type === PluginType.User)
|
|
34
|
+
.map(p => `--install-plugin=${p.metadata.model.id}`)
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
return installPluginArgs;
|
|
38
|
+
}
|
|
39
|
+
}
|