@codingame/monaco-vscode-dialogs-service-override 7.1.1 → 8.0.0

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-dialogs-service-override",
3
- "version": "7.1.1",
3
+ "version": "8.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@8.0.0"
30
30
  }
31
31
  }
@@ -89,7 +89,7 @@ configurationRegistry.registerConfiguration({
89
89
  type: 'boolean',
90
90
  default: false,
91
91
  tags: ['experimental'],
92
- description: ( localize(2356, "When enabled, a welcome widget is shown in the editor"))
92
+ description: ( localize(1895, "When enabled, a welcome widget is shown in the editor"))
93
93
  }
94
94
  }
95
95
  });
@@ -28,7 +28,7 @@ class FileDialogService extends AbstractFileDialogService {
28
28
  return super.pickFileFolderAndOpenSimplified(schema, options, false);
29
29
  }
30
30
  throw ( (new Error(
31
- localize(2349, "Can't open folders, try adding a folder to the workspace instead.")
31
+ localize(1888, "Can't open folders, try adding a folder to the workspace instead.")
32
32
  )));
33
33
  }
34
34
  addFileSchemaIfNeeded(schema, isFolder) {
@@ -70,7 +70,7 @@ class FileDialogService extends AbstractFileDialogService {
70
70
  return super.pickFolderAndOpenSimplified(schema, options);
71
71
  }
72
72
  throw ( (new Error(
73
- localize(2349, "Can't open folders, try adding a folder to the workspace instead.")
73
+ localize(1888, "Can't open folders, try adding a folder to the workspace instead.")
74
74
  )));
75
75
  }
76
76
  async pickWorkspaceAndOpen(options) {
@@ -83,7 +83,7 @@ class FileDialogService extends AbstractFileDialogService {
83
83
  return super.pickWorkspaceAndOpenSimplified(schema, options);
84
84
  }
85
85
  throw ( (new Error(localize(
86
- 2350,
86
+ 1889,
87
87
  "Can't open workspaces, try adding a folder to the workspace instead."
88
88
  ))));
89
89
  }
@@ -185,17 +185,17 @@ class FileDialogService extends AbstractFileDialogService {
185
185
  }
186
186
  const buttons = [
187
187
  {
188
- label: ( localize(2351, "&&Open Remote...")),
188
+ label: ( localize(1890, "&&Open Remote...")),
189
189
  run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
190
190
  },
191
191
  {
192
- label: ( localize(2352, "&&Learn More")),
192
+ label: ( localize(1891, "&&Learn More")),
193
193
  run: async () => { await this.openerService.open('https://aka.ms/VSCodeWebLocalFileSystemAccess'); }
194
194
  }
195
195
  ];
