@theia/vsx-registry 1.45.0 → 1.46.0-next.72

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.
Files changed (100) hide show
  1. package/README.md +45 -45
  2. package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts +17 -17
  3. package/lib/browser/recommended-extensions/preference-provider-overrides.js +95 -95
  4. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts +14 -14
  5. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js +94 -94
  6. package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.d.ts +11 -11
  7. package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.js +59 -59
  8. package/lib/browser/vsx-extension-commands.d.ts +14 -13
  9. package/lib/browser/vsx-extension-commands.d.ts.map +1 -1
  10. package/lib/browser/vsx-extension-commands.js +68 -63
  11. package/lib/browser/vsx-extension-commands.js.map +1 -1
  12. package/lib/browser/vsx-extension-editor-manager.d.ts +9 -9
  13. package/lib/browser/vsx-extension-editor-manager.js +49 -49
  14. package/lib/browser/vsx-extension-editor.d.ts +21 -21
  15. package/lib/browser/vsx-extension-editor.js +109 -109
  16. package/lib/browser/vsx-extension.d.ts +146 -143
  17. package/lib/browser/vsx-extension.d.ts.map +1 -1
  18. package/lib/browser/vsx-extension.js +616 -596
  19. package/lib/browser/vsx-extension.js.map +1 -1
  20. package/lib/browser/vsx-extensions-contribution.d.ts +70 -60
  21. package/lib/browser/vsx-extensions-contribution.d.ts.map +1 -1
  22. package/lib/browser/vsx-extensions-contribution.js +375 -344
  23. package/lib/browser/vsx-extensions-contribution.js.map +1 -1
  24. package/lib/browser/vsx-extensions-model.d.ts +75 -72
  25. package/lib/browser/vsx-extensions-model.d.ts.map +1 -1
  26. package/lib/browser/vsx-extensions-model.js +437 -391
  27. package/lib/browser/vsx-extensions-model.js.map +1 -1
  28. package/lib/browser/vsx-extensions-preferences.d.ts +12 -0
  29. package/lib/browser/vsx-extensions-preferences.d.ts.map +1 -0
  30. package/lib/browser/vsx-extensions-preferences.js +47 -0
  31. package/lib/browser/vsx-extensions-preferences.js.map +1 -0
  32. package/lib/browser/vsx-extensions-search-bar.d.ts +22 -14
  33. package/lib/browser/vsx-extensions-search-bar.d.ts.map +1 -1
  34. package/lib/browser/vsx-extensions-search-bar.js +106 -75
  35. package/lib/browser/vsx-extensions-search-bar.js.map +1 -1
  36. package/lib/browser/vsx-extensions-search-model.d.ts +21 -21
  37. package/lib/browser/vsx-extensions-search-model.js +70 -70
  38. package/lib/browser/vsx-extensions-source.d.ts +19 -19
  39. package/lib/browser/vsx-extensions-source.js +102 -102
  40. package/lib/browser/vsx-extensions-view-container.d.ts +49 -49
  41. package/lib/browser/vsx-extensions-view-container.js +179 -179
  42. package/lib/browser/vsx-extensions-widget.d.ts +35 -34
  43. package/lib/browser/vsx-extensions-widget.d.ts.map +1 -1
  44. package/lib/browser/vsx-extensions-widget.js +164 -156
  45. package/lib/browser/vsx-extensions-widget.js.map +1 -1
  46. package/lib/browser/vsx-language-quick-pick-service.d.ts +15 -15
  47. package/lib/browser/vsx-language-quick-pick-service.js +121 -121
  48. package/lib/browser/vsx-registry-frontend-module.d.ts +4 -4
  49. package/lib/browser/vsx-registry-frontend-module.d.ts.map +1 -1
  50. package/lib/browser/vsx-registry-frontend-module.js +99 -97
  51. package/lib/browser/vsx-registry-frontend-module.js.map +1 -1
  52. package/lib/common/index.d.ts +3 -3
  53. package/lib/common/index.js +25 -25
  54. package/lib/common/ovsx-client-provider.d.ts +13 -13
  55. package/lib/common/ovsx-client-provider.js +29 -29
  56. package/lib/common/vsx-environment.d.ts +9 -9
  57. package/lib/common/vsx-environment.js +20 -20
  58. package/lib/common/vsx-extension-uri.d.ts +3 -3
  59. package/lib/common/vsx-extension-uri.js +20 -20
  60. package/lib/common/vsx-registry-common-module.d.ts +3 -3
  61. package/lib/common/vsx-registry-common-module.js +57 -57
  62. package/lib/node/vsx-cli.d.ts +9 -9
  63. package/lib/node/vsx-cli.js +41 -41
  64. package/lib/node/vsx-environment-impl.d.ts +14 -14
  65. package/lib/node/vsx-environment-impl.js +61 -61
  66. package/lib/node/vsx-extension-resolver.d.ts +20 -20
  67. package/lib/node/vsx-extension-resolver.js +154 -154
  68. package/lib/node/vsx-registry-backend-module.d.ts +3 -3
  69. package/lib/node/vsx-registry-backend-module.js +35 -35
  70. package/lib/package.spec.js +25 -25
  71. package/package.json +12 -12
  72. package/src/browser/recommended-extensions/preference-provider-overrides.ts +99 -99
  73. package/src/browser/recommended-extensions/recommended-extensions-json-schema.ts +74 -74
  74. package/src/browser/recommended-extensions/recommended-extensions-preference-contribution.ts +68 -68
  75. package/src/browser/style/extensions.svg +4 -4
  76. package/src/browser/style/index.css +436 -373
  77. package/src/browser/vsx-extension-commands.ts +68 -63
  78. package/src/browser/vsx-extension-editor-manager.ts +42 -42
  79. package/src/browser/vsx-extension-editor.tsx +96 -96
  80. package/src/browser/vsx-extension.tsx +704 -675
  81. package/src/browser/vsx-extensions-contribution.ts +361 -327
  82. package/src/browser/vsx-extensions-model.ts +436 -389
  83. package/src/browser/vsx-extensions-preferences.ts +58 -0
  84. package/src/browser/vsx-extensions-search-bar.tsx +107 -69
  85. package/src/browser/vsx-extensions-search-model.ts +61 -61
  86. package/src/browser/vsx-extensions-source.ts +83 -83
  87. package/src/browser/vsx-extensions-view-container.ts +179 -179
  88. package/src/browser/vsx-extensions-widget.tsx +165 -156
  89. package/src/browser/vsx-language-quick-pick-service.ts +110 -110
  90. package/src/browser/vsx-registry-frontend-module.ts +108 -106
  91. package/src/common/index.ts +19 -19
  92. package/src/common/ovsx-client-provider.ts +35 -35
  93. package/src/common/vsx-environment.ts +27 -27
  94. package/src/common/vsx-extension-uri.ts +20 -20
  95. package/src/common/vsx-registry-common-module.ts +63 -63
  96. package/src/node/vsx-cli.ts +38 -38
  97. package/src/node/vsx-environment-impl.ts +50 -50
  98. package/src/node/vsx-extension-resolver.ts +125 -125
  99. package/src/node/vsx-registry-backend-module.ts +35 -35
  100. package/src/package.spec.ts +29 -29
