@theia/vsx-registry 1.67.0-next.3 → 1.67.0-next.56
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 +1 -1
- package/package.json +10 -10
- package/src/browser/vsx-extension.tsx +5 -4
- package/src/browser/vsx-extensions-contribution.ts +5 -3
- package/src/browser/vsx-extensions-model.ts +28 -14
- package/src/browser/vsx-extensions-source.ts +7 -1
- package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts +0 -19
- package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts.map +0 -1
- package/lib/browser/recommended-extensions/preference-provider-overrides.js +0 -92
- package/lib/browser/recommended-extensions/preference-provider-overrides.js.map +0 -1
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts +0 -13
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts.map +0 -1
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js +0 -87
- package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js.map +0 -1
- package/lib/browser/vsx-extension-argument-processor.d.ts +0 -5
- package/lib/browser/vsx-extension-argument-processor.d.ts.map +0 -1
- package/lib/browser/vsx-extension-argument-processor.js +0 -34
- package/lib/browser/vsx-extension-argument-processor.js.map +0 -1
- package/lib/browser/vsx-extension-commands.d.ts +0 -17
- package/lib/browser/vsx-extension-commands.d.ts.map +0 -1
- package/lib/browser/vsx-extension-commands.js +0 -75
- package/lib/browser/vsx-extension-commands.js.map +0 -1
- package/lib/browser/vsx-extension-editor-manager.d.ts +0 -11
- package/lib/browser/vsx-extension-editor-manager.d.ts.map +0 -1
- package/lib/browser/vsx-extension-editor-manager.js +0 -45
- package/lib/browser/vsx-extension-editor-manager.js.map +0 -1
- package/lib/browser/vsx-extension-editor.d.ts +0 -22
- package/lib/browser/vsx-extension-editor.d.ts.map +0 -1
- package/lib/browser/vsx-extension-editor.js +0 -102
- package/lib/browser/vsx-extension-editor.js.map +0 -1
- package/lib/browser/vsx-extension.d.ts +0 -162
- package/lib/browser/vsx-extension.d.ts.map +0 -1
- package/lib/browser/vsx-extension.js +0 -646
- package/lib/browser/vsx-extension.js.map +0 -1
- package/lib/browser/vsx-extensions-contribution.d.ts +0 -74
- package/lib/browser/vsx-extensions-contribution.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-contribution.js +0 -403
- package/lib/browser/vsx-extensions-contribution.js.map +0 -1
- package/lib/browser/vsx-extensions-model.d.ts +0 -90
- package/lib/browser/vsx-extensions-model.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-model.js +0 -509
- package/lib/browser/vsx-extensions-model.js.map +0 -1
- package/lib/browser/vsx-extensions-preferences.d.ts +0 -12
- package/lib/browser/vsx-extensions-preferences.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-preferences.js +0 -46
- package/lib/browser/vsx-extensions-preferences.js.map +0 -1
- package/lib/browser/vsx-extensions-search-bar.d.ts +0 -23
- package/lib/browser/vsx-extensions-search-bar.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-search-bar.js +0 -99
- package/lib/browser/vsx-extensions-search-bar.js.map +0 -1
- package/lib/browser/vsx-extensions-search-model.d.ts +0 -22
- package/lib/browser/vsx-extensions-search-model.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-search-model.js +0 -66
- package/lib/browser/vsx-extensions-search-model.js.map +0 -1
- package/lib/browser/vsx-extensions-source.d.ts +0 -20
- package/lib/browser/vsx-extensions-source.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-source.js +0 -95
- package/lib/browser/vsx-extensions-source.js.map +0 -1
- package/lib/browser/vsx-extensions-view-container.d.ts +0 -50
- package/lib/browser/vsx-extensions-view-container.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-view-container.js +0 -185
- package/lib/browser/vsx-extensions-view-container.js.map +0 -1
- package/lib/browser/vsx-extensions-widget.d.ts +0 -36
- package/lib/browser/vsx-extensions-widget.d.ts.map +0 -1
- package/lib/browser/vsx-extensions-widget.js +0 -157
- package/lib/browser/vsx-extensions-widget.js.map +0 -1
- package/lib/browser/vsx-language-quick-pick-service.d.ts +0 -16
- package/lib/browser/vsx-language-quick-pick-service.d.ts.map +0 -1
- package/lib/browser/vsx-language-quick-pick-service.js +0 -117
- package/lib/browser/vsx-language-quick-pick-service.js.map +0 -1
- package/lib/browser/vsx-registry-frontend-module.d.ts +0 -5
- package/lib/browser/vsx-registry-frontend-module.d.ts.map +0 -1
- package/lib/browser/vsx-registry-frontend-module.js +0 -109
- package/lib/browser/vsx-registry-frontend-module.js.map +0 -1
- package/lib/common/index.d.ts +0 -4
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -26
- package/lib/common/index.js.map +0 -1
- package/lib/common/ovsx-client-provider.d.ts +0 -14
- package/lib/common/ovsx-client-provider.d.ts.map +0 -1
- package/lib/common/ovsx-client-provider.js +0 -30
- package/lib/common/ovsx-client-provider.js.map +0 -1
- package/lib/common/recommended-extensions-preference-contribution.d.ts +0 -13
- package/lib/common/recommended-extensions-preference-contribution.d.ts.map +0 -1
- package/lib/common/recommended-extensions-preference-contribution.js +0 -53
- package/lib/common/recommended-extensions-preference-contribution.js.map +0 -1
- package/lib/common/vsx-environment.d.ts +0 -11
- package/lib/common/vsx-environment.d.ts.map +0 -1
- package/lib/common/vsx-environment.js +0 -21
- package/lib/common/vsx-environment.js.map +0 -1
- package/lib/common/vsx-extension-uri.d.ts +0 -4
- package/lib/common/vsx-extension-uri.d.ts.map +0 -1
- package/lib/common/vsx-extension-uri.js +0 -21
- package/lib/common/vsx-extension-uri.js.map +0 -1
- package/lib/common/vsx-registry-common-module.d.ts +0 -4
- package/lib/common/vsx-registry-common-module.d.ts.map +0 -1
- package/lib/common/vsx-registry-common-module.js +0 -77
- package/lib/common/vsx-registry-common-module.js.map +0 -1
- package/lib/node/vsx-cli-deployer-participant.d.ts +0 -7
- package/lib/node/vsx-cli-deployer-participant.d.ts.map +0 -1
- package/lib/node/vsx-cli-deployer-participant.js +0 -52
- package/lib/node/vsx-cli-deployer-participant.js.map +0 -1
- package/lib/node/vsx-cli.d.ts +0 -12
- package/lib/node/vsx-cli.d.ts.map +0 -1
- package/lib/node/vsx-cli.js +0 -56
- package/lib/node/vsx-cli.js.map +0 -1
- package/lib/node/vsx-environment-impl.d.ts +0 -16
- package/lib/node/vsx-environment-impl.d.ts.map +0 -1
- package/lib/node/vsx-environment-impl.js +0 -57
- package/lib/node/vsx-environment-impl.js.map +0 -1
- package/lib/node/vsx-extension-resolver.d.ts +0 -22
- package/lib/node/vsx-extension-resolver.d.ts.map +0 -1
- package/lib/node/vsx-extension-resolver.js +0 -156
- package/lib/node/vsx-extension-resolver.js.map +0 -1
- package/lib/node/vsx-registry-backend-module.d.ts +0 -4
- package/lib/node/vsx-registry-backend-module.d.ts.map +0 -1
- package/lib/node/vsx-registry-backend-module.js +0 -41
- package/lib/node/vsx-registry-backend-module.js.map +0 -1
- package/lib/node/vsx-remote-cli.d.ts +0 -7
- package/lib/node/vsx-remote-cli.d.ts.map +0 -1
- package/lib/node/vsx-remote-cli.js +0 -40
- package/lib/node/vsx-remote-cli.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ and its `OVSXRouterConfig` configuration.
|
|
|
31
31
|
|
|
32
32
|
## Additional Information
|
|
33
33
|
|
|
34
|
-
- [API documentation for `@theia/vsx-registry`](https://eclipse-theia.github.io/theia/docs/next/modules/
|
|
34
|
+
- [API documentation for `@theia/vsx-registry`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_vsx-registry.html)
|
|
35
35
|
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
36
36
|
- [Theia - Website](https://theia-ide.org/)
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/vsx-registry",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.56+d8f18cc386c",
|
|
4
4
|
"description": "Theia - VSX Registry",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/filesystem": "1.67.0-next.
|
|
8
|
-
"@theia/navigator": "1.67.0-next.
|
|
9
|
-
"@theia/ovsx-client": "1.67.0-next.
|
|
10
|
-
"@theia/plugin-ext": "1.67.0-next.
|
|
11
|
-
"@theia/plugin-ext-vscode": "1.67.0-next.
|
|
12
|
-
"@theia/preferences": "1.67.0-next.
|
|
13
|
-
"@theia/workspace": "1.67.0-next.
|
|
6
|
+
"@theia/core": "1.67.0-next.56+d8f18cc386c",
|
|
7
|
+
"@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
|
|
8
|
+
"@theia/navigator": "1.67.0-next.56+d8f18cc386c",
|
|
9
|
+
"@theia/ovsx-client": "1.67.0-next.56+d8f18cc386c",
|
|
10
|
+
"@theia/plugin-ext": "1.67.0-next.56+d8f18cc386c",
|
|
11
|
+
"@theia/plugin-ext-vscode": "1.67.0-next.56+d8f18cc386c",
|
|
12
|
+
"@theia/preferences": "1.67.0-next.56+d8f18cc386c",
|
|
13
|
+
"@theia/workspace": "1.67.0-next.56+d8f18cc386c",
|
|
14
14
|
"limiter": "^2.1.0",
|
|
15
15
|
"luxon": "^2.4.0",
|
|
16
16
|
"p-debounce": "^2.1.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"nyc": {
|
|
62
62
|
"extends": "../../configs/nyc.json"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
|
|
65
65
|
}
|
|
@@ -175,15 +175,16 @@ export class VSXExtension implements VSXExtensionData, TreeElement {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
get installed(): boolean {
|
|
178
|
-
return this.
|
|
178
|
+
return !!this.version && this.model
|
|
179
|
+
.isInstalledAtSpecificVersion(PluginIdentifiers.idAndVersionToVersionedId({ id: this.id as PluginIdentifiers.UnversionedId, version: this.version }));
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
get uninstalled(): boolean {
|
|
182
|
-
return this.model.isUninstalled(this.id);
|
|
183
|
+
return !!this.version && this.model.isUninstalled(PluginIdentifiers.idAndVersionToVersionedId({ id: this.id as PluginIdentifiers.UnversionedId, version: this.version }));
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
get deployed(): boolean {
|
|
186
|
-
return this.model.isDeployed(this.id);
|
|
187
|
+
return !!this.version && this.model.isDeployed(PluginIdentifiers.idAndVersionToVersionedId({ id: this.id as PluginIdentifiers.UnversionedId, version: this.version }));
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
get disabled(): boolean {
|
|
@@ -495,7 +496,7 @@ export abstract class AbstractVSXExtensionComponent<Props extends AbstractVSXExt
|
|
|
495
496
|
const isFocused = (host?.model.getFocusedNode() as TreeElementNode)?.element === this.props.extension;
|
|
496
497
|
const tabIndex = (!host || isFocused) ? 0 : undefined;
|
|
497
498
|
const inactive = disabled || uninstalled || !installed;
|
|
498
|
-
const outOfSync = (installed && uninstalled) ||
|
|
499
|
+
const outOfSync = (installed && uninstalled) || deployed === inactive;
|
|
499
500
|
if (currentTask) {
|
|
500
501
|
return <button className="theia-button action prominent theia-mod-disabled">{currentTask}</button>;
|
|
501
502
|
}
|
|
@@ -352,9 +352,11 @@ export class VSXExtensionsContribution extends AbstractViewContribution<VSXExten
|
|
|
352
352
|
|
|
353
353
|
protected async showRecommendedToast(): Promise<void> {
|
|
354
354
|
if (!this.preferenceService.get(IGNORE_RECOMMENDATIONS_ID, false)) {
|
|
355
|
-
const recommended = new Set(
|
|
356
|
-
for (const
|
|
357
|
-
|
|
355
|
+
const recommended = new Set<string>();
|
|
356
|
+
for (const recommendation of this.model.recommended) {
|
|
357
|
+
if (!this.model.isInstalled(recommendation)) {
|
|
358
|
+
recommended.add(recommendation);
|
|
359
|
+
}
|
|
358
360
|
}
|
|
359
361
|
if (recommended.size) {
|
|
360
362
|
const install = nls.localizeByDefault('Install');
|
|
@@ -45,9 +45,10 @@ export class VSXExtensionsModel {
|
|
|
45
45
|
protected readonly extensions = new Map<string, VSXExtension>();
|
|
46
46
|
protected readonly onDidChangeEmitter = new Emitter<void>();
|
|
47
47
|
protected disabled = new Set<PluginIdentifiers.UnversionedId>();
|
|
48
|
-
protected uninstalled = new Set<PluginIdentifiers.
|
|
49
|
-
protected deployed = new Set<PluginIdentifiers.
|
|
50
|
-
protected
|
|
48
|
+
protected uninstalled = new Set<PluginIdentifiers.VersionedId>();
|
|
49
|
+
protected deployed = new Set<PluginIdentifiers.VersionedId>();
|
|
50
|
+
protected _versionedInstalled = new Set<PluginIdentifiers.VersionedId>();
|
|
51
|
+
protected _unversionedInstalled = new Set<PluginIdentifiers.UnversionedId>();
|
|
51
52
|
protected _recommended = new Set<string>();
|
|
52
53
|
protected _searchResult = new Set<string>();
|
|
53
54
|
protected builtins = new Set<PluginIdentifiers.UnversionedId>();
|
|
@@ -113,7 +114,7 @@ export class VSXExtensionsModel {
|
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
get installed(): IterableIterator<string> {
|
|
116
|
-
return this.
|
|
117
|
+
return this._versionedInstalled.values();
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
get searchError(): string | undefined {
|
|
@@ -139,16 +140,28 @@ export class VSXExtensionsModel {
|
|
|
139
140
|
return this.builtins.has(id as PluginIdentifiers.UnversionedId);
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
/**
|
|
144
|
+
* @param id should be a ${@link PluginIdentifiers.VersionedId}
|
|
145
|
+
* @returns `true` if the specific version queried installed
|
|
146
|
+
*/
|
|
147
|
+
isInstalledAtSpecificVersion(id: string): boolean {
|
|
148
|
+
return this._versionedInstalled.has(id as PluginIdentifiers.VersionedId);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @param id should be an unversioned Identifier
|
|
153
|
+
* @returns `true` if any version of the plugin is installed
|
|
154
|
+
*/
|
|
142
155
|
isInstalled(id: string): boolean {
|
|
143
|
-
return this.
|
|
156
|
+
return this._unversionedInstalled.has(id as PluginIdentifiers.UnversionedId);
|
|
144
157
|
}
|
|
145
158
|
|
|
146
159
|
isUninstalled(id: string): boolean {
|
|
147
|
-
return this.uninstalled.has(id as PluginIdentifiers.
|
|
160
|
+
return this.uninstalled.has(id as PluginIdentifiers.VersionedId);
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
isDeployed(id: string): boolean {
|
|
151
|
-
return this.deployed.has(id as PluginIdentifiers.
|
|
164
|
+
return this.deployed.has(id as PluginIdentifiers.VersionedId);
|
|
152
165
|
}
|
|
153
166
|
|
|
154
167
|
isDisabled(id: string): boolean {
|
|
@@ -337,12 +350,12 @@ export class VSXExtensionsModel {
|
|
|
337
350
|
]);
|
|
338
351
|
|
|
339
352
|
this.uninstalled = new Set();
|
|
340
|
-
uninstalled.forEach(id => this.uninstalled.add(
|
|
353
|
+
uninstalled.forEach(id => this.uninstalled.add(id));
|
|
341
354
|
this.disabled = new Set(disabled);
|
|
342
355
|
this.deployed = new Set();
|
|
343
|
-
deployed.forEach(id => this.deployed.add(
|
|
356
|
+
deployed.forEach(id => this.deployed.add(id));
|
|
344
357
|
|
|
345
|
-
const prevInstalled = this.
|
|
358
|
+
const prevInstalled = this._versionedInstalled;
|
|
346
359
|
const installedVersioned = new Set<PluginIdentifiers.VersionedId>();
|
|
347
360
|
return this.doChange(async () => {
|
|
348
361
|
const refreshing = [];
|
|
@@ -350,20 +363,21 @@ export class VSXExtensionsModel {
|
|
|
350
363
|
installedVersioned.add(versionedId);
|
|
351
364
|
const idAndVersion = PluginIdentifiers.idAndVersionFromVersionedId(versionedId);
|
|
352
365
|
if (idAndVersion) {
|
|
353
|
-
this.
|
|
366
|
+
this._versionedInstalled.delete(versionedId);
|
|
354
367
|
this.setExtension(idAndVersion.id, idAndVersion.version);
|
|
355
368
|
refreshing.push(this.refresh(idAndVersion.id, idAndVersion.version));
|
|
356
369
|
}
|
|
357
370
|
}
|
|
358
|
-
for (const id of this.
|
|
371
|
+
for (const id of this._versionedInstalled) {
|
|
359
372
|
const extension = this.getExtension(id);
|
|
360
373
|
if (!extension) { continue; }
|
|
361
374
|
refreshing.push(this.refresh(id, extension.version));
|
|
362
375
|
}
|
|
363
376
|
await Promise.all(refreshing);
|
|
364
|
-
const installed = new Set([...prevInstalled, ...currInstalled
|
|
377
|
+
const installed = new Set([...prevInstalled, ...currInstalled]);
|
|
365
378
|
const installedSorted = Array.from(installed).sort((a, b) => this.compareExtensions(a, b));
|
|
366
|
-
this.
|
|
379
|
+
this._versionedInstalled = new Set(installedSorted);
|
|
380
|
+
this._unversionedInstalled = new Set(installedSorted.map(PluginIdentifiers.toUnversioned));
|
|
367
381
|
|
|
368
382
|
const missingIds = new Set<PluginIdentifiers.VersionedId>();
|
|
369
383
|
for (const id of installedVersioned) {
|
|
@@ -18,6 +18,7 @@ import { injectable, inject, postConstruct } from '@theia/core/shared/inversify'
|
|
|
18
18
|
import { TreeSource, TreeElement } from '@theia/core/lib/browser/source-tree';
|
|
19
19
|
import { VSXExtensionsModel } from './vsx-extensions-model';
|
|
20
20
|
import debounce = require('@theia/core/shared/lodash.debounce');
|
|
21
|
+
import { PluginIdentifiers } from '@theia/plugin-ext';
|
|
21
22
|
|
|
22
23
|
@injectable()
|
|
23
24
|
export class VSXExtensionsSourceOptions {
|
|
@@ -77,7 +78,12 @@ export class VSXExtensionsSource extends TreeSource {
|
|
|
77
78
|
if (this.options.id === VSXExtensionsSourceOptions.RECOMMENDED) {
|
|
78
79
|
return this.model.recommended;
|
|
79
80
|
}
|
|
80
|
-
return this.
|
|
81
|
+
return this.mapInstalled();
|
|
81
82
|
}
|
|
82
83
|
|
|
84
|
+
protected *mapInstalled(): IterableIterator<string> {
|
|
85
|
+
for (const installed of this.model.installed) {
|
|
86
|
+
yield PluginIdentifiers.toUnversioned(installed as PluginIdentifiers.VersionedId);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
83
89
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FolderPreferenceProvider } from '@theia/preferences/lib/browser';
|
|
2
|
-
import { interfaces } from '@theia/core/shared/inversify';
|
|
3
|
-
import { WorkspaceFilePreferenceProvider } from '@theia/preferences/lib/browser/workspace-file-preference-provider';
|
|
4
|
-
import { UserPreferenceProvider } from '@theia/preferences/lib/common/user-preference-provider';
|
|
5
|
-
/**
|
|
6
|
-
* The overrides in this file are required because the base preference providers assume that a
|
|
7
|
-
* section name (extensions) will not be used as a prefix (extensions.ignoreRecommendations).
|
|
8
|
-
*/
|
|
9
|
-
export declare class FolderPreferenceProviderWithExtensions extends FolderPreferenceProvider {
|
|
10
|
-
protected getPath(preferenceName: string): string[] | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare class UserPreferenceProviderWithExtensions extends UserPreferenceProvider {
|
|
13
|
-
protected getPath(preferenceName: string): string[] | undefined;
|
|
14
|
-
}
|
|
15
|
-
export declare class WorkspaceFilePreferenceProviderWithExtensions extends WorkspaceFilePreferenceProvider {
|
|
16
|
-
protected belongsInSection(firstSegment: string, remainder: string): boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function bindPreferenceProviderOverrides(bind: interfaces.Bind, unbind: interfaces.Unbind): void;
|
|
19
|
-
//# sourceMappingURL=preference-provider-overrides.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preference-provider-overrides.d.ts","sourceRoot":"","sources":["../../../src/browser/recommended-extensions/preference-provider-overrides.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,wBAAwB,EAG3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAyB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,EACH,+BAA+B,EAGlC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAAiC,MAAM,wDAAwD,CAAC;AAG/H;;;GAGG;AAEH,qBACa,sCAAuC,SAAQ,wBAAwB;cAC7D,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;CAW3E;AAED,qBACa,oCAAqC,SAAQ,sBAAsB;cACzD,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;CAW3E;AAED,qBACa,6CAA8C,SAAQ,+BAA+B;cAC3E,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;CAMxF;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAoBtG"}
|
|
@@ -1,92 +0,0 @@
|
|
|
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-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.bindPreferenceProviderOverrides = exports.WorkspaceFilePreferenceProviderWithExtensions = exports.UserPreferenceProviderWithExtensions = exports.FolderPreferenceProviderWithExtensions = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/preferences/lib/browser");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const recommended_extensions_json_schema_1 = require("./recommended-extensions-json-schema");
|
|
23
|
-
const workspace_file_preference_provider_1 = require("@theia/preferences/lib/browser/workspace-file-preference-provider");
|
|
24
|
-
const section_preference_provider_1 = require("@theia/preferences/lib/common/section-preference-provider");
|
|
25
|
-
const user_preference_provider_1 = require("@theia/preferences/lib/common/user-preference-provider");
|
|
26
|
-
const core_1 = require("@theia/core");
|
|
27
|
-
/**
|
|
28
|
-
* The overrides in this file are required because the base preference providers assume that a
|
|
29
|
-
* section name (extensions) will not be used as a prefix (extensions.ignoreRecommendations).
|
|
30
|
-
*/
|
|
31
|
-
let FolderPreferenceProviderWithExtensions = class FolderPreferenceProviderWithExtensions extends browser_1.FolderPreferenceProvider {
|
|
32
|
-
getPath(preferenceName) {
|
|
33
|
-
const path = super.getPath(preferenceName);
|
|
34
|
-
if (this.section !== 'extensions' || !(path === null || path === void 0 ? void 0 : path.length)) {
|
|
35
|
-
return path;
|
|
36
|
-
}
|
|
37
|
-
const isExtensionsField = path[0] in recommended_extensions_json_schema_1.extensionsConfigurationSchema.properties;
|
|
38
|
-
if (isExtensionsField) {
|
|
39
|
-
return path;
|
|
40
|
-
}
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.FolderPreferenceProviderWithExtensions = FolderPreferenceProviderWithExtensions;
|
|
45
|
-
exports.FolderPreferenceProviderWithExtensions = FolderPreferenceProviderWithExtensions = tslib_1.__decorate([
|
|
46
|
-
(0, inversify_1.injectable)()
|
|
47
|
-
], FolderPreferenceProviderWithExtensions);
|
|
48
|
-
let UserPreferenceProviderWithExtensions = class UserPreferenceProviderWithExtensions extends user_preference_provider_1.UserPreferenceProvider {
|
|
49
|
-
getPath(preferenceName) {
|
|
50
|
-
const path = super.getPath(preferenceName);
|
|
51
|
-
if (this.section !== 'extensions' || !(path === null || path === void 0 ? void 0 : path.length)) {
|
|
52
|
-
return path;
|
|
53
|
-
}
|
|
54
|
-
const isExtensionsField = path[0] in recommended_extensions_json_schema_1.extensionsConfigurationSchema.properties;
|
|
55
|
-
if (isExtensionsField) {
|
|
56
|
-
return path;
|
|
57
|
-
}
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
exports.UserPreferenceProviderWithExtensions = UserPreferenceProviderWithExtensions;
|
|
62
|
-
exports.UserPreferenceProviderWithExtensions = UserPreferenceProviderWithExtensions = tslib_1.__decorate([
|
|
63
|
-
(0, inversify_1.injectable)()
|
|
64
|
-
], UserPreferenceProviderWithExtensions);
|
|
65
|
-
let WorkspaceFilePreferenceProviderWithExtensions = class WorkspaceFilePreferenceProviderWithExtensions extends workspace_file_preference_provider_1.WorkspaceFilePreferenceProvider {
|
|
66
|
-
belongsInSection(firstSegment, remainder) {
|
|
67
|
-
if (firstSegment === 'extensions') {
|
|
68
|
-
return remainder in recommended_extensions_json_schema_1.extensionsConfigurationSchema.properties;
|
|
69
|
-
}
|
|
70
|
-
return this.configurations.isSectionName(firstSegment);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
exports.WorkspaceFilePreferenceProviderWithExtensions = WorkspaceFilePreferenceProviderWithExtensions;
|
|
74
|
-
exports.WorkspaceFilePreferenceProviderWithExtensions = WorkspaceFilePreferenceProviderWithExtensions = tslib_1.__decorate([
|
|
75
|
-
(0, inversify_1.injectable)()
|
|
76
|
-
], WorkspaceFilePreferenceProviderWithExtensions);
|
|
77
|
-
function bindPreferenceProviderOverrides(bind, unbind) {
|
|
78
|
-
unbind(user_preference_provider_1.UserPreferenceProviderFactory);
|
|
79
|
-
unbind(browser_1.FolderPreferenceProviderFactory);
|
|
80
|
-
unbind(workspace_file_preference_provider_1.WorkspaceFilePreferenceProviderFactory);
|
|
81
|
-
(0, core_1.bindFactory)(bind, user_preference_provider_1.UserPreferenceProviderFactory, UserPreferenceProviderWithExtensions, section_preference_provider_1.SectionPreferenceProviderUri, section_preference_provider_1.SectionPreferenceProviderSection);
|
|
82
|
-
(0, core_1.bindFactory)(bind, browser_1.FolderPreferenceProviderFactory, FolderPreferenceProviderWithExtensions, section_preference_provider_1.SectionPreferenceProviderUri, section_preference_provider_1.SectionPreferenceProviderSection, browser_1.FolderPreferenceProviderFolder);
|
|
83
|
-
bind(workspace_file_preference_provider_1.WorkspaceFilePreferenceProviderFactory).toFactory(ctx => (options) => {
|
|
84
|
-
const child = new inversify_1.Container({ defaultScope: 'Singleton' });
|
|
85
|
-
child.parent = ctx.container;
|
|
86
|
-
child.bind(workspace_file_preference_provider_1.WorkspaceFilePreferenceProvider).to(WorkspaceFilePreferenceProviderWithExtensions);
|
|
87
|
-
child.bind(workspace_file_preference_provider_1.WorkspaceFilePreferenceProviderOptions).toConstantValue(options);
|
|
88
|
-
return child.get(workspace_file_preference_provider_1.WorkspaceFilePreferenceProvider);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
exports.bindPreferenceProviderOverrides = bindPreferenceProviderOverrides;
|
|
92
|
-
//# sourceMappingURL=preference-provider-overrides.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preference-provider-overrides.js","sourceRoot":"","sources":["../../../src/browser/recommended-extensions/preference-provider-overrides.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,4DAIwC;AACxC,4DAAiF;AACjF,6FAAqF;AACrF,0HAI2E;AAC3E,2GAA2I;AAC3I,qGAA+H;AAC/H,sCAA0C;AAE1C;;;GAGG;AAGI,IAAM,sCAAsC,GA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JsonSchemaContribution, JsonSchemaDataStore, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
|
|
2
|
-
import { IJSONSchema } from '@theia/core/lib/common/json-schema';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
5
|
-
export declare const extensionsConfigurationSchema: IJSONSchema;
|
|
6
|
-
export declare class ExtensionSchemaContribution implements JsonSchemaContribution {
|
|
7
|
-
protected readonly uri: URI;
|
|
8
|
-
protected readonly schemaStore: JsonSchemaDataStore;
|
|
9
|
-
protected readonly workspaceService: WorkspaceService;
|
|
10
|
-
protected init(): void;
|
|
11
|
-
registerSchemas(context: JsonSchemaRegisterContext): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=recommended-extensions-json-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended-extensions-json-schema.d.ts","sourceRoot":"","sources":["../../../src/browser/recommended-extensions/recommended-extensions-json-schema.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACnI,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,eAAO,MAAM,6BAA6B,EAAE,WA6B3C,CAAC;AAEF,qBACa,2BAA4B,YAAW,sBAAsB;IACtE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAA+B;IACxB,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IACvD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAGhF,SAAS,CAAC,IAAI,IAAI,IAAI;IAItB,eAAe,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI;CAO5D"}
|
|
@@ -1,87 +0,0 @@
|
|
|
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-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ExtensionSchemaContribution = exports.extensionsConfigurationSchema = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const json_schema_store_1 = require("@theia/core/lib/browser/json-schema-store");
|
|
22
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
23
|
-
const browser_1 = require("@theia/workspace/lib/browser");
|
|
24
|
-
const recommended_extensions_preference_contribution_1 = require("../../common/recommended-extensions-preference-contribution");
|
|
25
|
-
exports.extensionsConfigurationSchema = {
|
|
26
|
-
$id: recommended_extensions_preference_contribution_1.extensionsSchemaID,
|
|
27
|
-
default: { recommendations: [] },
|
|
28
|
-
type: 'object',
|
|
29
|
-
properties: {
|
|
30
|
-
recommendations: {
|
|
31
|
-
title: 'A list of extensions recommended for users of this workspace. Should use the form "<publisher>.<extension name>"',
|
|
32
|
-
type: 'array',
|
|
33
|
-
items: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
pattern: '^\\w[\\w-]+\\.\\w[\\w-]+$',
|
|
36
|
-
patternErrorMessage: "Expected format '${publisher}.${name}'. Example: 'eclipse.theia'."
|
|
37
|
-
},
|
|
38
|
-
default: [],
|
|
39
|
-
},
|
|
40
|
-
unwantedRecommendations: {
|
|
41
|
-
title: 'A list of extensions recommended by default that should not be recommended to users of this workspace. Should use the form "<publisher>.<extension name>"',
|
|
42
|
-
type: 'array',
|
|
43
|
-
items: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
pattern: '^\\w[\\w-]+\\.\\w[\\w-]+$',
|
|
46
|
-
patternErrorMessage: "Expected format '${publisher}.${name}'. Example: 'eclipse.theia'."
|
|
47
|
-
},
|
|
48
|
-
default: [],
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
allowComments: true,
|
|
52
|
-
allowTrailingCommas: true,
|
|
53
|
-
};
|
|
54
|
-
let ExtensionSchemaContribution = class ExtensionSchemaContribution {
|
|
55
|
-
constructor() {
|
|
56
|
-
this.uri = new uri_1.default(recommended_extensions_preference_contribution_1.extensionsSchemaID);
|
|
57
|
-
}
|
|
58
|
-
init() {
|
|
59
|
-
this.schemaStore.setSchema(this.uri, exports.extensionsConfigurationSchema);
|
|
60
|
-
}
|
|
61
|
-
registerSchemas(context) {
|
|
62
|
-
context.registerSchema({
|
|
63
|
-
fileMatch: ['extensions.json'],
|
|
64
|
-
url: this.uri.toString(),
|
|
65
|
-
});
|
|
66
|
-
this.workspaceService.updateSchema('extensions', { $ref: this.uri.toString() });
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.ExtensionSchemaContribution = ExtensionSchemaContribution;
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, inversify_1.inject)(json_schema_store_1.JsonSchemaDataStore),
|
|
72
|
-
tslib_1.__metadata("design:type", json_schema_store_1.JsonSchemaDataStore)
|
|
73
|
-
], ExtensionSchemaContribution.prototype, "schemaStore", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
(0, inversify_1.inject)(browser_1.WorkspaceService),
|
|
76
|
-
tslib_1.__metadata("design:type", browser_1.WorkspaceService)
|
|
77
|
-
], ExtensionSchemaContribution.prototype, "workspaceService", void 0);
|
|
78
|
-
tslib_1.__decorate([
|
|
79
|
-
(0, inversify_1.postConstruct)(),
|
|
80
|
-
tslib_1.__metadata("design:type", Function),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
82
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
83
|
-
], ExtensionSchemaContribution.prototype, "init", null);
|
|
84
|
-
exports.ExtensionSchemaContribution = ExtensionSchemaContribution = tslib_1.__decorate([
|
|
85
|
-
(0, inversify_1.injectable)()
|
|
86
|
-
], ExtensionSchemaContribution);
|
|
87
|
-
//# sourceMappingURL=recommended-extensions-json-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended-extensions-json-schema.js","sourceRoot":"","sources":["../../../src/browser/recommended-extensions/recommended-extensions-json-schema.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,4DAAiF;AACjF,iFAAmI;AAEnI,oDAA6C;AAC7C,0DAAgE;AAChE,gIAAiG;AAEpF,QAAA,6BAA6B,GAAgB;IACtD,GAAG,EAAE,mEAAkB;IACvB,OAAO,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE;IAChC,IAAI,EAAE,QAAQ;IAEd,UAAU,EAAE;QACR,eAAe,EAAE;YACb,KAAK,EAAE,kHAAkH;YACzH,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;gBACpC,mBAAmB,EAAE,mEAA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-processor.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,qBACa,6BAA8B,YAAW,iBAAiB;IAEnE,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;CAQzC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
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.VsxExtensionArgumentProcessor = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const vsx_extension_1 = require("./vsx-extension");
|
|
22
|
-
let VsxExtensionArgumentProcessor = class VsxExtensionArgumentProcessor {
|
|
23
|
-
processArgument(arg) {
|
|
24
|
-
if (arg instanceof vsx_extension_1.VSXExtension) {
|
|
25
|
-
return arg.id;
|
|
26
|
-
}
|
|
27
|
-
return arg;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.VsxExtensionArgumentProcessor = VsxExtensionArgumentProcessor;
|
|
31
|
-
exports.VsxExtensionArgumentProcessor = VsxExtensionArgumentProcessor = tslib_1.__decorate([
|
|
32
|
-
(0, inversify_1.injectable)()
|
|
33
|
-
], VsxExtensionArgumentProcessor);
|
|
34
|
-
//# sourceMappingURL=vsx-extension-argument-processor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsx-extension-argument-processor.js","sourceRoot":"","sources":["../../src/browser/vsx-extension-argument-processor.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,4DAA0D;AAE1D,mDAA+C;AAGxC,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAEtC,eAAe,CAAC,GAAY;QACxB,IAAI,GAAG,YAAY,4BAAY,EAAE,CAAC;YAC9B,OAAO,GAAG,CAAC,EAAE,CAAC;QAClB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CAEJ,CAAA;AAVY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAUzC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command } from '@theia/core/lib/common';
|
|
2
|
-
export declare namespace VSXExtensionsCommands {
|
|
3
|
-
const CLEAR_ALL: Command;
|
|
4
|
-
const INSTALL_FROM_VSIX: Command & {
|
|
5
|
-
dialogLabel: string;
|
|
6
|
-
};
|
|
7
|
-
const INSTALL_VSIX_FILE: Command;
|
|
8
|
-
const INSTALL_ANOTHER_VERSION: Command;
|
|
9
|
-
const DISABLE: Command;
|
|
10
|
-
const ENABLE: Command;
|
|
11
|
-
const COPY: Command;
|
|
12
|
-
const COPY_EXTENSION_ID: Command;
|
|
13
|
-
const SHOW_BUILTINS: Command;
|
|
14
|
-
const SHOW_INSTALLED: Command;
|
|
15
|
-
const SHOW_RECOMMENDATIONS: Command;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=vsx-extension-commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsx-extension-commands.d.ts","sourceRoot":"","sources":["../../src/browser/vsx-extension-commands.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,yBAAiB,qBAAqB,CAAC;IAI5B,MAAM,SAAS,SAKpB,CAAC;IACI,MAAM,iBAAiB,EAAE,OAAO,GAAG;QAAE,WAAW,EAAE,MAAM,CAAA;KAO9D,CAAC;IACK,MAAM,iBAAiB,EAAE,OAI9B,CAAC;IACI,MAAM,uBAAuB,EAAE,OAErC,CAAC;IAEK,MAAM,OAAO,EAAE,OAErB,CAAC;IAEK,MAAM,MAAM,EAAE,OAEpB,CAAC;IACK,MAAM,IAAI,EAAE,OAElB,CAAC;IACK,MAAM,iBAAiB,EAAE,OAE/B,CAAC;IACK,MAAM,aAAa,SAIxB,CAAC;IACI,MAAM,cAAc,SAIW,CAAC;IAChC,MAAM,oBAAoB,SAI/B,CAAC;CACN"}
|
|
@@ -1,75 +0,0 @@
|
|
|
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-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.VSXExtensionsCommands = void 0;
|
|
19
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const common_1 = require("@theia/core/lib/common");
|
|
22
|
-
var VSXExtensionsCommands;
|
|
23
|
-
(function (VSXExtensionsCommands) {
|
|
24
|
-
const EXTENSIONS_CATEGORY = 'Extensions';
|
|
25
|
-
VSXExtensionsCommands.CLEAR_ALL = common_1.Command.toDefaultLocalizedCommand({
|
|
26
|
-
id: 'vsxExtensions.clearAll',
|
|
27
|
-
category: EXTENSIONS_CATEGORY,
|
|
28
|
-
label: 'Clear Search Results',
|
|
29
|
-
iconClass: (0, browser_1.codicon)('clear-all')
|
|
30
|
-
});
|
|
31
|
-
VSXExtensionsCommands.INSTALL_FROM_VSIX = {
|
|
32
|
-
id: 'vsxExtensions.installFromVSIX',
|
|
33
|
-
category: nls_1.nls.localizeByDefault(EXTENSIONS_CATEGORY),
|
|
34
|
-
originalCategory: EXTENSIONS_CATEGORY,
|
|
35
|
-
originalLabel: 'Install from VSIX...',
|
|
36
|
-
label: nls_1.nls.localizeByDefault('Install from VSIX') + '...',
|
|
37
|
-
dialogLabel: nls_1.nls.localizeByDefault('Install from VSIX')
|
|
38
|
-
};
|
|
39
|
-
VSXExtensionsCommands.INSTALL_VSIX_FILE = common_1.Command.toDefaultLocalizedCommand({
|
|
40
|
-
id: 'vsxExtensions.installVSIX',
|
|
41
|
-
label: 'Install Extension VSIX',
|
|
42
|
-
category: EXTENSIONS_CATEGORY,
|
|
43
|
-
});
|
|
44
|
-
VSXExtensionsCommands.INSTALL_ANOTHER_VERSION = {
|
|
45
|
-
id: 'vsxExtensions.installAnotherVersion'
|
|
46
|
-
};
|
|
47
|
-
VSXExtensionsCommands.DISABLE = {
|
|
48
|
-
id: 'vsxExtensions.disable'
|
|
49
|
-
};
|
|
50
|
-
VSXExtensionsCommands.ENABLE = {
|
|
51
|
-
id: 'vsxExtensions.enable'
|
|
52
|
-
};
|
|
53
|
-
VSXExtensionsCommands.COPY = {
|
|
54
|
-
id: 'vsxExtensions.copy'
|
|
55
|
-
};
|
|
56
|
-
VSXExtensionsCommands.COPY_EXTENSION_ID = {
|
|
57
|
-
id: 'vsxExtensions.copyExtensionId'
|
|
58
|
-
};
|
|
59
|
-
VSXExtensionsCommands.SHOW_BUILTINS = common_1.Command.toDefaultLocalizedCommand({
|
|
60
|
-
id: 'vsxExtension.showBuiltins',
|
|
61
|
-
label: 'Show Built-in Extensions',
|
|
62
|
-
category: EXTENSIONS_CATEGORY,
|
|
63
|
-
});
|
|
64
|
-
VSXExtensionsCommands.SHOW_INSTALLED = common_1.Command.toLocalizedCommand({
|
|
65
|
-
id: 'vsxExtension.showInstalled',
|
|
66
|
-
label: 'Show Installed Extensions',
|
|
67
|
-
category: EXTENSIONS_CATEGORY,
|
|
68
|
-
}, 'theia/vsx-registry/showInstalled');
|
|
69
|
-
VSXExtensionsCommands.SHOW_RECOMMENDATIONS = common_1.Command.toDefaultLocalizedCommand({
|
|
70
|
-
id: 'vsxExtension.showRecommendations',
|
|
71
|
-
label: 'Show Recommended Extensions',
|
|
72
|
-
category: EXTENSIONS_CATEGORY,
|
|
73
|
-
});
|
|
74
|
-
})(VSXExtensionsCommands || (exports.VSXExtensionsCommands = VSXExtensionsCommands = {}));
|
|
75
|
-
//# sourceMappingURL=vsx-extension-commands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsx-extension-commands.js","sourceRoot":"","sources":["../../src/browser/vsx-extension-commands.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AA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C/B,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,mBAAmB;KAChC,CAAC,CAAC;IACU,oCAAc,GAAG,gBAAO,CAAC,kBAAkB,CAAC;QACrD,EAAE,EAAE,4BAA4B;QAChC,KAAK,EAAE,2BAA2B;QAClC,QAAQ,EAAE,mBAAmB;KAChC,EAAE,kCAAkC,CAAC,CAAC;IAC1B,0CAAoB,GAAG,gBAAO,CAAC,yBAAyB,CAAC;QAClE,EAAE,EAAE,kCAAkC;QACtC,KAAK,EAAE,6BAA6B;QACpC,QAAQ,EAAE,mBAAmB;KAChC,CAAC,CAAC;AACP,CAAC,EAvDgB,qBAAqB,qCAArB,qBAAqB,QAuDrC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { WidgetOpenHandler } from '@theia/core/lib/browser';
|
|
3
|
-
import { VSXExtensionEditor } from './vsx-extension-editor';
|
|
4
|
-
export declare class VSXExtensionEditorManager extends WidgetOpenHandler<VSXExtensionEditor> {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
canHandle(uri: URI): number;
|
|
7
|
-
protected createWidgetOptions(uri: URI): {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=vsx-extension-editor-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsx-extension-editor-manager.d.ts","sourceRoot":"","sources":["../../src/browser/vsx-extension-editor-manager.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,yBAA0B,SAAQ,iBAAiB,CAAC,kBAAkB,CAAC;IAEhF,QAAQ,CAAC,EAAE,SAAyB;IAEpC,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM;IAK3B,SAAS,CAAC,mBAAmB,CAAC,GAAG,EAAE,GAAG,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;CAQ1D"}
|