@codingame/monaco-vscode-dialogs-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/common.js CHANGED
@@ -3,7 +3,6 @@ import { DialogService } from './vscode/src/vs/workbench/services/dialogs/common
3
3
  import { IFileDialogService, IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
4
4
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
5
5
  import { FileDialogService } from './vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.js';
6
- import '@codingame/monaco-vscode-api/vscode/vs/nls';
7
6
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/charCode';
8
7
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
9
8
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-dialogs-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 - dialogs 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",
@@ -126,9 +126,7 @@ class FileDialogService extends AbstractFileDialogService {
126
126
  return !((filter.extensions.length === 1) && ((filter.extensions[0] === "*") || filter.extensions[0] === ""));
127
127
  }).map(filter => {
128
128
  const accept = {};
129
- const extensions = filter.extensions.filter(
130
- ext => (ext.indexOf("-") < 0) && (ext.indexOf("*") < 0) && (ext.indexOf("_") < 0)
131
- );
129
+ const extensions = filter.extensions.filter(ext => (( ext.indexOf("-")) < 0) && (( ext.indexOf("*")) < 0) && (( ext.indexOf("_")) < 0));
132
130
  accept[(getMediaOrTextMime(`fileName.${filter.extensions[0]}`) ?? "text/plain")] = extensions.map(ext => ext.startsWith(".") ? ext : `.${ext}`);
133
131
  return {
134
132
  description: filter.name,
@@ -288,7 +288,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
288
288
  }
289
289
  getScheme(available, defaultUri) {
290
290
  if (available && available.length > 0) {
291
- if (defaultUri && (available.indexOf(defaultUri.scheme) >= 0)) {
291
+ if (defaultUri && (( available.indexOf(defaultUri.scheme)) >= 0)) {
292
292
  return defaultUri.scheme;
293
293
  }
294
294
  return available[0];
@@ -352,7 +352,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
352
352
  this.filePickBox.placeholder = ( localize(24422, "Folder path"));
353
353
  this.filePickBox.ok = true;
354
354
  this.filePickBox.okLabel = typeof this.options.openLabel === "string" ? this.options.openLabel : this.options.openLabel?.withoutMnemonic;
355
- if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
355
+ if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (( this.options.availableFileSystems.indexOf(Schemas.file)) > -1)) {
356
356
  this.filePickBox.customButton = true;
357
357
  this.filePickBox.customLabel = ( localize(24423, "Show Local"));
358
358
  this.filePickBox.customButtonSecondary = true;