@codingame/monaco-vscode-dialogs-service-override 9.0.0 → 9.0.2

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": "9.0.0",
3
+ "version": "9.0.2",
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@9.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
30
30
  }
31
31
  }
@@ -58,7 +58,7 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
58
58
  async about() {
59
59
  const detailString = (useAgo) => {
60
60
  return ( localize(
61
- 5617,
61
+ 5653,
62
62
  "Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}",
63
63
  this.productService.version || 'Unknown',
64
64
  this.productService.commit || 'Unknown',
@@ -69,8 +69,8 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
69
69
  const detail = detailString(true);
70
70
  const detailToCopy = detailString(false);
71
71
  const { button } = await this.doShow(Severity$1.Info, this.productService.nameLong, [
72
- ( localize(5618, "&&Copy")),
73
- ( localize(5619, "OK"))
72
+ ( localize(5654, "&&Copy")),
73
+ ( localize(5655, "OK"))
74
74
  ], detail, 1);
75
75
  if (button === 0) {
76
76
  this.clipboardService.writeText(detailToCopy);
@@ -89,7 +89,7 @@ configurationRegistry.registerConfiguration({
89
89
  type: 'boolean',
90
90
  default: false,
91
91
  tags: ['experimental'],
92
- description: ( localize(1904, "When enabled, a welcome widget is shown in the editor"))
92
+ description: ( localize(2386, "When enabled, a welcome widget is shown in the editor"))
93
93
  }
94
94
  }
95
95
  });
@@ -71,7 +71,7 @@ class WelcomeWidget extends Disposable {
71
71
  }
72
72
  async buildWidgetContent(title, message, buttonText, buttonAction) {
73
73
  const actionBar = this._register(( (new ActionBar(this.element, {}))));
74
- const action = this._register(( (new Action('dialog.close', ( localize(5620, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
74
+ const action = this._register(( (new Action('dialog.close', ( localize(5656, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
75
75
  this._hide();
76
76
  }))));
77
77
  actionBar.push(action, { icon: true, label: false });
@@ -120,17 +120,17 @@ let AbstractFileDialogService = class AbstractFileDialogService {
120
120
  return ConfirmResult.DONT_SAVE;
121
121
  }
122
122
  let message;
123
- let detail = ( localize(5601, "Your changes will be lost if you don't save them."));
123
+ let detail = ( localize(5637, "Your changes will be lost if you don't save them."));
124
124
  if (fileNamesOrResources.length === 1) {
125
125
  message = ( localize(
126
- 5602,
126
+ 5638,
127
127
  "Do you want to save the changes you made to {0}?",
128
128
  typeof fileNamesOrResources[0] === 'string' ? fileNamesOrResources[0] : basename(fileNamesOrResources[0])
129
129
  ));
130
130
  }
131
131
  else {
132
132
  message = ( localize(
133
- 5603,
133
+ 5639,
134
134
  "Do you want to save the changes to the following {0} files?",
135
135
  fileNamesOrResources.length
136
136
  ));
@@ -143,12 +143,12 @@ let AbstractFileDialogService = class AbstractFileDialogService {
143
143
  buttons: [
144
144
  {
145
145
  label: fileNamesOrResources.length > 1 ?
146
- ( localize(5604, "&&Save All")) :
147
- ( localize(5605, "&&Save")),
146
+ ( localize(5640, "&&Save All")) :
147
+ ( localize(5641, "&&Save")),
148
148
  run: () => ConfirmResult.SAVE
149
149
  },
150
150
  {
151
- label: ( localize(5606, "Do&&n't Save")),
151
+ label: ( localize(5642, "Do&&n't Save")),
152
152
  run: () => ConfirmResult.DONT_SAVE
153
153
  }
154
154
  ],
@@ -162,7 +162,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
162
162
  return schema === Schemas.untitled ? [Schemas.file] : (schema !== Schemas.file ? [schema, Schemas.file] : [schema]);
163
163
  }
164
164
  async pickFileFolderAndOpenSimplified(schema, options, preferNewWindow) {
165
- const title = ( localize(5607, 'Open File or Folder'));
165
+ const title = ( localize(5643, 'Open File or Folder'));
166
166
  const availableFileSystems = this.addFileSchemaIfNeeded(schema);
167
167
  const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
168
168
  if (uri) {
@@ -180,7 +180,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
180
180
  }
181
181
  }
182
182
  async pickFileAndOpenSimplified(schema, options, preferNewWindow) {
183
- const title = ( localize(5608, 'Open File'));
183
+ const title = ( localize(5644, 'Open File'));
184
184
  const availableFileSystems = this.addFileSchemaIfNeeded(schema);
185
185
  const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
186
186
  if (uri) {
@@ -197,7 +197,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
197
197
  this.workspacesService.addRecentlyOpened([{ fileUri: uri, label: this.labelService.getUriLabel(uri) }]);
198
198
  }
199
199
  async pickFolderAndOpenSimplified(schema, options) {
200
- const title = ( localize(5609, 'Open Folder'));
200
+ const title = ( localize(5645, 'Open Folder'));
201
201
  const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
202
202
  const uri = await this.pickResource({ canSelectFiles: false, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
203
203
  if (uri) {
@@ -205,8 +205,8 @@ let AbstractFileDialogService = class AbstractFileDialogService {
205
205
  }
206
206
  }
207
207
  async pickWorkspaceAndOpenSimplified(schema, options) {
208
- const title = ( localize(5610, 'Open Workspace from File'));
209
- const filters = [{ name: ( localize(5611, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
208
+ const title = ( localize(5646, 'Open Workspace from File'));
209
+ const filters = [{ name: ( localize(5647, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
210
210
  const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
211
211
  const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, filters, availableFileSystems });
212
212
  if (uri) {
@@ -217,7 +217,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
217
217
  if (!options.availableFileSystems) {
218
218
  options.availableFileSystems = this.addFileSchemaIfNeeded(schema);
219
219
  }
220
- options.title = ( localize(5612, 'Save As'));
220
+ options.title = ( localize(5648, 'Save As'));
221
221
  const uri = await this.saveRemoteResource(options);
222
222
  if (uri) {
223
223
  this.addFileToRecentlyOpened(uri);
@@ -268,7 +268,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
268
268
  getPickFileToSaveDialogOptions(defaultUri, availableFileSystems) {
269
269
  const options = {
270
270
  defaultUri,
271
- title: ( localize(5613, "Save As")),
271
+ title: ( localize(5649, "Save As")),
272
272
  availableFileSystems
273
273
  };
274
274
  const ext = defaultUri ? extname(defaultUri) : undefined;
@@ -295,10 +295,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
295
295
  matchingFilter = { name: trim(ext, '.').toUpperCase(), extensions: [trim(ext, '.')] };
296
296
  }
297
297
  options.filters = coalesce([
298
- { name: ( localize(5614, "All Files")), extensions: ['*'] },
298
+ { name: ( localize(5650, "All Files")), extensions: ['*'] },
299
299
  matchingFilter,
300
300
  ...registeredLanguageFilters,
301
- { name: ( localize(5615, "No Extension")), extensions: [''] }
301
+ { name: ( localize(5651, "No Extension")), extensions: [''] }
302
302
  ]);
303
303
  return options;
304
304
  }
@@ -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(1897, "Can't open folders, try adding a folder to the workspace instead.")
31
+ localize(2379, "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(1897, "Can't open folders, try adding a folder to the workspace instead.")
73
+ localize(2379, "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
- 1898,
86
+ 2380,
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(1899, "&&Open Remote...")),
188
+ label: ( localize(2381, "&&Open Remote...")),
189
189
  run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
190
190
  },
191
191
  {
192
- label: ( localize(1900, "&&Learn More")),
192
+ label: ( localize(2382, "&&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(1901, "Open &&Files...")),
198
+ label: ( localize(2383, "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(1902, "Opening Local Folders is Unsupported")),
218
+ message: ( localize(2384, "Opening Local Folders is Unsupported")),
219
219
  detail: ( localize(
220
- 1903,
220
+ 2385,
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(10140, "Open Local File..."));
39
+ OpenLocalFileCommand.LABEL = ( localize(10152, "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(10141, "Save Local File..."));
51
+ SaveLocalFileCommand.LABEL = ( localize(10153, "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(10142, "Open Local Folder..."));
67
+ OpenLocalFolderCommand.LABEL = ( localize(10154, "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(10143, "Open Local..."));
79
+ OpenLocalFileFolderCommand.LABEL = ( localize(10155, "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
- 10144,
183
+ 10156,
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(10145, 'Show Local'));
257
+ this.filePickBox.customLabel = ( localize(10157, '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(10146, 'The path does not exist.'));
551
+ this.filePickBox.validationMessage = ( localize(10158, '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(10147, 'Cancel'));
708
+ prompt.customLabel = ( localize(10159, '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(10148, 'Please enter a valid path.'));
738
+ this.filePickBox.validationMessage = ( localize(10160, '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(10149, 'The folder already exists. Please use a new file name.'));
751
+ this.filePickBox.validationMessage = ( localize(10161, '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
- 10150,
756
+ 10162,
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(10151, 'Please enter a valid file name.'));
763
+ this.filePickBox.validationMessage = ( localize(10163, '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
- 10152,
768
+ 10164,
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(10153, 'Please enter a path that exists.'));
775
+ this.filePickBox.validationMessage = ( localize(10165, '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
- 10154,
780
+ 10166,
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(10153, 'Please enter a path that exists.'));
788
+ this.filePickBox.validationMessage = ( localize(10165, '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(10155, 'Please start the path with a drive letter.'));
792
+ this.filePickBox.validationMessage = ( localize(10167, '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(10156, 'Please select a file.'));
796
+ this.filePickBox.validationMessage = ( localize(10168, '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(10157, 'Please select a folder.'));
800
+ this.filePickBox.validationMessage = ( localize(10169, 'Please select a folder.'));
801
801
  return Promise.resolve(false);
802
802
  }
803
803
  }