@codingame/monaco-vscode-workspace-trust-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-workspace-trust-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 - workspace-trust 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",
@@ -541,7 +541,7 @@ let WorkspaceTrustUXHandler = class WorkspaceTrustUXHandler extends Disposable {
541
541
  try {
542
542
  const content = await this.fileService.readFile(aiGeneratedWorkspaces);
543
543
  const workspaces = JSON.parse(( content.value.toString()));
544
- if (workspaces.indexOf(( this.workspaceContextService.getWorkspace().folders[0].uri.toString())) > -1) {
544
+ if (( workspaces.indexOf(( this.workspaceContextService.getWorkspace().folders[0].uri.toString()))) > -1) {
545
545
  return true;
546
546
  }
547
547
  } catch (e) {}
@@ -185,7 +185,7 @@ let WorkspaceTrustedUrisTable = class WorkspaceTrustedUrisTable extends Disposab
185
185
  }));
186
186
  }
187
187
  getIndexOfTrustedUriEntry(item) {
188
- const index = this.trustedUriEntries.indexOf(item);
188
+ const index = ( this.trustedUriEntries.indexOf(item));
189
189
  if (index === -1) {
190
190
  for (let i = 0; i < this.trustedUriEntries.length; i++) {
191
191
  if (this.trustedUriEntries[i].uri === item.uri) {
@@ -314,7 +314,7 @@ let WorkspaceTrustedUrisTable = class WorkspaceTrustedUrisTable extends Disposab
314
314
  this._onDidRejectEdit.fire(item);
315
315
  }
316
316
  async delete(item) {
317
- const index = this.table.indexOf(item);
317
+ const index = ( this.table.indexOf(item));
318
318
  if (index < this.table.length - 1) {
319
319
  this.table.setFocus([index + 1]);
320
320
  } else if (index > 0) {