@theia/plugin-ext 1.18.0-next.126 → 1.18.0-next.128
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/README.md +5 -0
- package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.js +7 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.js.map +1 -1
- package/package.json +23 -23
- package/src/hosted/node/hosted-plugin-deployer-handler.ts +7 -2
package/README.md
CHANGED
|
@@ -33,6 +33,11 @@ The implementation is inspired from: https://blog.mattbierner.com/vscode-webview
|
|
|
33
33
|
When you change the host pattern via the `THEIA_WEBVIEW_ENDPOINT_PATTERN` environment variable warning will be emitted both from the frontend and from the backend.
|
|
34
34
|
You can disable those warnings by setting `warnOnPotentiallyInsecureHostPattern: false` in the appropriate application configurations in your application's `package.json`.
|
|
35
35
|
|
|
36
|
+
## Runtime System Plugin Resolvement
|
|
37
|
+
|
|
38
|
+
The backend application property `resolveSystemPlugins` is used to control the resolvement behavior for system plugins (builtins).
|
|
39
|
+
The property is used to control whether or not extension-packs and extension-dependencies are resolved at runtime.
|
|
40
|
+
|
|
36
41
|
## Additional Information
|
|
37
42
|
|
|
38
43
|
- [API documentation for `@theia/plugin-ext`](https://eclipse-theia.github.io/theia/docs/next/modules/plugin_ext.html)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugin-deployer-handler.d.ts","sourceRoot":"","sources":["../../../src/hosted/node/hosted-plugin-deployer-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hosted-plugin-deployer-handler.d.ts","sourceRoot":"","sources":["../../../src/hosted/node/hosted-pl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O,CAAC,OAAO,CAAC;CAiB3D"}
|
|
@@ -28,9 +28,11 @@ exports.HostedPluginDeployerHandler = void 0;
|
|
|
28
28
|
const fs = require("@theia/core/shared/fs-extra");
|
|
29
29
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
30
|
const core_1 = require("@theia/core");
|
|
31
|
+
const plugin_protocol_1 = require("../../common/plugin-protocol");
|
|
31
32
|
const plugin_reader_1 = require("./plugin-reader");
|
|
32
33
|
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
33
34
|
const hosted_plugin_localization_service_1 = require("./hosted-plugin-localization-service");
|
|
35
|
+
const backend_application_config_provider_1 = require("@theia/core/lib/node/backend-application-config-provider");
|
|
34
36
|
let HostedPluginDeployerHandler = class HostedPluginDeployerHandler {
|
|
35
37
|
constructor() {
|
|
36
38
|
this.deployedLocations = new Map();
|
|
@@ -76,7 +78,11 @@ let HostedPluginDeployerHandler = class HostedPluginDeployerHandler {
|
|
|
76
78
|
}
|
|
77
79
|
const metadata = this.reader.readMetadata(manifest);
|
|
78
80
|
const dependencies = { metadata };
|
|
79
|
-
|
|
81
|
+
// Do not resolve system (aka builtin) plugins because it should be done statically at build time.
|
|
82
|
+
const { resolveSystemPlugins = true } = backend_application_config_provider_1.BackendApplicationConfigProvider.get();
|
|
83
|
+
if (resolveSystemPlugins || entry.type !== plugin_protocol_1.PluginType.System) {
|
|
84
|
+
dependencies.mapping = this.reader.readDependencies(manifest);
|
|
85
|
+
}
|
|
80
86
|
return dependencies;
|
|
81
87
|
}
|
|
82
88
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugin-deployer-handler.js","sourceRoot":"","sources":["../../../src/hosted/node/hosted-plugin-deployer-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,kDAAkD;AAClD,4DAAkE;AAClE,sCAAsC;
|
|
1
|
+
{"version":3,"file":"hosted-plugin-deployer-handler.js","s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AGnC;IADC,kBAAM,CAAC,kCAAkB,CAAC;8BACF,kCAAkB;2DAAC;AAG5C;IADC,kBAAM,CAAC,oEAA+B,CAAC;8BACF,oEAA+B;wEAAC;AAT7D,2BAA2B;IADvC,sBAAU,EAAE;GACA,2BAA2B,CA6IvC;AA7IY,kEAA2B"}
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.18.0-next.
|
|
3
|
+
"version": "1.18.0-next.128+5049437eeba",
|
|
4
4
|
"description": "Theia - Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/bulk-edit": "1.18.0-next.
|
|
9
|
-
"@theia/callhierarchy": "1.18.0-next.
|
|
10
|
-
"@theia/console": "1.18.0-next.
|
|
11
|
-
"@theia/core": "1.18.0-next.
|
|
12
|
-
"@theia/debug": "1.18.0-next.
|
|
13
|
-
"@theia/editor": "1.18.0-next.
|
|
14
|
-
"@theia/file-search": "1.18.0-next.
|
|
15
|
-
"@theia/filesystem": "1.18.0-next.
|
|
16
|
-
"@theia/markers": "1.18.0-next.
|
|
17
|
-
"@theia/messages": "1.18.0-next.
|
|
18
|
-
"@theia/monaco": "1.18.0-next.
|
|
19
|
-
"@theia/navigator": "1.18.0-next.
|
|
20
|
-
"@theia/output": "1.18.0-next.
|
|
21
|
-
"@theia/plugin": "1.18.0-next.
|
|
22
|
-
"@theia/preferences": "1.18.0-next.
|
|
23
|
-
"@theia/scm": "1.18.0-next.
|
|
24
|
-
"@theia/search-in-workspace": "1.18.0-next.
|
|
25
|
-
"@theia/task": "1.18.0-next.
|
|
26
|
-
"@theia/terminal": "1.18.0-next.
|
|
27
|
-
"@theia/timeline": "1.18.0-next.
|
|
28
|
-
"@theia/workspace": "1.18.0-next.
|
|
8
|
+
"@theia/bulk-edit": "1.18.0-next.128+5049437eeba",
|
|
9
|
+
"@theia/callhierarchy": "1.18.0-next.128+5049437eeba",
|
|
10
|
+
"@theia/console": "1.18.0-next.128+5049437eeba",
|
|
11
|
+
"@theia/core": "1.18.0-next.128+5049437eeba",
|
|
12
|
+
"@theia/debug": "1.18.0-next.128+5049437eeba",
|
|
13
|
+
"@theia/editor": "1.18.0-next.128+5049437eeba",
|
|
14
|
+
"@theia/file-search": "1.18.0-next.128+5049437eeba",
|
|
15
|
+
"@theia/filesystem": "1.18.0-next.128+5049437eeba",
|
|
16
|
+
"@theia/markers": "1.18.0-next.128+5049437eeba",
|
|
17
|
+
"@theia/messages": "1.18.0-next.128+5049437eeba",
|
|
18
|
+
"@theia/monaco": "1.18.0-next.128+5049437eeba",
|
|
19
|
+
"@theia/navigator": "1.18.0-next.128+5049437eeba",
|
|
20
|
+
"@theia/output": "1.18.0-next.128+5049437eeba",
|
|
21
|
+
"@theia/plugin": "1.18.0-next.128+5049437eeba",
|
|
22
|
+
"@theia/preferences": "1.18.0-next.128+5049437eeba",
|
|
23
|
+
"@theia/scm": "1.18.0-next.128+5049437eeba",
|
|
24
|
+
"@theia/search-in-workspace": "1.18.0-next.128+5049437eeba",
|
|
25
|
+
"@theia/task": "1.18.0-next.128+5049437eeba",
|
|
26
|
+
"@theia/terminal": "1.18.0-next.128+5049437eeba",
|
|
27
|
+
"@theia/timeline": "1.18.0-next.128+5049437eeba",
|
|
28
|
+
"@theia/workspace": "1.18.0-next.128+5049437eeba",
|
|
29
29
|
"@types/markdown-it": "*",
|
|
30
30
|
"@types/mime": "^2.0.1",
|
|
31
31
|
"decompress": "^4.2.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"nyc": {
|
|
93
93
|
"extends": "../../configs/nyc.json"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "5049437eeba18e1faebf811a03f39fb86adda8c2"
|
|
96
96
|
}
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
import * as fs from '@theia/core/shared/fs-extra';
|
|
18
18
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ILogger } from '@theia/core';
|
|
20
|
-
import { PluginDeployerHandler, PluginDeployerEntry, PluginEntryPoint, DeployedPlugin, PluginDependencies } from '../../common/plugin-protocol';
|
|
20
|
+
import { PluginDeployerHandler, PluginDeployerEntry, PluginEntryPoint, DeployedPlugin, PluginDependencies, PluginType } from '../../common/plugin-protocol';
|
|
21
21
|
import { HostedPluginReader } from './plugin-reader';
|
|
22
22
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
23
23
|
import { HostedPluginLocalizationService } from './hosted-plugin-localization-service';
|
|
24
|
+
import { BackendApplicationConfigProvider } from '@theia/core/lib/node/backend-application-config-provider';
|
|
24
25
|
|
|
25
26
|
@injectable()
|
|
26
27
|
export class HostedPluginDeployerHandler implements PluginDeployerHandler {
|
|
@@ -84,7 +85,11 @@ export class HostedPluginDeployerHandler implements PluginDeployerHandler {
|
|
|
84
85
|
}
|
|
85
86
|
const metadata = this.reader.readMetadata(manifest);
|
|
86
87
|
const dependencies: PluginDependencies = { metadata };
|
|
87
|
-
|
|
88
|
+
// Do not resolve system (aka builtin) plugins because it should be done statically at build time.
|
|
89
|
+
const { resolveSystemPlugins = true } = BackendApplicationConfigProvider.get();
|
|
90
|
+
if (resolveSystemPlugins || entry.type !== PluginType.System) {
|
|
91
|
+
dependencies.mapping = this.reader.readDependencies(manifest);
|
|
92
|
+
}
|
|
88
93
|
return dependencies;
|
|
89
94
|
} catch (e) {
|
|
90
95
|
console.error(`Failed to load plugin dependencies from '${pluginPath}' path`, e);
|