@theia/plugin-ext-vscode 1.22.0-next.9 → 1.23.0-next.1
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.
|
@@ -40,13 +40,13 @@ exports.doInitialization = (apiFactory, plugin) => {
|
|
|
40
40
|
};
|
|
41
41
|
function createVSCodeAPI(apiFactory, plugin) {
|
|
42
42
|
const vscode = Object.assign(apiFactory(plugin), { ExtensionKind });
|
|
43
|
-
// use Theia plugin api
|
|
43
|
+
// use Theia plugin api to implement vscode extensions api
|
|
44
44
|
vscode.extensions = {
|
|
45
45
|
get all() {
|
|
46
|
-
return vscode.plugins.all
|
|
46
|
+
return vscode.plugins.all;
|
|
47
47
|
},
|
|
48
48
|
getExtension(pluginId) {
|
|
49
|
-
return
|
|
49
|
+
return vscode.plugins.getPlugin(pluginId);
|
|
50
50
|
},
|
|
51
51
|
get onDidChange() {
|
|
52
52
|
return vscode.plugins.onDidChange;
|
|
@@ -82,18 +82,4 @@ function overrideInternalLoad() {
|
|
|
82
82
|
function findPlugin(filePath) {
|
|
83
83
|
return plugins.find(plugin => filePath.startsWith(plugin.pluginFolder));
|
|
84
84
|
}
|
|
85
|
-
function asExtension(plugin) {
|
|
86
|
-
if (!plugin) {
|
|
87
|
-
return plugin;
|
|
88
|
-
}
|
|
89
|
-
if (plugin.pluginPath) {
|
|
90
|
-
plugin.extensionPath = plugin.pluginPath;
|
|
91
|
-
}
|
|
92
|
-
if (plugin.pluginUri) {
|
|
93
|
-
plugin.extensionUri = plugin.pluginUri;
|
|
94
|
-
}
|
|
95
|
-
// stub as a local VS Code extension (not running on a remote workspace)
|
|
96
|
-
plugin.extensionKind = ExtensionKind.UI;
|
|
97
|
-
return plugin;
|
|
98
|
-
}
|
|
99
85
|
//# sourceMappingURL=plugin-vscode-init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-vscode-init.js","sourceRoot":"","sources":["../../src/node/plugin-vscode-init.ts"],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-next.1+b00dc837819",
|
|
4
4
|
"description": "Theia - Plugin Extension for VsCode",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/callhierarchy": "1.
|
|
7
|
-
"@theia/core": "1.
|
|
8
|
-
"@theia/editor": "1.
|
|
9
|
-
"@theia/filesystem": "1.
|
|
10
|
-
"@theia/monaco": "1.
|
|
11
|
-
"@theia/navigator": "1.
|
|
12
|
-
"@theia/plugin": "1.
|
|
13
|
-
"@theia/plugin-ext": "1.
|
|
14
|
-
"@theia/terminal": "1.
|
|
15
|
-
"@theia/userstorage": "1.
|
|
16
|
-
"@theia/workspace": "1.
|
|
6
|
+
"@theia/callhierarchy": "1.23.0-next.1+b00dc837819",
|
|
7
|
+
"@theia/core": "1.23.0-next.1+b00dc837819",
|
|
8
|
+
"@theia/editor": "1.23.0-next.1+b00dc837819",
|
|
9
|
+
"@theia/filesystem": "1.23.0-next.1+b00dc837819",
|
|
10
|
+
"@theia/monaco": "1.23.0-next.1+b00dc837819",
|
|
11
|
+
"@theia/navigator": "1.23.0-next.1+b00dc837819",
|
|
12
|
+
"@theia/plugin": "1.23.0-next.1+b00dc837819",
|
|
13
|
+
"@theia/plugin-ext": "1.23.0-next.1+b00dc837819",
|
|
14
|
+
"@theia/terminal": "1.23.0-next.1+b00dc837819",
|
|
15
|
+
"@theia/userstorage": "1.23.0-next.1+b00dc837819",
|
|
16
|
+
"@theia/workspace": "1.23.0-next.1+b00dc837819",
|
|
17
17
|
"@types/request": "^2.0.3",
|
|
18
18
|
"filenamify": "^4.1.0",
|
|
19
19
|
"request": "^2.82.0"
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"watch": "theiaext watch"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@theia/ext-scripts": "1.
|
|
55
|
+
"@theia/ext-scripts": "1.22.1"
|
|
56
56
|
},
|
|
57
57
|
"nyc": {
|
|
58
58
|
"extends": "../../configs/nyc.json"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b00dc8378196e1c6615c66630c7962dfc92b8ddb"
|
|
61
61
|
}
|
|
@@ -47,13 +47,13 @@ export const doInitialization: BackendInitializationFn = (apiFactory: PluginAPIF
|
|
|
47
47
|
function createVSCodeAPI(apiFactory: PluginAPIFactory, plugin: Plugin): typeof theia {
|
|
48
48
|
const vscode = Object.assign(apiFactory(plugin), { ExtensionKind });
|
|
49
49
|
|
|
50
|
-
// use Theia plugin api
|
|
50
|
+
// use Theia plugin api to implement vscode extensions api
|
|
51
51
|
(<any>vscode).extensions = {
|
|
52
52
|
get all(): any[] {
|
|
53
|
-
return vscode.plugins.all
|
|
53
|
+
return vscode.plugins.all;
|
|
54
54
|
},
|
|
55
55
|
getExtension(pluginId: string): any | undefined {
|
|
56
|
-
return
|
|
56
|
+
return vscode.plugins.getPlugin(pluginId);
|
|
57
57
|
},
|
|
58
58
|
get onDidChange(): theia.Event<void> {
|
|
59
59
|
return vscode.plugins.onDidChange;
|
|
@@ -96,19 +96,3 @@ function overrideInternalLoad(): void {
|
|
|
96
96
|
function findPlugin(filePath: string): Plugin | undefined {
|
|
97
97
|
return plugins.find(plugin => filePath.startsWith(plugin.pluginFolder));
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
function asExtension(plugin: any | undefined): any | undefined {
|
|
101
|
-
if (!plugin) {
|
|
102
|
-
return plugin;
|
|
103
|
-
}
|
|
104
|
-
if (plugin.pluginPath) {
|
|
105
|
-
plugin.extensionPath = plugin.pluginPath;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (plugin.pluginUri) {
|
|
109
|
-
plugin.extensionUri = plugin.pluginUri;
|
|
110
|
-
}
|
|
111
|
-
// stub as a local VS Code extension (not running on a remote workspace)
|
|
112
|
-
plugin.extensionKind = ExtensionKind.UI;
|
|
113
|
-
return plugin;
|
|
114
|
-
}
|