@codingame/monaco-vscode-dialogs-service-override 11.1.0 → 11.1.1

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": "11.1.0",
3
+ "version": "11.1.1",
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@11.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@11.1.1"
30
30
  }
31
31
  }
@@ -57,7 +57,7 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
57
57
  async about() {
58
58
  const detailString = (useAgo) => {
59
59
  return ( localize(
60
- 5621,
60
+ 5651,
61
61
  "Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}",
62
62
  this.productService.version || 'Unknown',
63
63
  this.productService.commit || 'Unknown',
@@ -68,8 +68,8 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
68
68
  const detail = detailString(true);
69
69
  const detailToCopy = detailString(false);
70
70
  const { button } = await this.doShow(Severity$1.Info, this.productService.nameLong, [
71
- ( localize(5622, "&&Copy")),
72
- ( localize(5623, "OK"))
71
+ ( localize(5652, "&&Copy")),
72
+ ( localize(5653, "OK"))
73
73
  ], detail, 1);
74
74
  if (button === 0) {
75
75
  this.clipboardService.writeText(detailToCopy);
@@ -87,7 +87,7 @@ configurationRegistry.registerConfiguration({
87
87
  type: 'boolean',
88
88
  default: false,
89
89
  tags: ['experimental'],
90
- description: ( localize(2346, "When enabled, a welcome widget is shown in the editor"))
90
+ description: ( localize(1914, "When enabled, a welcome widget is shown in the editor"))
91
91
  }
92
92
  }
93
93
  });
@@ -70,7 +70,7 @@ class WelcomeWidget extends Disposable {
70
70
  }
71
71
  async buildWidgetContent(title, message, buttonText, buttonAction) {
72
72
  const actionBar = this._register(( (new ActionBar(this.element, {}))));
73
- const action = this._register(( (new Action('dialog.close', ( localize(5624, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
73
+ const action = this._register(( (new Action('dialog.close', ( localize(5654, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
74
74
  this._hide();
75
75
  }))));
76
76
  actionBar.push(action, { icon: true, label: false });
@@ -120,17 +120,17 @@ let AbstractFileDialogService = class AbstractFileDialogService {
120
120
  return 1 ;
121
121
  }
122
122
  let message;
123
- let detail = ( localize(5605, "Your changes will be lost if you don't save them."));
123
+ let detail = ( localize(5635, "Your changes will be lost if you don't save them."));
124
124
  if (fileNamesOrResources.length === 1) {
125
125
  message = ( localize(
126
- 5606,
126
+ 5636,
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
- 5607,
133
+ 5637,
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(5608, "&&Save All")) :
147
- ( localize(5609, "&&Save")),
146
+ ( localize(5638, "&&Save All")) :
147
+ ( localize(5639, "&&Save")),
148
148
  run: () => 0
149
149
  },
150
150
  {
151
- label: ( localize(5610, "Do&&n't Save")),
151
+ label: ( localize(5640, "Do&&n't Save")),
152
152
  run: () => 1
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(5611, 'Open File or Folder'));
165
+ const title = ( localize(5641, '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(5612, 'Open File'));
183
+ const title = ( localize(5642, '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(5613, 'Open Folder'));
200
+ const title = ( localize(5643, '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(5614, 'Open Workspace from File'));
209
- const filters = [{ name: ( localize(5615, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
208
+ const title = ( localize(5644, 'Open Workspace from File'));
209
+ const filters = [{ name: ( localize(5645, '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(5616, 'Save As'));
220
+ options.title = ( localize(5646, '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(5617, "Save As")),
271
+ title: ( localize(5647, "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(5618, "All Files")), extensions: ['*'] },
298
+ { name: ( localize(5648, "All Files")), extensions: ['*'] },
299
299
  matchingFilter,
300
300
  ...registeredLanguageFilters,
301
- { name: ( localize(5619, "No Extension")), extensions: [''] }
301
+ { name: ( localize(5649, "No Extension")), extensions: [''] }
302
302
  ]);
303
303
  return options;
304
304
  }
@@ -27,7 +27,7 @@ class FileDialogService extends AbstractFileDialogService {
27
27
  return super.pickFileFolderAndOpenSimplified(schema, options, false);
28
28
  }
29
29
  throw ( (new Error(
30
- localize(2339, "Can't open folders, try adding a folder to the workspace instead.")
30
+ localize(1907, "Can't open folders, try adding a folder to the workspace instead.")
31
31
  )));
32
32
  }
33
33
  addFileSchemaIfNeeded(schema, isFolder) {
@@ -69,7 +69,7 @@ class FileDialogService extends AbstractFileDialogService {
69
69
  return super.pickFolderAndOpenSimplified(schema, options);
70
70
  }
71
71
  throw ( (new Error(
72
- localize(2339, "Can't open folders, try adding a folder to the workspace instead.")
72
+ localize(1907, "Can't open folders, try adding a folder to the workspace instead.")
73
73
  )));
74
74
  }
75
75
  async pickWorkspaceAndOpen(options) {
@@ -82,7 +82,7 @@ class FileDialogService extends AbstractFileDialogService {
82
82
  return super.pickWorkspaceAndOpenSimplified(schema, options);
83
83
  }
84
84
  throw ( (new Error(localize(
85
- 2340,
85
+ 1908,
86
86
  "Can't open workspaces, try adding a folder to the workspace instead."
87
87
  ))));
88
88
  }
@@ -184,17 +184,17 @@ class FileDialogService extends AbstractFileDialogService {
184
184
  }
185
185
  const buttons = [
186
186
  {
187
- label: ( localize(2341, "&&Open Remote...")),
187
+ label: ( localize(1909, "&&Open Remote...")),
188
188
  run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
189
189
  },
190
190
  {
191
- label: ( localize(2342, "&&Learn More")),
191
+ label: ( localize(1910, "&&Learn More")),
192
192
  run: async () => { await this.openerService.open('https://aka.ms/VSCodeWebLocalFileSystemAccess'); }
193
193
  }
194
194
  ];
195
195
  if (context === 'open') {
196
196
  buttons.push({
197
- label: ( localize(2343, "Open &&Files...")),
197
+ label: ( localize(1911, "Open &&Files...")),
198
198
  run: async () => {
199
199
  const files = await triggerUpload();
200
200
  if (files) {
@@ -214,9 +214,9 @@ class FileDialogService extends AbstractFileDialogService {
214
214
  }
215
215
  await this.dialogService.prompt({
216
216
  type: Severity$1.Warning,
217
- message: ( localize(2344, "Opening Local Folders is Unsupported")),
217
+ message: ( localize(1912, "Opening Local Folders is Unsupported")),
218
218
  detail: ( localize(
219
- 2345,
219
+ 1913,
220
220
  "Your browser doesn't support opening local folders.\nYou can either open single files or open a remote repository."
221
221
  )),
222
222
  buttons
@@ -35,7 +35,7 @@ import { getActiveDocument } from 'vscode/vscode/vs/base/browser/dom';
35
35
  var OpenLocalFileCommand;
36
36
  ( ((function(OpenLocalFileCommand) {
37
37
  OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
38
- OpenLocalFileCommand.LABEL = ( localize(10306, "Open Local File..."));
38
+ OpenLocalFileCommand.LABEL = ( localize(10311, "Open Local File..."));
39
39
  function handler() {
40
40
  return accessor => {
41
41
  const dialogService = accessor.get(IFileDialogService);
@@ -47,7 +47,7 @@ var OpenLocalFileCommand;
47
47
  var SaveLocalFileCommand;
48
48
  ( ((function(SaveLocalFileCommand) {
49
49
  SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
50
- SaveLocalFileCommand.LABEL = ( localize(10307, "Save Local File..."));
50
+ SaveLocalFileCommand.LABEL = ( localize(10312, "Save Local File..."));
51
51
  function handler() {
52
52
  return accessor => {
53
53
  const editorService = accessor.get(IEditorService);
@@ -63,7 +63,7 @@ var SaveLocalFileCommand;
63
63
  var OpenLocalFolderCommand;
64
64
  ( ((function(OpenLocalFolderCommand) {
65
65
  OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
66
- OpenLocalFolderCommand.LABEL = ( localize(10308, "Open Local Folder..."));
66
+ OpenLocalFolderCommand.LABEL = ( localize(10313, "Open Local Folder..."));
67
67
  function handler() {
68
68
  return accessor => {
69
69
  const dialogService = accessor.get(IFileDialogService);
@@ -75,7 +75,7 @@ var OpenLocalFolderCommand;
75
75
  var OpenLocalFileFolderCommand;
76
76
  ( ((function(OpenLocalFileFolderCommand) {
77
77
  OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
78
- OpenLocalFileFolderCommand.LABEL = ( localize(10309, "Open Local..."));
78
+ OpenLocalFileFolderCommand.LABEL = ( localize(10314, "Open Local..."));
79
79
  function handler() {
80
80
  return accessor => {
81
81
  const dialogService = accessor.get(IFileDialogService);
@@ -177,7 +177,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
177
177
  }
178
178
  if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
179
179
  this.notificationService.info(( localize(
180
- 10310,
180
+ 10315,
181
181
  'File system provider for {0} is not available.',
182
182
  (defaultUri.toString())
183
183
  )));
@@ -251,7 +251,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
251
251
  this.filePickBox.ok = true;
252
252
  if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
253
253
  this.filePickBox.customButton = true;
254
- this.filePickBox.customLabel = ( localize(10311, 'Show Local'));
254
+ this.filePickBox.customLabel = ( localize(10316, 'Show Local'));
255
255
  let action;
256
256
  if (isSave) {
257
257
  action = SaveLocalFileCommand;
@@ -547,7 +547,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
547
547
  return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
548
548
  }
549
549
  else if (this.endsWithSlash(value)) {
550
- this.filePickBox.validationMessage = ( localize(10312, 'The path does not exist.'));
550
+ this.filePickBox.validationMessage = ( localize(10317, 'The path does not exist.'));
551
551
  this.badPath = value;
552
552
  return UpdateResult.InvalidPath;
553
553
  }
@@ -705,7 +705,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
705
705
  prompt.ignoreFocusOut = true;
706
706
  prompt.ok = true;
707
707
  prompt.customButton = true;
708
- prompt.customLabel = ( localize(10313, 'Cancel'));
708
+ prompt.customLabel = ( localize(10318, 'Cancel'));
709
709
  prompt.value = this.pathFromUri(uri);
710
710
  let isResolving = false;
711
711
  return (
@@ -735,7 +735,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
735
735
  }
736
736
  async validate(uri) {
737
737
  if (uri === undefined) {
738
- this.filePickBox.validationMessage = ( localize(10314, 'Please enter a valid path.'));
738
+ this.filePickBox.validationMessage = ( localize(10319, '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 extends Disposable {
748
748
  }
749
749
  if (this.requiresTrailing) {
750
750
  if (stat && stat.isDirectory) {
751
- this.filePickBox.validationMessage = ( localize(10315, 'The folder already exists. Please use a new file name.'));
751
+ this.filePickBox.validationMessage = ( localize(10320, '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
- 10316,
756
+ 10321,
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(10317, 'Please enter a valid file name.'));
763
+ this.filePickBox.validationMessage = ( localize(10322, '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
- 10318,
768
+ 10323,
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(10319, 'Please enter a path that exists.'));
775
+ this.filePickBox.validationMessage = ( localize(10324, '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
- 10320,
780
+ 10325,
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 extends Disposable {
785
785
  }
786
786
  else {
787
787
  if (!stat) {
788
- this.filePickBox.validationMessage = ( localize(10319, 'Please enter a path that exists.'));
788
+ this.filePickBox.validationMessage = ( localize(10324, '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(10321, 'Please start the path with a drive letter.'));
792
+ this.filePickBox.validationMessage = ( localize(10326, '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(10322, 'Please select a file.'));
796
+ this.filePickBox.validationMessage = ( localize(10327, '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(10323, 'Please select a folder.'));
800
+ this.filePickBox.validationMessage = ( localize(10328, 'Please select a folder.'));
801
801
  return Promise.resolve(false);
802
802
  }
803
803
  }