@@ -1,103 +1,103 @@
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-only 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.VSXExtensionsSource = exports.VSXExtensionsSourceOptions = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const source_tree_1 = require("@theia/core/lib/browser/source-tree");
30
- const vsx_extensions_model_1 = require("./vsx-extensions-model");
31
- const debounce = require("@theia/core/shared/lodash.debounce");
32
- let VSXExtensionsSourceOptions = class VSXExtensionsSourceOptions {
33
- };
34
- VSXExtensionsSourceOptions.INSTALLED = 'installed';
35
- VSXExtensionsSourceOptions.BUILT_IN = 'builtin';
36
- VSXExtensionsSourceOptions.SEARCH_RESULT = 'searchResult';
37
- VSXExtensionsSourceOptions.RECOMMENDED = 'recommended';
38
- VSXExtensionsSourceOptions = __decorate([
39
- (0, inversify_1.injectable)()
40
- ], VSXExtensionsSourceOptions);
41
- exports.VSXExtensionsSourceOptions = VSXExtensionsSourceOptions;
42
- let VSXExtensionsSource = class VSXExtensionsSource extends source_tree_1.TreeSource {
43
- constructor() {
44
- super(...arguments);
45
- this.scheduleFireDidChange = debounce(() => this.fireDidChange(), 100, { leading: false, trailing: true });
46
- }
47
- init() {
48
- this.fireDidChange();
49
- this.toDispose.push(this.model.onDidChange(() => this.scheduleFireDidChange()));
50
- }
51
- getModel() {
52
- return this.model;
53
- }
54
- *getElements() {
55
- for (const id of this.doGetElements()) {
56
- const extension = this.model.getExtension(id);
57
- if (!extension) {
58
- continue;
59
- }
60
- if (this.options.id === VSXExtensionsSourceOptions.RECOMMENDED) {
61
- if (this.model.isInstalled(id)) {
62
- continue;
63
- }
64
- }
65
- if (this.options.id === VSXExtensionsSourceOptions.BUILT_IN) {
66
- if (extension.builtin) {
67
- yield extension;
68
- }
69
- }
70
- else if (!extension.builtin) {
71
- yield extension;
72
- }
73
- }
74
- }
75
- doGetElements() {
76
- if (this.options.id === VSXExtensionsSourceOptions.SEARCH_RESULT) {
77
- return this.model.searchResult;
78
- }
79
- if (this.options.id === VSXExtensionsSourceOptions.RECOMMENDED) {
80
- return this.model.recommended;
81
- }
82
- return this.model.installed;
83
- }
84
- };
85
- __decorate([
86
- (0, inversify_1.inject)(VSXExtensionsSourceOptions),
87
- __metadata("design:type", VSXExtensionsSourceOptions)
88
- ], VSXExtensionsSource.prototype, "options", void 0);
89
- __decorate([
90
- (0, inversify_1.inject)(vsx_extensions_model_1.VSXExtensionsModel),
91
- __metadata("design:type", vsx_extensions_model_1.VSXExtensionsModel)
92
- ], VSXExtensionsSource.prototype, "model", void 0);
93
- __decorate([
94
- (0, inversify_1.postConstruct)(),
95
- __metadata("design:type", Function),
96
- __metadata("design:paramtypes", []),
97
- __metadata("design:returntype", void 0)
98
- ], VSXExtensionsSource.prototype, "init", null);
99
- VSXExtensionsSource = __decorate([
100
- (0, inversify_1.injectable)()
101
- ], VSXExtensionsSource);
102
- exports.VSXExtensionsSource = VSXExtensionsSource;
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-only 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.VSXExtensionsSource = exports.VSXExtensionsSourceOptions = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const source_tree_1 = require("@theia/core/lib/browser/source-tree");
30
+ const vsx_extensions_model_1 = require("./vsx-extensions-model");
31
+ const debounce = require("@theia/core/shared/lodash.debounce");
32
+ let VSXExtensionsSourceOptions = class VSXExtensionsSourceOptions {
33
+ };
34
+ VSXExtensionsSourceOptions.INSTALLED = 'installed';
35
+ VSXExtensionsSourceOptions.BUILT_IN = 'builtin';
36
+ VSXExtensionsSourceOptions.SEARCH_RESULT = 'searchResult';
37
+ VSXExtensionsSourceOptions.RECOMMENDED = 'recommended';
38
+ VSXExtensionsSourceOptions = __decorate([
39
+ (0, inversify_1.injectable)()
40
+ ], VSXExtensionsSourceOptions);
41
+ exports.VSXExtensionsSourceOptions = VSXExtensionsSourceOptions;
42
+ let VSXExtensionsSource = class VSXExtensionsSource extends source_tree_1.TreeSource {
43
+ constructor() {
44
+ super(...arguments);
45
+ this.scheduleFireDidChange = debounce(() => this.fireDidChange(), 100, { leading: false, trailing: true });
46
+ }
47
+ init() {
48
+ this.fireDidChange();
49
+ this.toDispose.push(this.model.onDidChange(() => this.scheduleFireDidChange()));
50
+ }
51
+ getModel() {
52
+ return this.model;
53
+ }
54
+ *getElements() {
55
+ for (const id of this.doGetElements()) {
56
+ const extension = this.model.getExtension(id);
57
+ if (!extension) {
58
+ continue;
59
+ }
60
+ if (this.options.id === VSXExtensionsSourceOptions.RECOMMENDED) {
61
+ if (this.model.isInstalled(id)) {
62
+ continue;
63
+ }
64
+ }
65
+ if (this.options.id === VSXExtensionsSourceOptions.BUILT_IN) {
66
+ if (extension.builtin) {
67
+ yield extension;
68
+ }
69
+ }
70
+ else if (!extension.builtin) {
71
+ yield extension;
72
+ }
73
+ }
74
+ }
75
+ doGetElements() {
76
+ if (this.options.id === VSXExtensionsSourceOptions.SEARCH_RESULT) {
77
+ return this.model.searchResult;
78
+ }
79
+ if (this.options.id === VSXExtensionsSourceOptions.RECOMMENDED) {
80
+ return this.model.recommended;
81
+ }
82
+ return this.model.installed;
83
+ }
84
+ };
85
+ __decorate([
86
+ (0, inversify_1.inject)(VSXExtensionsSourceOptions),
87
+ __metadata("design:type", VSXExtensionsSourceOptions)
88
+ ], VSXExtensionsSource.prototype, "options", void 0);
89
+ __decorate([
90
+ (0, inversify_1.inject)(vsx_extensions_model_1.VSXExtensionsModel),
91
+ __metadata("design:type", vsx_extensions_model_1.VSXExtensionsModel)
92
+ ], VSXExtensionsSource.prototype, "model", void 0);
93
+ __decorate([
94
+ (0, inversify_1.postConstruct)(),
95
+ __metadata("design:type", Function),
96
+ __metadata("design:paramtypes", []),
97
+ __metadata("design:returntype", void 0)
98
+ ], VSXExtensionsSource.prototype, "init", null);
99
+ VSXExtensionsSource = __decorate([
100
+ (0, inversify_1.injectable)()
101
+ ], VSXExtensionsSource);
102
+ exports.VSXExtensionsSource = VSXExtensionsSource;
103
103
  //# sourceMappingURL=vsx-extensions-source.js.map
