@codingame/monaco-vscode-dialogs-service-override 26.0.0 → 26.1.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": "26.0.0",
3
+ "version": "26.1.0",
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": "26.0.0"
18
+ "@codingame/monaco-vscode-api": "26.1.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -187,16 +187,16 @@ let AbstractFileDialogService = class AbstractFileDialogService {
187
187
  return ConfirmResult.DONT_SAVE;
188
188
  }
189
189
  let message;
190
- let detail = ( localize(14227, "Your changes will be lost if you don't save them."));
190
+ let detail = ( localize(14228, "Your changes will be lost if you don't save them."));
191
191
  if (fileNamesOrResources.length === 1) {
192
192
  message = ( localize(
193
- 14228,
193
+ 14229,
194
194
  "Do you want to save the changes you made to {0}?",
195
195
  typeof fileNamesOrResources[0] === "string" ? fileNamesOrResources[0] : basename(fileNamesOrResources[0])
196
196
  ));
197
197
  } else {
198
198
  message = ( localize(
199
- 14229,
199
+ 14230,
200
200
  "Do you want to save the changes to the following {0} files?",
201
201
  fileNamesOrResources.length
202
202
  ));
@@ -209,10 +209,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
209
209
  message,
210
210
  detail,
211
211
  buttons: [{
212
- label: fileNamesOrResources.length > 1 ? ( localize(14230, "&&Save All")) : ( localize(14231, "&&Save")),
212
+ label: fileNamesOrResources.length > 1 ? ( localize(14231, "&&Save All")) : ( localize(14232, "&&Save")),
213
213
  run: () => ConfirmResult.SAVE
214
214
  }, {
215
- label: ( localize(14232, "Do&&n't Save")),
215
+ label: ( localize(14233, "Do&&n't Save")),
216
216
  run: () => ConfirmResult.DONT_SAVE
217
217
  }],
218
218
  cancelButton: {
@@ -225,7 +225,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
225
225
  return schema === Schemas.untitled ? [Schemas.file] : (schema !== Schemas.file ? [schema, Schemas.file] : [schema]);
226
226
  }
227
227
  async pickFileFolderAndOpenSimplified(schema, options, preferNewWindow) {
228
- const title = ( localize(14233, "Open File or Folder"));
228
+ const title = ( localize(14234, "Open File or Folder"));
229
229
  const availableFileSystems = this.addFileSchemaIfNeeded(schema);
230
230
  const uri = await this.pickResource({
231
231
  canSelectFiles: true,
@@ -264,7 +264,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
264
264
  }
265
265
  }
266
266
  async pickFileAndOpenSimplified(schema, options, preferNewWindow) {
267
- const title = ( localize(14234, "Open File"));
267
+ const title = ( localize(14235, "Open File"));
268
268
  const availableFileSystems = this.addFileSchemaIfNeeded(schema);
269
269
  const uri = await this.pickResource({
270
270
  canSelectFiles: true,
@@ -305,7 +305,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
305
305
  }]);
306
306
  }
307
307
  async pickFolderAndOpenSimplified(schema, options) {
308
- const title = ( localize(14235, "Open Folder"));
308
+ const title = ( localize(14236, "Open Folder"));
309
309
  const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
310
310
  const uri = await this.pickResource({
311
311
  canSelectFiles: false,
@@ -325,9 +325,9 @@ let AbstractFileDialogService = class AbstractFileDialogService {
325
325
  }
326
326
  }
327
327
  async pickWorkspaceAndOpenSimplified(schema, options) {
328
- const title = ( localize(14236, "Open Workspace from File"));
328
+ const title = ( localize(14237, "Open Workspace from File"));
329
329
  const filters = [{
330
- name: ( localize(14237, "Workspace")),
330
+ name: ( localize(14238, "Workspace")),
331
331
  extensions: [WORKSPACE_EXTENSION]
332
332
  }];
333
333
  const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
@@ -353,7 +353,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
353
353
  if (!options.availableFileSystems) {
354
354
  options.availableFileSystems = this.addFileSchemaIfNeeded(schema);
355
355
  }
356
- options.title = ( localize(14238, "Save As"));
356
+ options.title = ( localize(14239, "Save As"));
357
357
  const uri = await this.saveRemoteResource(options);
358
358
  if (uri) {
359
359
  this.addFileToRecentlyOpened(uri);
@@ -404,7 +404,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
404
404
  getPickFileToSaveDialogOptions(defaultUri, availableFileSystems) {
405
405
  const options = {
406
406
  defaultUri,
407
- title: ( localize(14239, "Save As")),
407
+ title: ( localize(14240, "Save As")),
408
408
  availableFileSystems
409
409
  };
410
410
  const ext = defaultUri ? extname(defaultUri) : undefined;
@@ -442,10 +442,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
442
442
  };
443
443
  }
444
444
  options.filters = coalesce([{
445
- name: ( localize(14240, "All Files")),
445
+ name: ( localize(14241, "All Files")),
446
446
  extensions: ["*"]
447
447
  }, matchingFilter, ...registeredLanguageFilters, {
448
- name: ( localize(14241, "No Extension")),
448
+ name: ( localize(14242, "No Extension")),
449
449
  extensions: [""]
450
450
  }]);
451
451
  return options;
@@ -28,7 +28,7 @@ class FileDialogService extends AbstractFileDialogService {
28
28
  if (this.shouldUseSimplified(schema)) {
29
29
  return super.pickFileFolderAndOpenSimplified(schema, options, false);
30
30
  }
31
- throw ( new Error(( localize(14242, "Can't open folders, try adding a folder to the workspace instead."))));
31
+ throw ( new Error(( localize(14243, "Can't open folders, try adding a folder to the workspace instead."))));
32
32
  }
33
33
  addFileSchemaIfNeeded(schema, isFolder) {
34
34
  return (schema === Schemas.untitled) ? [Schemas.file] : (((schema !== Schemas.file) && (!isFolder || (schema !== Schemas.vscodeRemote))) ? [schema, Schemas.file] : [schema]);
@@ -73,7 +73,7 @@ class FileDialogService extends AbstractFileDialogService {
73
73
  if (this.shouldUseSimplified(schema)) {
74
74
  return super.pickFolderAndOpenSimplified(schema, options);
75
75
  }
76
- throw ( new Error(( localize(14242, "Can't open folders, try adding a folder to the workspace instead."))));
76
+ throw ( new Error(( localize(14243, "Can't open folders, try adding a folder to the workspace instead."))));
77
77
  }
78
78
  async pickWorkspaceAndOpen(options) {
79
79
  options.availableFileSystems = this.getWorkspaceAvailableFileSystems(options);
@@ -85,7 +85,7 @@ class FileDialogService extends AbstractFileDialogService {
85
85
  return super.pickWorkspaceAndOpenSimplified(schema, options);
86
86
  }
87
87
  throw ( new Error(( localize(
88
- 14243,
88
+ 14244,
89
89
  "Can't open workspaces, try adding a folder to the workspace instead."
90
90
  ))));
91
91
  }
@@ -213,19 +213,19 @@ class FileDialogService extends AbstractFileDialogService {
213
213
  }
214
214
  }
215
215
  const buttons = [{
216
- label: ( localize(14244, "&&Open Remote...")),
216
+ label: ( localize(14245, "&&Open Remote...")),
217
217
  run: async () => {
218
218
  await this.commandService.executeCommand("workbench.action.remote.showMenu");
219
219
  }
220
220
  }, {
221
- label: ( localize(14245, "&&Learn More")),
221
+ label: ( localize(14246, "&&Learn More")),
222
222
  run: async () => {
223
223
  await this.openerService.open("https://aka.ms/VSCodeWebLocalFileSystemAccess");
224
224
  }
225
225
  }];
226
226
  if (context === "open") {
227
227
  buttons.push({
228
- label: ( localize(14246, "Open &&Files...")),
228
+ label: ( localize(14247, "Open &&Files...")),
229
229
  run: async () => {
230
230
  const files = await triggerUpload();
231
231
  if (files) {
@@ -247,9 +247,9 @@ class FileDialogService extends AbstractFileDialogService {
247
247
  }
248
248
  await this.dialogService.prompt({
249
249
  type: Severity.Warning,
250
- message: ( localize(14247, "Opening Local Folders is Unsupported")),
250
+ message: ( localize(14248, "Opening Local Folders is Unsupported")),
251
251
  detail: ( localize(
252
- 14248,
252
+ 14249,
253
253
  "Your browser doesn't support opening local folders.\nYou can either open single files or open a remote repository."
254
254
  )),
255
255
  buttons
@@ -41,7 +41,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
41
41
  var OpenLocalFileCommand;
42
42
  (function(OpenLocalFileCommand) {
43
43
  OpenLocalFileCommand.ID = "workbench.action.files.openLocalFile";
44
- OpenLocalFileCommand.LABEL = ( localize(14249, "Open Local File..."));
44
+ OpenLocalFileCommand.LABEL = ( localize(14250, "Open Local File..."));
45
45
  function handler() {
46
46
  return accessor => {
47
47
  const dialogService = accessor.get(IFileDialogService);
@@ -56,7 +56,7 @@ var OpenLocalFileCommand;
56
56
  var SaveLocalFileCommand;
57
57
  (function(SaveLocalFileCommand) {
58
58
  SaveLocalFileCommand.ID = "workbench.action.files.saveLocalFile";
59
- SaveLocalFileCommand.LABEL = ( localize(14250, "Save Local File..."));
59
+ SaveLocalFileCommand.LABEL = ( localize(14251, "Save Local File..."));
60
60
  function handler() {
61
61
  return accessor => {
62
62
  const editorService = accessor.get(IEditorService);
@@ -79,7 +79,7 @@ var SaveLocalFileCommand;
79
79
  var OpenLocalFolderCommand;
80
80
  (function(OpenLocalFolderCommand) {
81
81
  OpenLocalFolderCommand.ID = "workbench.action.files.openLocalFolder";
82
- OpenLocalFolderCommand.LABEL = ( localize(14251, "Open Local Folder..."));
82
+ OpenLocalFolderCommand.LABEL = ( localize(14252, "Open Local Folder..."));
83
83
  function handler() {
84
84
  return accessor => {
85
85
  const dialogService = accessor.get(IFileDialogService);
@@ -94,7 +94,7 @@ var OpenLocalFolderCommand;
94
94
  var OpenLocalFileFolderCommand;
95
95
  (function(OpenLocalFileFolderCommand) {
96
96
  OpenLocalFileFolderCommand.ID = "workbench.action.files.openLocalFileFolder";
97
- OpenLocalFileFolderCommand.LABEL = ( localize(14252, "Open Local..."));
97
+ OpenLocalFileFolderCommand.LABEL = ( localize(14253, "Open Local..."));
98
98
  function handler() {
99
99
  return accessor => {
100
100
  const dialogService = accessor.get(IFileDialogService);
@@ -239,7 +239,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
239
239
  }
240
240
  if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
241
241
  this.notificationService.info(( localize(
242
- 14253,
242
+ 14254,
243
243
  "File system provider for {0} is not available.",
244
244
  (defaultUri.toString())
245
245
  )));
@@ -312,12 +312,12 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
312
312
  this.filePickBox.matchOnLabel = false;
313
313
  this.filePickBox.sortByLabel = false;
314
314
  this.filePickBox.ignoreFocusOut = true;
315
- this.filePickBox.placeholder = ( localize(14254, "Folder path"));
315
+ this.filePickBox.placeholder = ( localize(14255, "Folder path"));
316
316
  this.filePickBox.ok = true;
317
317
  this.filePickBox.okLabel = typeof this.options.openLabel === "string" ? this.options.openLabel : this.options.openLabel?.withoutMnemonic;
318
318
  if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
319
319
  this.filePickBox.customButton = true;
320
- this.filePickBox.customLabel = ( localize(14255, "Show Local"));
320
+ this.filePickBox.customLabel = ( localize(14256, "Show Local"));
321
321
  this.filePickBox.customButtonSecondary = true;
322
322
  let action;
323
323
  if (isSave) {
@@ -464,7 +464,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
464
464
  setButtons() {
465
465
  this.filePickBox.buttons = [{
466
466
  iconClass: this._showDotFiles ? ThemeIcon.asClassName(Codicon.eye) : ThemeIcon.asClassName(Codicon.eyeClosed),
467
- tooltip: this._showDotFiles ? ( localize(14256, "Hide dot files")) : ( localize(14257, "Show dot files")),
467
+ tooltip: this._showDotFiles ? ( localize(14257, "Hide dot files")) : ( localize(14258, "Show dot files")),
468
468
  alwaysVisible: true
469
469
  }];
470
470
  }
@@ -619,7 +619,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
619
619
  valueUri = this.tryAddTrailingSeparatorToDirectory(valueUri, stat);
620
620
  return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
621
621
  } else if (this.endsWithSlash(value)) {
622
- this.filePickBox.validationMessage = ( localize(14258, "The path does not exist. Use ~ to go to your home directory."));
622
+ this.filePickBox.validationMessage = ( localize(14259, "The path does not exist. Use ~ to go to your home directory."));
623
623
  this.badPath = value;
624
624
  return UpdateResult.InvalidPath;
625
625
  } else {
@@ -783,7 +783,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
783
783
  prompt.ignoreFocusOut = true;
784
784
  prompt.ok = true;
785
785
  prompt.customButton = true;
786
- prompt.customLabel = ( localize(14259, "Cancel"));
786
+ prompt.customLabel = ( localize(14260, "Cancel"));
787
787
  prompt.customButtonSecondary = true;
788
788
  prompt.value = this.pathFromUri(uri);
789
789
  let isResolving = false;
@@ -812,7 +812,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
812
812
  }
813
813
  async validate(uri) {
814
814
  if (uri === undefined) {
815
- this.filePickBox.validationMessage = ( localize(14260, "Please enter a valid path."));
815
+ this.filePickBox.validationMessage = ( localize(14261, "Please enter a valid path."));
816
816
  return Promise.resolve(false);
817
817
  }
818
818
  let stat;
@@ -823,47 +823,47 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
823
823
  } catch (e) {}
824
824
  if (this.requiresTrailing) {
825
825
  if (stat?.isDirectory) {
826
- this.filePickBox.validationMessage = ( localize(14261, "The folder already exists. Please use a new file name."));
826
+ this.filePickBox.validationMessage = ( localize(14262, "The folder already exists. Please use a new file name."));
827
827
  return Promise.resolve(false);
828
828
  } else if (stat) {
829
829
  const message = ( localize(
830
- 14262,
830
+ 14263,
831
831
  "{0} already exists. Are you sure you want to overwrite it?",
832
832
  basename(uri)
833
833
  ));
834
834
  return this.yesNoPrompt(uri, message);
835
835
  } else if (!(isValidBasename(basename(uri), this.isWindows))) {
836
- this.filePickBox.validationMessage = ( localize(14263, "Please enter a valid file name."));
836
+ this.filePickBox.validationMessage = ( localize(14264, "Please enter a valid file name."));
837
837
  return Promise.resolve(false);
838
838
  } else if (!statDirname) {
839
839
  const message = ( localize(
840
- 14264,
840
+ 14265,
841
841
  "The folder {0} does not exist. Would you like to create it?",
842
842
  basename(dirname(uri))
843
843
  ));
844
844
  return this.yesNoPrompt(uri, message);
845
845
  } else if (!statDirname.isDirectory) {
846
- this.filePickBox.validationMessage = ( localize(14265, "Please enter a path that exists."));
846
+ this.filePickBox.validationMessage = ( localize(14266, "Please enter a path that exists."));
847
847
  return Promise.resolve(false);
848
848
  } else if (statDirname.readonly) {
849
849
  this.filePickBox.validationMessage = ( localize(
850
- 14266,
850
+ 14267,
851
851
  "This folder cannot be used as a save destination. Please choose another folder"
852
852
  ));
853
853
  return Promise.resolve(false);
854
854
  }
855
855
  } else {
856
856
  if (!stat) {
857
- this.filePickBox.validationMessage = ( localize(14265, "Please enter a path that exists."));
857
+ this.filePickBox.validationMessage = ( localize(14266, "Please enter a path that exists."));
858
858
  return Promise.resolve(false);
859
859
  } else if (uri.path === "/" && this.isWindows) {
860
- this.filePickBox.validationMessage = ( localize(14267, "Please start the path with a drive letter."));
860
+ this.filePickBox.validationMessage = ( localize(14268, "Please start the path with a drive letter."));
861
861
  return Promise.resolve(false);
862
862
  } else if (stat.isDirectory && !this.allowFolderSelection) {
863
- this.filePickBox.validationMessage = ( localize(14268, "Please select a file."));
863
+ this.filePickBox.validationMessage = ( localize(14269, "Please select a file."));
864
864
  return Promise.resolve(false);
865
865
  } else if (!stat.isDirectory && !this.allowFileSelection) {
866
- this.filePickBox.validationMessage = ( localize(14269, "Please select a folder."));
866
+ this.filePickBox.validationMessage = ( localize(14270, "Please select a folder."));
867
867
  return Promise.resolve(false);
868
868
  }
869
869
  }