@codingame/monaco-vscode-extension-gallery-service-override 38.0.1 → 38.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-extension-gallery-service-override",
3
- "version": "38.0.1",
3
+ "version": "38.0.3",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "38.0.1"
18
+ "@codingame/monaco-vscode-api": "38.0.3"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -1251,7 +1251,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1251
1251
  );
1252
1252
  }
1253
1253
  getAllPackExtensionsToUninstall(extension, installed, checked = []) {
1254
- if (checked.indexOf(extension) !== -1) {
1254
+ if (( checked.indexOf(extension)) !== -1) {
1255
1255
  return [];
1256
1256
  }
1257
1257
  if (this.productService.defaultChatAgent && areSameExtensions(extension.identifier, {
@@ -70,7 +70,7 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
70
70
  version = extension.version ?? "*";
71
71
  targetPlatform = extension.targetPlatform ?? TargetPlatform.UNIVERSAL;
72
72
  prerelease = extension.prerelease ?? false;
73
- publisher = extension.id.substring(0, extension.id.indexOf(".")).toLowerCase();
73
+ publisher = extension.id.substring(0, ( extension.id.indexOf("."))).toLowerCase();
74
74
  publisherDisplayName = extension.publisherDisplayName?.toLowerCase();
75
75
  }
76
76
  const settingsCommandLink = ( createCommandUri("workbench.action.openSettings", {
@@ -161,7 +161,7 @@ function getStatistic(statistics, name) {
161
161
  }
162
162
  function getCoreTranslationAssets(version) {
163
163
  const coreTranslationAssetPrefix = "Microsoft.VisualStudio.Code.Translation.";
164
- const result = (version.files ?? []).filter(f => f.assetType.indexOf(coreTranslationAssetPrefix) === 0);
164
+ const result = (version.files ?? []).filter(f => ( f.assetType.indexOf(coreTranslationAssetPrefix)) === 0);
165
165
  return result.reduce((result, file) => {
166
166
  const asset = getVersionAsset(version, file.assetType);
167
167
  if (asset) {
@@ -246,7 +246,7 @@ function getSupportLink(version) {
246
246
  return version.properties?.find(p => p.key === PropertyType.SupportLink)?.value;
247
247
  }
248
248
  function getIsPreview(flags) {
249
- return flags.indexOf("preview") !== -1;
249
+ return ( flags.indexOf("preview")) !== -1;
250
250
  }
251
251
  function getTargetPlatformForExtensionVersion(version) {
252
252
  return version.targetPlatform ? toTargetPlatform(version.targetPlatform) : TargetPlatform.UNDEFINED;
@@ -254,7 +254,7 @@ function getTargetPlatformForExtensionVersion(version) {
254
254
  function getAllTargetPlatforms(rawGalleryExtension) {
255
255
  const allTargetPlatforms = distinct(rawGalleryExtension.versions.map(getTargetPlatformForExtensionVersion));
256
256
  const isWebExtension = !!rawGalleryExtension.tags?.includes(WEB_EXTENSION_TAG);
257
- const webTargetPlatformIndex = allTargetPlatforms.indexOf(TargetPlatform.WEB);
257
+ const webTargetPlatformIndex = ( allTargetPlatforms.indexOf(TargetPlatform.WEB));
258
258
  if (isWebExtension) {
259
259
  if (webTargetPlatformIndex === -1) {
260
260
  allTargetPlatforms.push(TargetPlatform.WEB);
@@ -16,7 +16,6 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
16
16
  import '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement';
17
17
  import '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
18
18
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
19
- import '@codingame/monaco-vscode-api/vscode/vs/nls';
20
19
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
21
20
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
22
21
  import '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry';
@@ -275,7 +275,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
275
275
  title = ( localize(16797, "Activated by {0} on start-up", activationId));
276
276
  } else if (/^workspaceContains:/.test(activationEvent)) {
277
277
  const fileNameOrGlob = activationEvent.substr("workspaceContains:".length);
278
- if (fileNameOrGlob.indexOf("*") >= 0 || fileNameOrGlob.indexOf("?") >= 0) {
278
+ if (( fileNameOrGlob.indexOf("*")) >= 0 || ( fileNameOrGlob.indexOf("?")) >= 0) {
279
279
  title = ( localize(
280
280
  16798,
281
281
  "Activated by {1} because a file matching {0} exists in your workspace",
@@ -403,7 +403,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
403
403
  if (!options.dependencies && !options.pack) {
404
404
  return [];
405
405
  }
406
- const toCheck = extensions.filter(e => checked.indexOf(e) === -1);
406
+ const toCheck = extensions.filter(e => ( checked.indexOf(e)) === -1);
407
407
  if (!toCheck.length) {
408
408
  return [];
409
409
  }
@@ -48,7 +48,7 @@ let ExtensionIgnoredRecommendationsService = class ExtensionIgnoredRecommendatio
48
48
  }
49
49
  toggleGlobalIgnoredRecommendation(extensionId, shouldIgnore) {
50
50
  extensionId = extensionId.toLowerCase();
51
- const ignored = this._globalIgnoredRecommendations.indexOf(extensionId) !== -1;
51
+ const ignored = ( this._globalIgnoredRecommendations.indexOf(extensionId)) !== -1;
52
52
  if (ignored === shouldIgnore) {
53
53
  return;
54
54
  }