@@ -1,50 +1,50 @@
1
- /********************************************************************************
2
- * Copyright (C) 2020 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
- import { ViewContainer, PanelLayout, ViewContainerPart, Message } from '@theia/core/lib/browser';
17
- import { VSXExtensionsSearchBar } from './vsx-extensions-search-bar';
18
- import { VSXExtensionsModel } from './vsx-extensions-model';
19
- import { VSXSearchMode } from './vsx-extensions-search-model';
20
- export declare class VSXExtensionsViewContainer extends ViewContainer {
21
- static ID: string;
22
- static LABEL: string;
23
- disableDNDBetweenContainers: boolean;
24
- protected readonly searchBar: VSXExtensionsSearchBar;
25
- protected readonly model: VSXExtensionsModel;
26
- protected init(): void;
27
- protected onActivateRequest(msg: Message): void;
28
- protected onAfterAttach(msg: Message): void;
29
- protected configureLayout(layout: PanelLayout): void;
30
- protected currentMode: VSXSearchMode;
31
- protected readonly lastModeState: Map<VSXSearchMode, ViewContainer.State>;
32
- protected updateMode(): void;
33
- protected registerPart(part: ViewContainerPart): void;
34
- protected applyModeToPart(part: ViewContainerPart): void;
35
- protected shouldShowWidget(part: ViewContainerPart): boolean;
36
- protected getWidgetsForMode(): string[];
37
- protected doStoreState(): any;
38
- protected doRestoreState(state: any): void;
39
- protected updateToolbarItems(allParts: ViewContainerPart[]): void;
40
- protected getToggleVisibilityGroupLabel(): string;
41
- }
42
- export declare namespace VSXExtensionsViewContainer {
43
- interface State {
44
- query: string;
45
- modes: {
46
- [mode: number]: ViewContainer.State | undefined;
47
- };
48
- }
49
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2020 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
+ import { ViewContainer, PanelLayout, ViewContainerPart, Message } from '@theia/core/lib/browser';
17
+ import { VSXExtensionsSearchBar } from './vsx-extensions-search-bar';
18
+ import { VSXExtensionsModel } from './vsx-extensions-model';
19
+ import { VSXSearchMode } from './vsx-extensions-search-model';
20
+ export declare class VSXExtensionsViewContainer extends ViewContainer {
21
+ static ID: string;
22
+ static LABEL: string;
23
+ disableDNDBetweenContainers: boolean;
24
+ protected readonly searchBar: VSXExtensionsSearchBar;
25
+ protected readonly model: VSXExtensionsModel;
26
+ protected init(): void;
27
+ protected onActivateRequest(msg: Message): void;
28
+ protected onAfterAttach(msg: Message): void;
29
+ protected configureLayout(layout: PanelLayout): void;
30
+ protected currentMode: VSXSearchMode;
31
+ protected readonly lastModeState: Map<VSXSearchMode, ViewContainer.State>;
32
+ protected updateMode(): void;
33
+ protected registerPart(part: ViewContainerPart): void;
34
+ protected applyModeToPart(part: ViewContainerPart): void;
35
+ protected shouldShowWidget(part: ViewContainerPart): boolean;
36
+ protected getWidgetsForMode(): string[];
37
+ protected doStoreState(): any;
38
+ protected doRestoreState(state: any): void;
39
+ protected updateToolbarItems(allParts: ViewContainerPart[]): void;
40
+ protected getToggleVisibilityGroupLabel(): string;
41
+ }
42
+ export declare namespace VSXExtensionsViewContainer {
43
+ interface State {
44
+ query: string;
45
+ modes: {
46
+ [mode: number]: ViewContainer.State | undefined;
47
+ };
48
+ }
49
+ }
50
50
  //# sourceMappingURL=vsx-extensions-view-container.d.ts.map