@codingame/monaco-vscode-extensions-service-override 38.0.2 → 38.0.4

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-extensions-service-override",
3
- "version": "38.0.2",
3
+ "version": "38.0.4",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - extensions service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "38.0.2",
19
- "@codingame/monaco-vscode-files-service-override": "38.0.2"
18
+ "@codingame/monaco-vscode-api": "38.0.4",
19
+ "@codingame/monaco-vscode-files-service-override": "38.0.4"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -27,7 +27,7 @@ function findFirstFrame(stack) {
27
27
  if (!stack) {
28
28
  return stack;
29
29
  }
30
- const newlineIndex = stack.indexOf("\n");
30
+ const newlineIndex = ( stack.indexOf("\n"));
31
31
  if (newlineIndex === -1) {
32
32
  return stack;
33
33
  }
@@ -41,7 +41,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
41
41
  let extensions = await this.extensionManagementService.getInstalled(ExtensionType.User, profileLocation);
42
42
  const categories = EXTENSION_CATEGORIES.map(c => c.toLowerCase());
43
43
  if (category && category !== "") {
44
- if (categories.indexOf(category.toLowerCase()) < 0) {
44
+ if (( categories.indexOf(category.toLowerCase())) < 0) {
45
45
  this.logger.info(
46
46
  "Invalid category please enter a valid category. To list valid categories run --category without a category specified"
47
47
  );
@@ -50,7 +50,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
50
50
  extensions = extensions.filter(e => {
51
51
  if (e.manifest.categories) {
52
52
  const lowerCaseCategories = e.manifest.categories.map(c => c.toLowerCase());
53
- return lowerCaseCategories.indexOf(category.toLowerCase()) > -1;
53
+ return ( lowerCaseCategories.indexOf(category.toLowerCase())) > -1;
54
54
  }
55
55
  return false;
56
56
  });
@@ -114,7 +114,7 @@ class AbstractExtensionResourceLoaderService extends Disposable {
114
114
  if (this._isWebExtensionResourceEndPoint(uri)) {
115
115
  return uri.authority;
116
116
  }
117
- const index = uri.authority.indexOf(".");
117
+ const index = ( uri.authority.indexOf("."));
118
118
  return index !== -1 ? uri.authority.substring(index + 1) : undefined;
119
119
  }
120
120
  _isWebExtensionResourceEndPoint(uri) {
@@ -31,7 +31,7 @@ async function connectManagedSocket(socket, path, query, debugLabel, half) {
31
31
  } else {
32
32
  dataSoFar = VSBuffer.concat([dataSoFar, d_1], dataSoFar.byteLength + d_1.byteLength);
33
33
  }
34
- const index = dataSoFar.indexOf(socketRawEndHeaderSequence);
34
+ const index = ( dataSoFar.indexOf(socketRawEndHeaderSequence));
35
35
  if (index === -1) {
36
36
  return;
37
37
  }
@@ -41,7 +41,7 @@ let MainThreadEditorInsets = class MainThreadEditorInsets {
41
41
  }
42
42
  async $createEditorInset(handle, id, uri, line, height, options, extensionId, extensionLocation) {
43
43
  let editor;
44
- id = id.substr(0, id.indexOf(","));
44
+ id = id.substr(0, ( id.indexOf(",")));
45
45
  for (const candidate of this._editorService.listCodeEditors()) {
46
46
  if (candidate.getId() === id && candidate.hasModel() && isEqual(candidate.getModel().uri, URI.revive(uri))) {
47
47
  editor = candidate;
@@ -577,7 +577,7 @@ class MainThreadSCMProvider {
577
577
  return;
578
578
  }
579
579
  delete this._groupsByHandle[handle];
580
- this.groups.splice(this.groups.indexOf(group), 1);
580
+ this.groups.splice(( this.groups.indexOf(group)), 1);
581
581
  this._onDidChangeResourceGroups.fire();
582
582
  }
583
583
  async getOriginalResource(uri) {