196
196
  if (context === 'open') {
197
197
  buttons.push({
198
- label: ( localize(2353, "Open &&Files...")),
198
+ label: ( localize(1892, "Open &&Files...")),
199
199
  run: async () => {
200
200
  const files = await triggerUpload();
201
201
  if (files) {
@@ -215,9 +215,9 @@ class FileDialogService extends AbstractFileDialogService {
215
215
  }
216
216
  await this.dialogService.prompt({
217
217
  type: Severity$1.Warning,
218
- message: ( localize(2354, "Opening Local Folders is Unsupported")),
218
+ message: ( localize(1893, "Opening Local Folders is Unsupported")),
219
219
  detail: ( localize(
220
- 2355,
220
+ 1894,
221
221
  "Your browser doesn't support opening local folders.\nYou can either open single files or open a remote repository."
222
222
  )),
223
223
  buttons
@@ -36,7 +36,7 @@ import { getActiveDocument } from 'vscode/vscode/vs/base/browser/dom';
36
36
  var OpenLocalFileCommand;
37
37
  ( ((function(OpenLocalFileCommand) {
38
38
  OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
39
- OpenLocalFileCommand.LABEL = ( localize(10104, "Open Local File..."));
39
+ OpenLocalFileCommand.LABEL = ( localize(10097, "Open Local File..."));
40
40
  function handler() {
41
41
  return accessor => {
42
42
  const dialogService = accessor.get(IFileDialogService);
@@ -48,7 +48,7 @@ var OpenLocalFileCommand;
48
48
  var SaveLocalFileCommand;
49
49
  ( ((function(SaveLocalFileCommand) {
50
50
  SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
51
- SaveLocalFileCommand.LABEL = ( localize(10105, "Save Local File..."));
51
+ SaveLocalFileCommand.LABEL = ( localize(10098, "Save Local File..."));
52
52
  function handler() {
53
53
  return accessor => {
54
54
  const editorService = accessor.get(IEditorService);
@@ -64,7 +64,7 @@ var SaveLocalFileCommand;
64
64
  var OpenLocalFolderCommand;
65
65
  ( ((function(OpenLocalFolderCommand) {
66
66
  OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
67
- OpenLocalFolderCommand.LABEL = ( localize(10106, "Open Local Folder..."));
67
+ OpenLocalFolderCommand.LABEL = ( localize(10099, "Open Local Folder..."));
68
68
  function handler() {
69
69
  return accessor => {
70
70
  const dialogService = accessor.get(IFileDialogService);
@@ -76,7 +76,7 @@ var OpenLocalFolderCommand;
76
76
  var OpenLocalFileFolderCommand;
77
77
  ( ((function(OpenLocalFileFolderCommand) {
78
78
  OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
79
- OpenLocalFileFolderCommand.LABEL = ( localize(10107, "Open Local..."));
79
+ OpenLocalFileFolderCommand.LABEL = ( localize(10100, "Open Local..."));
80
80
  function handler() {
81
81
  return accessor => {
82
82
  const dialogService = accessor.get(IFileDialogService);
@@ -180,7 +180,7 @@ let SimpleFileDialog = class SimpleFileDialog {
180
180
  }
181
181
  if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
182
182
  this.notificationService.info(( localize(
183
- 10108,
183
+ 10101,
184
184
  'File system provider for {0} is not available.',
185
185
  (defaultUri.toString())
186
186
  )));
@@ -254,7 +254,7 @@ let SimpleFileDialog = class SimpleFileDialog {
254
254
  this.filePickBox.ok = true;
255
255
  if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
256
256
  this.filePickBox.customButton = true;
257
- this.filePickBox.customLabel = ( localize(10109, 'Show Local'));
257
+ this.filePickBox.customLabel = ( localize(10102, 'Show Local'));
258
258
  let action;
259
259
  if (isSave) {
260
260
  action = SaveLocalFileCommand;
@@ -548,7 +548,7 @@ let SimpleFileDialog = class SimpleFileDialog {
548
548
  return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
549
549
  }
550
550
  else if (this.endsWithSlash(value)) {
551
- this.filePickBox.validationMessage = ( localize(10110, 'The path does not exist.'));
551
+ this.filePickBox.validationMessage = ( localize(10103, 'The path does not exist.'));
552
552
  this.badPath = value;
553
553
  return UpdateResult.InvalidPath;
554
554
  }
@@ -705,7 +705,7 @@ let SimpleFileDialog = class SimpleFileDialog {
705
705
  prompt.ignoreFocusOut = true;
706
706
  prompt.ok = true;
707
707
  prompt.customButton = true;
708
- prompt.customLabel = ( localize(10111, 'Cancel'));
708
+ prompt.customLabel = ( localize(10104, 'Cancel'));
709
709
  prompt.value = this.pathFromUri(uri);
710
710
  let isResolving = false;
711
711
  return (
@@ -735,7 +735,7 @@ let SimpleFileDialog = class SimpleFileDialog {
735
735
  }
736
736
  async validate(uri) {
737
737
  if (uri === undefined) {
738
- this.filePickBox.validationMessage = ( localize(10112, 'Please enter a valid path.'));
738
+ this.filePickBox.validationMessage = ( localize(10105, 'Please enter a valid path.'));
739
739
  return Promise.resolve(false);
740
740
  }
741
741
  let stat;
@@ -748,36 +748,36 @@ let SimpleFileDialog = class SimpleFileDialog {
748
748
  }
749
749
  if (this.requiresTrailing) {
750
750
  if (stat && stat.isDirectory) {
751
- this.filePickBox.validationMessage = ( localize(10113, 'The folder already exists. Please use a new file name.'));
751
+ this.filePickBox.validationMessage = ( localize(10106, 'The folder already exists. Please use a new file name.'));
752
752
  return Promise.resolve(false);
753
753
  }
754
754
  else if (stat) {
755
755
  const message = ( localize(
756
- 10114,
756
+ 10107,
757
757
  '{0} already exists. Are you sure you want to overwrite it?',
758
758
  basename(uri)
759
759
  ));
760
760
  return this.yesNoPrompt(uri, message);
761
761
  }
762
762
  else if (!(isValidBasename(basename(uri), this.isWindows))) {
763
- this.filePickBox.validationMessage = ( localize(10115, 'Please enter a valid file name.'));
763
+ this.filePickBox.validationMessage = ( localize(10108, 'Please enter a valid file name.'));
764
764
  return Promise.resolve(false);
765
765
  }
766
766
  else if (!statDirname) {
767
767
  const message = ( localize(
768
- 10116,
768
+ 10109,
769
769
  'The folder {0} does not exist. Would you like to create it?',
770
770
  basename(dirname(uri))
771
771
  ));
772
772
  return this.yesNoPrompt(uri, message);
773
773
  }
774
774
  else if (!statDirname.isDirectory) {
775
- this.filePickBox.validationMessage = ( localize(10117, 'Please enter a path that exists.'));
775
+ this.filePickBox.validationMessage = ( localize(10110, 'Please enter a path that exists.'));
776
776
  return Promise.resolve(false);
777
777
  }
778
778
  else if (statDirname.readonly) {
779
779
  this.filePickBox.validationMessage = ( localize(
780
- 10118,
780
+ 10111,
781
781
  'This folder cannot be used as a save destination. Please choose another folder'
782
782
  ));
783
783
  return Promise.resolve(false);
@@ -785,19 +785,19 @@ let SimpleFileDialog = class SimpleFileDialog {
785
785
  }
786
786
  else {
787
787
  if (!stat) {
788
- this.filePickBox.validationMessage = ( localize(10118, 'Please enter a path that exists.'));
788
+ this.filePickBox.validationMessage = ( localize(10111, 'Please enter a path that exists.'));
789
789
  return Promise.resolve(false);
790
790
  }
791
791
  else if (uri.path === '/' && this.isWindows) {
792
- this.filePickBox.validationMessage = ( localize(10119, 'Please start the path with a drive letter.'));
792
+ this.filePickBox.validationMessage = ( localize(10112, 'Please start the path with a drive letter.'));
793
793
  return Promise.resolve(false);
794
794
  }
795
795
  else if (stat.isDirectory && !this.allowFolderSelection) {
796
- this.filePickBox.validationMessage = ( localize(10120, 'Please select a file.'));
796
+ this.filePickBox.validationMessage = ( localize(10113, 'Please select a file.'));
797
797
  return Promise.resolve(false);
798
798
  }
799
799
  else if (!stat.isDirectory && !this.allowFileSelection) {
800
- this.filePickBox.validationMessage = ( localize(10121, 'Please select a folder.'));
800
+ this.filePickBox.validationMessage = ( localize(10114, 'Please select a folder.'));
801
801
  return Promise.resolve(false);
802
802
  }
803
803
  }