@theia/vsx-registry 1.34.2 → 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.
- package/LICENSE +641 -641
- package/README.md +36 -36
- package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts +17 -17
- package/lib/browser/recommended-extensions/preference-provider-overrides.js +95 -95
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts +14 -14
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js +94 -94
- package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.d.ts +11 -11
- package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.js +59 -59
- package/lib/browser/vsx-extension-commands.d.ts +13 -13
- package/lib/browser/vsx-extension-commands.js +63 -63
- package/lib/browser/vsx-extension-editor-manager.d.ts +9 -9
- package/lib/browser/vsx-extension-editor-manager.js +49 -49
- package/lib/browser/vsx-extension-editor.d.ts +21 -21
- package/lib/browser/vsx-extension-editor.js +109 -109
- package/lib/browser/vsx-extension.d.ts +141 -141
- package/lib/browser/vsx-extension.js +581 -581
- package/lib/browser/vsx-extensions-contribution.d.ts +54 -54
- package/lib/browser/vsx-extensions-contribution.js +328 -328
- package/lib/browser/vsx-extensions-model.d.ts +67 -67
- package/lib/browser/vsx-extensions-model.js +368 -368
- package/lib/browser/vsx-extensions-search-bar.d.ts +14 -14
- package/lib/browser/vsx-extensions-search-bar.js +75 -75
- package/lib/browser/vsx-extensions-search-model.d.ts +21 -21
- package/lib/browser/vsx-extensions-search-model.js +70 -70
- package/lib/browser/vsx-extensions-source.d.ts +19 -19
- package/lib/browser/vsx-extensions-source.js +102 -102
- package/lib/browser/vsx-extensions-view-container.d.ts +49 -49
- package/lib/browser/vsx-extensions-view-container.js +179 -179
- package/lib/browser/vsx-extensions-widget.d.ts +29 -29
- package/lib/browser/vsx-extensions-widget.js +143 -143
- package/lib/browser/vsx-language-quick-pick-service.d.ts +13 -13
- package/lib/browser/vsx-language-quick-pick-service.js +103 -103
- package/lib/browser/vsx-registry-frontend-module.d.ts +4 -4
- package/lib/browser/vsx-registry-frontend-module.js +101 -101
- package/lib/common/ovsx-client-provider.d.ts +6 -6
- package/lib/common/ovsx-client-provider.js +28 -28
- package/lib/common/vsx-environment.d.ts +7 -7
- package/lib/common/vsx-environment.js +20 -20
- package/lib/common/vsx-extension-uri.d.ts +3 -3
- package/lib/common/vsx-extension-uri.js +20 -20
- package/lib/node/vsx-environment-impl.d.ts +10 -10
- package/lib/node/vsx-environment-impl.js +53 -53
- package/lib/node/vsx-extension-resolver.d.ts +17 -17
- package/lib/node/vsx-extension-resolver.js +137 -137
- package/lib/node/vsx-registry-backend-module.d.ts +3 -3
- package/lib/node/vsx-registry-backend-module.js +35 -35
- package/lib/package.spec.js +25 -25
- package/package.json +10 -10
- package/src/browser/recommended-extensions/preference-provider-overrides.ts +99 -99
- package/src/browser/recommended-extensions/recommended-extensions-json-schema.ts +74 -74
- package/src/browser/recommended-extensions/recommended-extensions-preference-contribution.ts +68 -68
- package/src/browser/style/extensions.svg +4 -4
- package/src/browser/style/index.css +354 -354
- package/src/browser/vsx-extension-commands.ts +63 -63
- package/src/browser/vsx-extension-editor-manager.ts +42 -42
- package/src/browser/vsx-extension-editor.tsx +96 -96
- package/src/browser/vsx-extension.tsx +662 -662
- package/src/browser/vsx-extensions-contribution.ts +315 -315
- package/src/browser/vsx-extensions-model.ts +366 -366
- package/src/browser/vsx-extensions-search-bar.tsx +69 -69
- package/src/browser/vsx-extensions-search-model.ts +61 -61
- package/src/browser/vsx-extensions-source.ts +83 -83
- package/src/browser/vsx-extensions-view-container.ts +179 -179
- package/src/browser/vsx-extensions-widget.tsx +138 -138
- package/src/browser/vsx-language-quick-pick-service.ts +97 -97
- package/src/browser/vsx-registry-frontend-module.ts +113 -113
- package/src/common/ovsx-client-provider.ts +30 -30
- package/src/common/vsx-environment.ts +24 -24
- package/src/common/vsx-extension-uri.ts +20 -20
- package/src/node/vsx-environment-impl.ts +41 -41
- package/src/node/vsx-extension-resolver.ts +111 -111
- package/src/node/vsx-registry-backend-module.ts +37 -37
- package/src/package.spec.ts +29 -29
|
@@ -1,102 +1,102 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
require("../../src/browser/style/index.css");
|
|
19
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const vsx_extensions_view_container_1 = require("./vsx-extensions-view-container");
|
|
22
|
-
const vsx_extensions_contribution_1 = require("./vsx-extensions-contribution");
|
|
23
|
-
const vsx_extensions_search_bar_1 = require("./vsx-extensions-search-bar");
|
|
24
|
-
const vsx_extensions_model_1 = require("./vsx-extensions-model");
|
|
25
|
-
const color_application_contribution_1 = require("@theia/core/lib/browser/color-application-contribution");
|
|
26
|
-
const vsx_extensions_widget_1 = require("./vsx-extensions-widget");
|
|
27
|
-
const vsx_extension_1 = require("./vsx-extension");
|
|
28
|
-
const vsx_extension_editor_1 = require("./vsx-extension-editor");
|
|
29
|
-
const vsx_extension_editor_manager_1 = require("./vsx-extension-editor-manager");
|
|
30
|
-
const vsx_extensions_source_1 = require("./vsx-extensions-source");
|
|
31
|
-
const vsx_extensions_search_model_1 = require("./vsx-extensions-search-model");
|
|
32
|
-
const recommended_extensions_preference_contribution_1 = require("./recommended-extensions/recommended-extensions-preference-contribution");
|
|
33
|
-
const preference_provider_overrides_1 = require("./recommended-extensions/preference-provider-overrides");
|
|
34
|
-
const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
|
|
35
|
-
const vsx_environment_1 = require("../common/vsx-environment");
|
|
36
|
-
const request_1 = require("@theia/core/shared/@theia/request");
|
|
37
|
-
const language_quick_pick_service_1 = require("@theia/core/lib/browser/i18n/language-quick-pick-service");
|
|
38
|
-
const vsx_language_quick_pick_service_1 = require("./vsx-language-quick-pick-service");
|
|
39
|
-
exports.default = new inversify_1.ContainerModule((bind, unbind, _, rebind) => {
|
|
40
|
-
bind(ovsx_client_provider_1.OVSXClientProvider).toDynamicValue(ctx => {
|
|
41
|
-
const clientPromise = (0, ovsx_client_provider_1.createOVSXClient)(ctx.container.get(vsx_environment_1.VSXEnvironment), ctx.container.get(request_1.RequestService));
|
|
42
|
-
return () => clientPromise;
|
|
43
|
-
}).inSingletonScope();
|
|
44
|
-
bind(vsx_environment_1.VSXEnvironment).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createProxy(ctx.container, vsx_environment_1.VSX_ENVIRONMENT_PATH)).inSingletonScope();
|
|
45
|
-
bind(vsx_extension_1.VSXExtension).toSelf();
|
|
46
|
-
bind(vsx_extension_1.VSXExtensionFactory).toFactory(ctx => (option) => {
|
|
47
|
-
const child = ctx.container.createChild();
|
|
48
|
-
child.bind(vsx_extension_1.VSXExtensionOptions).toConstantValue(option);
|
|
49
|
-
return child.get(vsx_extension_1.VSXExtension);
|
|
50
|
-
});
|
|
51
|
-
bind(vsx_extensions_model_1.VSXExtensionsModel).toSelf().inSingletonScope();
|
|
52
|
-
bind(vsx_extension_editor_1.VSXExtensionEditor).toSelf();
|
|
53
|
-
bind(browser_1.WidgetFactory).toDynamicValue(ctx => ({
|
|
54
|
-
id: vsx_extension_editor_1.VSXExtensionEditor.ID,
|
|
55
|
-
createWidget: async (options) => {
|
|
56
|
-
const extension = await ctx.container.get(vsx_extensions_model_1.VSXExtensionsModel).resolve(options.id);
|
|
57
|
-
const child = ctx.container.createChild();
|
|
58
|
-
child.bind(vsx_extension_1.VSXExtension).toConstantValue(extension);
|
|
59
|
-
return child.get(vsx_extension_editor_1.VSXExtensionEditor);
|
|
60
|
-
}
|
|
61
|
-
})).inSingletonScope();
|
|
62
|
-
bind(vsx_extension_editor_manager_1.VSXExtensionEditorManager).toSelf().inSingletonScope();
|
|
63
|
-
bind(browser_1.OpenHandler).toService(vsx_extension_editor_manager_1.VSXExtensionEditorManager);
|
|
64
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
65
|
-
id: vsx_extensions_widget_1.VSXExtensionsWidget.ID,
|
|
66
|
-
createWidget: async (options) => vsx_extensions_widget_1.VSXExtensionsWidget.createWidget(container, options)
|
|
67
|
-
})).inSingletonScope();
|
|
68
|
-
bind(browser_1.WidgetFactory).toDynamicValue(ctx => ({
|
|
69
|
-
id: vsx_extensions_view_container_1.VSXExtensionsViewContainer.ID,
|
|
70
|
-
createWidget: async () => {
|
|
71
|
-
const child = ctx.container.createChild();
|
|
72
|
-
child.bind(browser_1.ViewContainerIdentifier).toConstantValue({
|
|
73
|
-
id: vsx_extensions_view_container_1.VSXExtensionsViewContainer.ID,
|
|
74
|
-
progressLocationId: 'extensions'
|
|
75
|
-
});
|
|
76
|
-
child.bind(vsx_extensions_view_container_1.VSXExtensionsViewContainer).toSelf();
|
|
77
|
-
const viewContainer = child.get(vsx_extensions_view_container_1.VSXExtensionsViewContainer);
|
|
78
|
-
const widgetManager = child.get(browser_1.WidgetManager);
|
|
79
|
-
for (const id of [
|
|
80
|
-
vsx_extensions_source_1.VSXExtensionsSourceOptions.SEARCH_RESULT,
|
|
81
|
-
vsx_extensions_source_1.VSXExtensionsSourceOptions.RECOMMENDED,
|
|
82
|
-
vsx_extensions_source_1.VSXExtensionsSourceOptions.INSTALLED,
|
|
83
|
-
vsx_extensions_source_1.VSXExtensionsSourceOptions.BUILT_IN,
|
|
84
|
-
]) {
|
|
85
|
-
const widget = await widgetManager.getOrCreateWidget(vsx_extensions_widget_1.VSXExtensionsWidget.ID, { id });
|
|
86
|
-
viewContainer.addWidget(widget, {
|
|
87
|
-
initiallyCollapsed: id === vsx_extensions_source_1.VSXExtensionsSourceOptions.BUILT_IN
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
return viewContainer;
|
|
91
|
-
}
|
|
92
|
-
})).inSingletonScope();
|
|
93
|
-
bind(vsx_extensions_search_model_1.VSXExtensionsSearchModel).toSelf().inSingletonScope();
|
|
94
|
-
bind(vsx_extensions_search_bar_1.VSXExtensionsSearchBar).toSelf().inSingletonScope();
|
|
95
|
-
rebind(language_quick_pick_service_1.LanguageQuickPickService).to(vsx_language_quick_pick_service_1.VSXLanguageQuickPickService).inSingletonScope();
|
|
96
|
-
(0, browser_1.bindViewContribution)(bind, vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
97
|
-
bind(browser_1.FrontendApplicationContribution).toService(vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
98
|
-
bind(color_application_contribution_1.ColorContribution).toService(vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
99
|
-
(0, recommended_extensions_preference_contribution_1.bindExtensionPreferences)(bind);
|
|
100
|
-
(0, preference_provider_overrides_1.bindPreferenceProviderOverrides)(bind, unbind);
|
|
101
|
-
});
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
require("../../src/browser/style/index.css");
|
|
19
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
+
const vsx_extensions_view_container_1 = require("./vsx-extensions-view-container");
|
|
22
|
+
const vsx_extensions_contribution_1 = require("./vsx-extensions-contribution");
|
|
23
|
+
const vsx_extensions_search_bar_1 = require("./vsx-extensions-search-bar");
|
|
24
|
+
const vsx_extensions_model_1 = require("./vsx-extensions-model");
|
|
25
|
+
const color_application_contribution_1 = require("@theia/core/lib/browser/color-application-contribution");
|
|
26
|
+
const vsx_extensions_widget_1 = require("./vsx-extensions-widget");
|
|
27
|
+
const vsx_extension_1 = require("./vsx-extension");
|
|
28
|
+
const vsx_extension_editor_1 = require("./vsx-extension-editor");
|
|
29
|
+
const vsx_extension_editor_manager_1 = require("./vsx-extension-editor-manager");
|
|
30
|
+
const vsx_extensions_source_1 = require("./vsx-extensions-source");
|
|
31
|
+
const vsx_extensions_search_model_1 = require("./vsx-extensions-search-model");
|
|
32
|
+
const recommended_extensions_preference_contribution_1 = require("./recommended-extensions/recommended-extensions-preference-contribution");
|
|
33
|
+
const preference_provider_overrides_1 = require("./recommended-extensions/preference-provider-overrides");
|
|
34
|
+
const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
|
|
35
|
+
const vsx_environment_1 = require("../common/vsx-environment");
|
|
36
|
+
const request_1 = require("@theia/core/shared/@theia/request");
|
|
37
|
+
const language_quick_pick_service_1 = require("@theia/core/lib/browser/i18n/language-quick-pick-service");
|
|
38
|
+
const vsx_language_quick_pick_service_1 = require("./vsx-language-quick-pick-service");
|
|
39
|
+
exports.default = new inversify_1.ContainerModule((bind, unbind, _, rebind) => {
|
|
40
|
+
bind(ovsx_client_provider_1.OVSXClientProvider).toDynamicValue(ctx => {
|
|
41
|
+
const clientPromise = (0, ovsx_client_provider_1.createOVSXClient)(ctx.container.get(vsx_environment_1.VSXEnvironment), ctx.container.get(request_1.RequestService));
|
|
42
|
+
return () => clientPromise;
|
|
43
|
+
}).inSingletonScope();
|
|
44
|
+
bind(vsx_environment_1.VSXEnvironment).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createProxy(ctx.container, vsx_environment_1.VSX_ENVIRONMENT_PATH)).inSingletonScope();
|
|
45
|
+
bind(vsx_extension_1.VSXExtension).toSelf();
|
|
46
|
+
bind(vsx_extension_1.VSXExtensionFactory).toFactory(ctx => (option) => {
|
|
47
|
+
const child = ctx.container.createChild();
|
|
48
|
+
child.bind(vsx_extension_1.VSXExtensionOptions).toConstantValue(option);
|
|
49
|
+
return child.get(vsx_extension_1.VSXExtension);
|
|
50
|
+
});
|
|
51
|
+
bind(vsx_extensions_model_1.VSXExtensionsModel).toSelf().inSingletonScope();
|
|
52
|
+
bind(vsx_extension_editor_1.VSXExtensionEditor).toSelf();
|
|
53
|
+
bind(browser_1.WidgetFactory).toDynamicValue(ctx => ({
|
|
54
|
+
id: vsx_extension_editor_1.VSXExtensionEditor.ID,
|
|
55
|
+
createWidget: async (options) => {
|
|
56
|
+
const extension = await ctx.container.get(vsx_extensions_model_1.VSXExtensionsModel).resolve(options.id);
|
|
57
|
+
const child = ctx.container.createChild();
|
|
58
|
+
child.bind(vsx_extension_1.VSXExtension).toConstantValue(extension);
|
|
59
|
+
return child.get(vsx_extension_editor_1.VSXExtensionEditor);
|
|
60
|
+
}
|
|
61
|
+
})).inSingletonScope();
|
|
62
|
+
bind(vsx_extension_editor_manager_1.VSXExtensionEditorManager).toSelf().inSingletonScope();
|
|
63
|
+
bind(browser_1.OpenHandler).toService(vsx_extension_editor_manager_1.VSXExtensionEditorManager);
|
|
64
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
65
|
+
id: vsx_extensions_widget_1.VSXExtensionsWidget.ID,
|
|
66
|
+
createWidget: async (options) => vsx_extensions_widget_1.VSXExtensionsWidget.createWidget(container, options)
|
|
67
|
+
})).inSingletonScope();
|
|
68
|
+
bind(browser_1.WidgetFactory).toDynamicValue(ctx => ({
|
|
69
|
+
id: vsx_extensions_view_container_1.VSXExtensionsViewContainer.ID,
|
|
70
|
+
createWidget: async () => {
|
|
71
|
+
const child = ctx.container.createChild();
|
|
72
|
+
child.bind(browser_1.ViewContainerIdentifier).toConstantValue({
|
|
73
|
+
id: vsx_extensions_view_container_1.VSXExtensionsViewContainer.ID,
|
|
74
|
+
progressLocationId: 'extensions'
|
|
75
|
+
});
|
|
76
|
+
child.bind(vsx_extensions_view_container_1.VSXExtensionsViewContainer).toSelf();
|
|
77
|
+
const viewContainer = child.get(vsx_extensions_view_container_1.VSXExtensionsViewContainer);
|
|
78
|
+
const widgetManager = child.get(browser_1.WidgetManager);
|
|
79
|
+
for (const id of [
|
|
80
|
+
vsx_extensions_source_1.VSXExtensionsSourceOptions.SEARCH_RESULT,
|
|
81
|
+
vsx_extensions_source_1.VSXExtensionsSourceOptions.RECOMMENDED,
|
|
82
|
+
vsx_extensions_source_1.VSXExtensionsSourceOptions.INSTALLED,
|
|
83
|
+
vsx_extensions_source_1.VSXExtensionsSourceOptions.BUILT_IN,
|
|
84
|
+
]) {
|
|
85
|
+
const widget = await widgetManager.getOrCreateWidget(vsx_extensions_widget_1.VSXExtensionsWidget.ID, { id });
|
|
86
|
+
viewContainer.addWidget(widget, {
|
|
87
|
+
initiallyCollapsed: id === vsx_extensions_source_1.VSXExtensionsSourceOptions.BUILT_IN
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return viewContainer;
|
|
91
|
+
}
|
|
92
|
+
})).inSingletonScope();
|
|
93
|
+
bind(vsx_extensions_search_model_1.VSXExtensionsSearchModel).toSelf().inSingletonScope();
|
|
94
|
+
bind(vsx_extensions_search_bar_1.VSXExtensionsSearchBar).toSelf().inSingletonScope();
|
|
95
|
+
rebind(language_quick_pick_service_1.LanguageQuickPickService).to(vsx_language_quick_pick_service_1.VSXLanguageQuickPickService).inSingletonScope();
|
|
96
|
+
(0, browser_1.bindViewContribution)(bind, vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
97
|
+
bind(browser_1.FrontendApplicationContribution).toService(vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
98
|
+
bind(color_application_contribution_1.ColorContribution).toService(vsx_extensions_contribution_1.VSXExtensionsContribution);
|
|
99
|
+
(0, recommended_extensions_preference_contribution_1.bindExtensionPreferences)(bind);
|
|
100
|
+
(0, preference_provider_overrides_1.bindPreferenceProviderOverrides)(bind, unbind);
|
|
101
|
+
});
|
|
102
102
|
//# sourceMappingURL=vsx-registry-frontend-module.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
2
|
-
import { OVSXClient } from '@theia/ovsx-client';
|
|
3
|
-
import { VSXEnvironment } from './vsx-environment';
|
|
4
|
-
export declare const OVSXClientProvider: unique symbol;
|
|
5
|
-
export declare type OVSXClientProvider = () => Promise<OVSXClient>;
|
|
6
|
-
export declare function createOVSXClient(vsxEnvironment: VSXEnvironment, requestService: RequestService): Promise<OVSXClient>;
|
|
1
|
+
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
2
|
+
import { OVSXClient } from '@theia/ovsx-client';
|
|
3
|
+
import { VSXEnvironment } from './vsx-environment';
|
|
4
|
+
export declare const OVSXClientProvider: unique symbol;
|
|
5
|
+
export declare type OVSXClientProvider = () => Promise<OVSXClient>;
|
|
6
|
+
export declare function createOVSXClient(vsxEnvironment: VSXEnvironment, requestService: RequestService): Promise<OVSXClient>;
|
|
7
7
|
//# sourceMappingURL=ovsx-client-provider.d.ts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 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.createOVSXClient = exports.OVSXClientProvider = void 0;
|
|
19
|
-
const ovsx_client_1 = require("@theia/ovsx-client");
|
|
20
|
-
exports.OVSXClientProvider = Symbol('OVSXClientProvider');
|
|
21
|
-
async function createOVSXClient(vsxEnvironment, requestService) {
|
|
22
|
-
const [apiVersion, apiUrl] = await Promise.all([
|
|
23
|
-
vsxEnvironment.getVscodeApiVersion(),
|
|
24
|
-
vsxEnvironment.getRegistryApiUri()
|
|
25
|
-
]);
|
|
26
|
-
return new ovsx_client_1.OVSXClient({ apiVersion, apiUrl: apiUrl.toString() }, requestService);
|
|
27
|
-
}
|
|
28
|
-
exports.createOVSXClient = createOVSXClient;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 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.createOVSXClient = exports.OVSXClientProvider = void 0;
|
|
19
|
+
const ovsx_client_1 = require("@theia/ovsx-client");
|
|
20
|
+
exports.OVSXClientProvider = Symbol('OVSXClientProvider');
|
|
21
|
+
async function createOVSXClient(vsxEnvironment, requestService) {
|
|
22
|
+
const [apiVersion, apiUrl] = await Promise.all([
|
|
23
|
+
vsxEnvironment.getVscodeApiVersion(),
|
|
24
|
+
vsxEnvironment.getRegistryApiUri()
|
|
25
|
+
]);
|
|
26
|
+
return new ovsx_client_1.OVSXClient({ apiVersion, apiUrl: apiUrl.toString() }, requestService);
|
|
27
|
+
}
|
|
28
|
+
exports.createOVSXClient = createOVSXClient;
|
|
29
29
|
//# sourceMappingURL=ovsx-client-provider.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const VSX_ENVIRONMENT_PATH = "/services/vsx-environment";
|
|
2
|
-
export declare const VSXEnvironment: unique symbol;
|
|
3
|
-
export interface VSXEnvironment {
|
|
4
|
-
getRegistryUri(): Promise<string>;
|
|
5
|
-
getRegistryApiUri(): Promise<string>;
|
|
6
|
-
getVscodeApiVersion(): Promise<string>;
|
|
7
|
-
}
|
|
1
|
+
export declare const VSX_ENVIRONMENT_PATH = "/services/vsx-environment";
|
|
2
|
+
export declare const VSXEnvironment: unique symbol;
|
|
3
|
+
export interface VSXEnvironment {
|
|
4
|
+
getRegistryUri(): Promise<string>;
|
|
5
|
+
getRegistryApiUri(): Promise<string>;
|
|
6
|
+
getVscodeApiVersion(): Promise<string>;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=vsx-environment.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 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.VSXEnvironment = exports.VSX_ENVIRONMENT_PATH = void 0;
|
|
19
|
-
exports.VSX_ENVIRONMENT_PATH = '/services/vsx-environment';
|
|
20
|
-
exports.VSXEnvironment = Symbol('VSXEnvironment');
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 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.VSXEnvironment = exports.VSX_ENVIRONMENT_PATH = void 0;
|
|
19
|
+
exports.VSX_ENVIRONMENT_PATH = '/services/vsx-environment';
|
|
20
|
+
exports.VSXEnvironment = Symbol('VSXEnvironment');
|
|
21
21
|
//# sourceMappingURL=vsx-environment.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VSCodeExtensionUri as VSXExtensionUri } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri';
|
|
2
|
-
/** @deprecated since 1.25.0. Import `VSCodeExtensionUri from `plugin-ext-vscode` package instead. */
|
|
3
|
-
export { VSXExtensionUri };
|
|
1
|
+
import { VSCodeExtensionUri as VSXExtensionUri } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri';
|
|
2
|
+
/** @deprecated since 1.25.0. Import `VSCodeExtensionUri from `plugin-ext-vscode` package instead. */
|
|
3
|
+
export { VSXExtensionUri };
|
|
4
4
|
//# sourceMappingURL=vsx-extension-uri.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.VSXExtensionUri = void 0;
|
|
19
|
-
const plugin_vscode_uri_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri");
|
|
20
|
-
Object.defineProperty(exports, "VSXExtensionUri", { enumerable: true, get: function () { return plugin_vscode_uri_1.VSCodeExtensionUri; } });
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.VSXExtensionUri = void 0;
|
|
19
|
+
const plugin_vscode_uri_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri");
|
|
20
|
+
Object.defineProperty(exports, "VSXExtensionUri", { enumerable: true, get: function () { return plugin_vscode_uri_1.VSCodeExtensionUri; } });
|
|
21
21
|
//# sourceMappingURL=vsx-extension-uri.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { PluginVsCodeCliContribution } from '@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution';
|
|
3
|
-
import { VSXEnvironment } from '../common/vsx-environment';
|
|
4
|
-
export declare class VSXEnvironmentImpl implements VSXEnvironment {
|
|
5
|
-
protected _registryUri: URI;
|
|
6
|
-
protected readonly pluginVscodeCli: PluginVsCodeCliContribution;
|
|
7
|
-
getRegistryUri(): Promise<string>;
|
|
8
|
-
getRegistryApiUri(): Promise<string>;
|
|
9
|
-
getVscodeApiVersion(): Promise<string>;
|
|
10
|
-
}
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { PluginVsCodeCliContribution } from '@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution';
|
|
3
|
+
import { VSXEnvironment } from '../common/vsx-environment';
|
|
4
|
+
export declare class VSXEnvironmentImpl implements VSXEnvironment {
|
|
5
|
+
protected _registryUri: URI;
|
|
6
|
+
protected readonly pluginVscodeCli: PluginVsCodeCliContribution;
|
|
7
|
+
getRegistryUri(): Promise<string>;
|
|
8
|
+
getRegistryApiUri(): Promise<string>;
|
|
9
|
+
getVscodeApiVersion(): Promise<string>;
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=vsx-environment-impl.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
|
-
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.VSXEnvironmentImpl = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
30
|
-
const plugin_vscode_cli_contribution_1 = require("@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution");
|
|
31
|
-
let VSXEnvironmentImpl = class VSXEnvironmentImpl {
|
|
32
|
-
constructor() {
|
|
33
|
-
var _a;
|
|
34
|
-
this._registryUri = new uri_1.default(((_a = process.env['VSX_REGISTRY_URL']) === null || _a === void 0 ? void 0 : _a.trim()) || 'https://open-vsx.org');
|
|
35
|
-
}
|
|
36
|
-
async getRegistryUri() {
|
|
37
|
-
return this._registryUri.toString(true);
|
|
38
|
-
}
|
|
39
|
-
async getRegistryApiUri() {
|
|
40
|
-
return this._registryUri.resolve('api').toString(true);
|
|
41
|
-
}
|
|
42
|
-
async getVscodeApiVersion() {
|
|
43
|
-
return this.pluginVscodeCli.vsCodeApiVersionPromise;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, inversify_1.inject)(plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution),
|
|
48
|
-
__metadata("design:type", plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution)
|
|
49
|
-
], VSXEnvironmentImpl.prototype, "pluginVscodeCli", void 0);
|
|
50
|
-
VSXEnvironmentImpl = __decorate([
|
|
51
|
-
(0, inversify_1.injectable)()
|
|
52
|
-
], VSXEnvironmentImpl);
|
|
53
|
-
exports.VSXEnvironmentImpl = VSXEnvironmentImpl;
|
|
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.VSXEnvironmentImpl = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const uri_1 = require("@theia/core/lib/common/uri");
|
|
30
|
+
const plugin_vscode_cli_contribution_1 = require("@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution");
|
|
31
|
+
let VSXEnvironmentImpl = class VSXEnvironmentImpl {
|
|
32
|
+
constructor() {
|
|
33
|
+
var _a;
|
|
34
|
+
this._registryUri = new uri_1.default(((_a = process.env['VSX_REGISTRY_URL']) === null || _a === void 0 ? void 0 : _a.trim()) || 'https://open-vsx.org');
|
|
35
|
+
}
|
|
36
|
+
async getRegistryUri() {
|
|
37
|
+
return this._registryUri.toString(true);
|
|
38
|
+
}
|
|
39
|
+
async getRegistryApiUri() {
|
|
40
|
+
return this._registryUri.resolve('api').toString(true);
|
|
41
|
+
}
|
|
42
|
+
async getVscodeApiVersion() {
|
|
43
|
+
return this.pluginVscodeCli.vsCodeApiVersionPromise;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, inversify_1.inject)(plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution),
|
|
48
|
+
__metadata("design:type", plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution)
|
|
49
|
+
], VSXEnvironmentImpl.prototype, "pluginVscodeCli", void 0);
|
|
50
|
+
VSXEnvironmentImpl = __decorate([
|
|
51
|
+
(0, inversify_1.injectable)()
|
|
52
|
+
], VSXEnvironmentImpl);
|
|
53
|
+
exports.VSXEnvironmentImpl = VSXEnvironmentImpl;
|
|
54
54
|
//# sourceMappingURL=vsx-environment-impl.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { PluginDeployerHandler, PluginDeployerResolver, PluginDeployerResolverContext, PluginDeployOptions } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
2
|
-
import { OVSXClientProvider } from '../common/ovsx-client-provider';
|
|
3
|
-
import { VSXExtensionRaw } from '@theia/ovsx-client';
|
|
4
|
-
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
5
|
-
import { PluginVSCodeEnvironment } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment';
|
|
6
|
-
import { PluginUninstallationManager } from '@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager';
|
|
7
|
-
export declare class VSXExtensionResolver implements PluginDeployerResolver {
|
|
8
|
-
protected clientProvider: OVSXClientProvider;
|
|
9
|
-
protected pluginDeployerHandler: PluginDeployerHandler;
|
|
10
|
-
protected requestService: RequestService;
|
|
11
|
-
protected readonly environment: PluginVSCodeEnvironment;
|
|
12
|
-
protected readonly uninstallationManager: PluginUninstallationManager;
|
|
13
|
-
accept(pluginId: string): boolean;
|
|
14
|
-
resolve(context: PluginDeployerResolverContext, options?: PluginDeployOptions): Promise<void>;
|
|
15
|
-
protected hasSameOrNewerVersion(id: string, extension: VSXExtensionRaw): string | undefined;
|
|
16
|
-
protected download(downloadUrl: string, downloadPath: string): Promise<boolean>;
|
|
17
|
-
}
|
|
1
|
+
import { PluginDeployerHandler, PluginDeployerResolver, PluginDeployerResolverContext, PluginDeployOptions } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
2
|
+
import { OVSXClientProvider } from '../common/ovsx-client-provider';
|
|
3
|
+
import { VSXExtensionRaw } from '@theia/ovsx-client';
|
|
4
|
+
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
5
|
+
import { PluginVSCodeEnvironment } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment';
|
|
6
|
+
import { PluginUninstallationManager } from '@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager';
|
|
7
|
+
export declare class VSXExtensionResolver implements PluginDeployerResolver {
|
|
8
|
+
protected clientProvider: OVSXClientProvider;
|
|
9
|
+
protected pluginDeployerHandler: PluginDeployerHandler;
|
|
10
|
+
protected requestService: RequestService;
|
|
11
|
+
protected readonly environment: PluginVSCodeEnvironment;
|
|
12
|
+
protected readonly uninstallationManager: PluginUninstallationManager;
|
|
13
|
+
accept(pluginId: string): boolean;
|
|
14
|
+
resolve(context: PluginDeployerResolverContext, options?: PluginDeployOptions): Promise<void>;
|
|
15
|
+
protected hasSameOrNewerVersion(id: string, extension: VSXExtensionRaw): string | undefined;
|
|
16
|
+
protected download(downloadUrl: string, downloadPath: string): Promise<boolean>;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=vsx-extension-resolver.d.ts.map
|