@codingame/monaco-vscode-dialogs-service-override 10.1.0 → 10.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": "10.1.0",
3
+ "version": "10.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@10.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.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
- 5611,
60
+ 5587,
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(5612, "&&Copy")),
72
- ( localize(5613, "OK"))
71
+ ( localize(5588, "&&Copy")),
72
+ ( localize(5589, "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(2352, "When enabled, a welcome widget is shown in the editor"))
90
+ description: ( localize(2349, "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(5614, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
73
+ const action = this._register(( (new Action('dialog.close', ( localize(5590, "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(5595, "Your changes will be lost if you don't save them."));
123
+ let detail = ( localize(5571, "Your changes will be lost if you don't save them."));
124
124
  if (fileNamesOrResources.length === 1) {
125
125
  message = ( localize(
126
- 5596,
126
+ 5572,
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
- 5597,
133
+ 5573,
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(5598, "&&Save All")) :
147
- ( localize(5599, "&&Save")),
146
+ ( localize(5574, "&&Save All")) :
147
+ ( localize(5575, "&&Save")),
148
148
  run: () => 0
149
149
  },
150
150
  {
151
- label: ( localize(5600, "Do&&n't Save")),
151
+ label: ( localize(5576, "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(5601, 'Open File or Folder'));
165
+ const title = ( localize(5577, '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(5602, 'Open File'));
183
+ const title = ( localize(5578, '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(5603, 'Open Folder'));
200
+ const title = ( localize(5579, '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(5604, 'Open Workspace from File'));
209
- const filters = [{ name: ( localize(5605, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
208
+ const title = ( localize(5580, 'Open Workspace from File'));
209
+ const filters = [{ name: ( localize(5581, '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(5606, 'Save As'));
220
+ options.title = ( localize(5582, '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(5607, "Save As")),
271
+ title: ( localize(5583, "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(5608, "All Files")), extensions: ['*'] },
298
+ { name: ( localize(5584, "All Files")), extensions: ['*'] },
299
299
  matchingFilter,
300
300
  ...registeredLanguageFilters,
301
- { name: ( localize(5609, "No Extension")), extensions: [''] }
301
+ { name: ( localize(5585, "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(2345, "Can't open folders, try adding a folder to the workspace instead.")
30
+ localize(2342, "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(2345, "Can't open folders, try adding a folder to the workspace instead.")
72
+ localize(2342, "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
- 2346,
85
+ 2343,
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(2347, "&&Open Remote...")),
187
+ label: ( localize(2344, "&&Open Remote...")),
188
188
  run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
189
189
  },
190
190
  {
191
- label: ( localize(2348, "&&Learn More")),
191
+ label: ( localize(2345, "&&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(2349, "Open &&Files...")),
197
+ label: ( localize(2346, "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(2350, "Opening Local Folders is Unsupported")),
217
+ message: ( localize(2347, "Opening Local Folders is Unsupported")),
218
218
  detail: ( localize(
219
- 2351,
219
+ 2348,
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