@codingame/monaco-vscode-files-service-override 13.1.3 → 13.1.5

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-files-service-override",
3
- "version": "13.1.3",
3
+ "version": "13.1.5",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - files service-override",
6
6
  "keywords": [],
@@ -15,14 +15,14 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "13.1.3",
19
- "@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "13.1.3",
20
- "@codingame/monaco-vscode-2e67e044-0db9-5fa6-8bd1-3737a7d586d4-common": "13.1.3",
21
- "@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "13.1.3",
22
- "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "13.1.3",
23
- "@codingame/monaco-vscode-api": "13.1.3",
24
- "@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common": "13.1.3",
25
- "@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.3"
18
+ "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "13.1.5",
19
+ "@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "13.1.5",
20
+ "@codingame/monaco-vscode-2e67e044-0db9-5fa6-8bd1-3737a7d586d4-common": "13.1.5",
21
+ "@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "13.1.5",
22
+ "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "13.1.5",
23
+ "@codingame/monaco-vscode-api": "13.1.5",
24
+ "@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common": "13.1.5",
25
+ "@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.5"
26
26
  },
27
27
  "main": "index.js",
28
28
  "module": "index.js",
@@ -14,7 +14,7 @@ import { mark } from '@codingame/monaco-vscode-api/vscode/vs/base/common/perform
14
14
  import { isAbsolutePath, extUri, extUriIgnorePathCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
15
15
  import { isReadableStream, peekStream, peekReadable, consumeStream, transform, newWriteableStream, isReadableBufferedStream, listenStream } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stream';
16
16
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
17
- import { FileType, toFileSystemProviderErrorCode, FileSystemProviderErrorCode, FileChangesEvent, FileOperationError, FileOperationResult, hasOpenReadWriteCloseCapability, hasReadWriteCapability, hasFileReadStreamCapability, ensureFileSystemProviderError, FilePermission, FileSystemProviderCapabilities, etag, FileOperationEvent, FileOperation, hasFileAtomicWriteCapability, toFileOperationResult, ETAG_DISABLED, hasFileAtomicReadCapability, NotModifiedSinceFileOperationError, TooLargeFileOperationError, hasFileFolderCopyCapability, hasFileAtomicDeleteCapability, hasFileCloneCapability } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
17
+ import { FileType, toFileSystemProviderErrorCode, FileSystemProviderErrorCode, FileChangesEvent, FileOperationError, FileOperationResult, hasOpenReadWriteCloseCapability, hasReadWriteCapability, hasFileReadStreamCapability, ensureFileSystemProviderError, etag, FilePermission, FileSystemProviderCapabilities, FileOperationEvent, FileOperation, hasFileAtomicWriteCapability, toFileOperationResult, ETAG_DISABLED, hasFileAtomicReadCapability, NotModifiedSinceFileOperationError, TooLargeFileOperationError, hasFileFolderCopyCapability, hasFileAtomicDeleteCapability, hasFileCloneCapability } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
18
18
  import { readFileIntoStream } from './io.js';
19
19
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
20
20
  import { ErrorNoTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
@@ -53,8 +53,8 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
53
53
  var AbstractTextFileService_1;
54
54
  let AbstractTextFileService = class AbstractTextFileService extends Disposable {
55
55
  static { AbstractTextFileService_1 = this; }
56
- static { this.TEXTFILE_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('textFileCreate.source', ( localize(11776, "File Created"))); }
57
- static { this.TEXTFILE_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('textFileOverwrite.source', ( localize(11777, "File Replaced"))); }
56
+ static { this.TEXTFILE_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('textFileCreate.source', ( localize(11774, "File Created"))); }
57
+ static { this.TEXTFILE_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('textFileOverwrite.source', ( localize(11775, "File Replaced"))); }
58
58
  constructor(fileService, untitledTextEditorService, lifecycleService, instantiationService, modelService, environmentService, dialogService, fileDialogService, textResourceConfigurationService, filesConfigurationService, codeEditorService, pathService, workingCopyFileService, uriIdentityService, languageService, logService, elevatedFileService, decorationsService) {
59
59
  super();
60
60
  this.fileService = fileService;
@@ -84,7 +84,7 @@ let AbstractTextFileService = class AbstractTextFileService extends Disposable {
84
84
  constructor(files) {
85
85
  super();
86
86
  this.files = files;
87
- this.label = ( localize(11778, "Text File Model Decorations"));
87
+ this.label = ( localize(11776, "Text File Model Decorations"));
88
88
  this._onDidChange = this._register(( new Emitter()));
89
89
  this.onDidChange = this._onDidChange.event;
90
90
  this.registerListeners();
@@ -111,20 +111,20 @@ let AbstractTextFileService = class AbstractTextFileService extends Disposable {
111
111
  color: listErrorForeground,
112
112
  letter: Codicon.lockSmall,
113
113
  strikethrough: true,
114
- tooltip: ( localize(11779, "Deleted, Read-only")),
114
+ tooltip: ( localize(11777, "Deleted, Read-only")),
115
115
  };
116
116
  }
117
117
  else if (isReadonly) {
118
118
  return {
119
119
  letter: Codicon.lockSmall,
120
- tooltip: ( localize(11780, "Read-only")),
120
+ tooltip: ( localize(11778, "Read-only")),
121
121
  };
122
122
  }
123
123
  else if (isOrphaned) {
124
124
  return {
125
125
  color: listErrorForeground,
126
126
  strikethrough: true,
127
- tooltip: ( localize(11781, "Deleted")),
127
+ tooltip: ( localize(11779, "Deleted")),
128
128
  };
129
129
  }
130
130
  return undefined;
@@ -177,7 +177,7 @@ let AbstractTextFileService = class AbstractTextFileService extends Disposable {
177
177
  catch (error) {
178
178
  cts.dispose(true);
179
179
  if (error.decodeStreamErrorKind === DecodeStreamErrorKind.STREAM_IS_BINARY) {
180
- throw ( new TextFileOperationError(( localize(11782, "File seems to be binary and cannot be opened as text")), TextFileOperationResult.FILE_IS_BINARY, options));
180
+ throw ( new TextFileOperationError(( localize(11780, "File seems to be binary and cannot be opened as text")), TextFileOperationResult.FILE_IS_BINARY, options));
181
181
  }
182
182
  else {
183
183
  throw error;
@@ -392,17 +392,17 @@ let AbstractTextFileService = class AbstractTextFileService extends Disposable {
392
392
  const { confirmed } = await this.dialogService.confirm({
393
393
  type: 'warning',
394
394
  message: ( localize(
395
- 11783,
395
+ 11781,
396
396
  "'{0}' already exists. Do you want to replace it?",
397
397
  basename(resource)
398
398
  )),
399
399
  detail: ( localize(
400
- 11784,
400
+ 11782,
401
401
  "A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
402
402
  basename(resource),
403
403
  basename(dirname(resource))
404
404
  )),
405
- primaryButton: ( localize(11785, "&&Replace")),
405
+ primaryButton: ( localize(11783, "&&Replace")),
406
406
  });
407
407
  return confirmed;
408
408
  }
@@ -410,12 +410,12 @@ let AbstractTextFileService = class AbstractTextFileService extends Disposable {
410
410
  const { confirmed } = await this.dialogService.confirm({
411
411
  type: 'warning',
412
412
  message: ( localize(
413
- 11786,
413
+ 11784,
414
414
  "'{0}' is marked as read-only. Do you want to save anyway?",
415
415
  basename(resource)
416
416
  )),
417
- detail: ( localize(11787, "Paths can be configured as read-only via settings.")),
418
- primaryButton: ( localize(11788, "&&Save Anyway"))
417
+ detail: ( localize(11785, "Paths can be configured as read-only via settings.")),
418
+ primaryButton: ( localize(11786, "&&Save Anyway"))
419
419
  });
420
420
  return confirmed;
421
421
  }
@@ -63,7 +63,7 @@ let TextFileEditorModelManager = class TextFileEditorModelManager extends Dispos
63
63
  return {
64
64
  onSaveError(error, model) {
65
65
  notificationService.error(( localize(
66
- 11792,
66
+ 11790,
67
67
  "Failed to save '{0}': {1}",
68
68
  model.name,
69
69
  toErrorMessage(error, false)
@@ -26,13 +26,13 @@ let TextFileSaveParticipant = class TextFileSaveParticipant extends Disposable {
26
26
  const cts = ( new CancellationTokenSource(token));
27
27
  model.textEditorModel?.pushStackElement();
28
28
  progress.report({
29
- message: ( localize(11793, "Running Code Actions and Formatters..."))
29
+ message: ( localize(11791, "Running Code Actions and Formatters..."))
30
30
  });
31
31
  let bubbleCancel = false;
32
32
  await this.progressService.withProgress({
33
33
  priority: NotificationPriority.URGENT,
34
34
  location: ProgressLocation.Notification,
35
- cancellable: ( localize(11794, "Skip")),
35
+ cancellable: ( localize(11792, "Skip")),
36
36
  delay: model.isDirty() ? 5000 : 3000
37
37
  }, async (progress) => {
38
38
  for (const saveParticipant of this.saveParticipants) {