@codingame/monaco-vscode-files-service-override 12.0.1 → 13.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/index.d.ts +8 -8
- package/index.js +36 -30
- package/package.json +9 -21
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.d.ts +4 -4
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +10 -10
- package/vscode/src/vs/platform/files/common/fileService.d.ts +14 -14
- package/vscode/src/vs/platform/files/common/fileService.js +18 -18
- package/vscode/src/vs/platform/files/common/io.d.ts +5 -5
- package/vscode/src/vs/platform/files/common/io.js +4 -4
- package/vscode/src/vs/workbench/services/files/browser/elevatedFileService.d.ts +4 -4
- package/vscode/src/vs/workbench/services/files/browser/elevatedFileService.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.d.ts +18 -18
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +20 -20
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.d.ts +28 -28
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +60 -60
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.d.ts +11 -11
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +19 -19
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.d.ts +6 -6
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +13 -13
package/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
1
|
+
import { type IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
2
|
import { InMemoryFileSystemProvider } from "@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/platform/files/common/inMemoryFilesystemProvider";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
-
import { FileChangeType, FilePermission, FileSystemProviderCapabilities, FileType, type IFileSystemProvider, FileSystemProviderError, FileSystemProviderErrorCode, type IFileChange, type IFileDeleteOptions, type IFileOverwriteOptions, type IFileSystemProviderWithFileReadWriteCapability, type IFileWriteOptions, type IStat, type IWatchOptions, type IFileSystemProviderWithOpenReadWriteCloseCapability, type IFileSystemProviderWithFileReadStreamCapability, type IFileReadStreamOptions, type IFileSystemProviderWithFileAtomicReadCapability, type IFileSystemProviderWithFileAtomicWriteCapability, type IFileSystemProviderWithFileAtomicDeleteCapability } from "vscode/vscode/vs/platform/files/common/files";
|
|
5
|
-
import { type IDisposable, Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
6
|
-
import { Emitter, Event } from "vscode/vscode/vs/base/common/event";
|
|
7
|
-
import { HTMLFileSystemProvider } from "vscode/vscode/vs/platform/files/browser/htmlFileSystemProvider";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { FileChangeType, FilePermission, FileSystemProviderCapabilities, FileType, type IFileSystemProvider, FileSystemProviderError, FileSystemProviderErrorCode, type IFileChange, type IFileDeleteOptions, type IFileOverwriteOptions, type IFileSystemProviderWithFileReadWriteCapability, type IFileWriteOptions, type IStat, type IWatchOptions, type IFileSystemProviderWithOpenReadWriteCloseCapability, type IFileSystemProviderWithFileReadStreamCapability, type IFileReadStreamOptions, type IFileSystemProviderWithFileAtomicReadCapability, type IFileSystemProviderWithFileAtomicWriteCapability, type IFileSystemProviderWithFileAtomicDeleteCapability } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
5
|
+
import { type IDisposable, Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
6
|
+
import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
7
|
+
import { HTMLFileSystemProvider } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/htmlFileSystemProvider";
|
|
8
8
|
import { IndexedDBFileSystemProvider } from "./vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js";
|
|
9
9
|
import { IndexedDB } from "@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/base/browser/indexedDB";
|
|
10
|
-
import { type ReadableStreamEvents } from "vscode/vscode/vs/base/common/stream";
|
|
11
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
10
|
+
import { type ReadableStreamEvents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/stream";
|
|
11
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
12
12
|
interface _RegisteredNode {
|
|
13
13
|
type: FileType;
|
|
14
14
|
stats(): Promise<IStat>;
|
package/index.js
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
+
import { StandaloneServices } from '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
3
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
4
|
import { mkdirp, FileService } from './vscode/src/vs/platform/files/common/fileService.js';
|
|
6
|
-
import 'vscode/vscode/vs/platform/log/common/log';
|
|
7
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
6
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
8
7
|
import { InMemoryFileSystemProvider } from '@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/platform/files/common/inMemoryFilesystemProvider';
|
|
9
8
|
export { InMemoryFileSystemProvider } from '@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/platform/files/common/inMemoryFilesystemProvider';
|
|
10
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
11
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
12
|
-
import { FileType, FilePermission, createFileSystemProviderError, FileSystemProviderErrorCode, FileSystemProviderCapabilities, FileChangeType, FileSystemProviderError, hasFileReadStreamCapability } from 'vscode/vscode/vs/platform/files/common/files';
|
|
13
|
-
export { FileChangeType, FilePermission, FileSystemProviderCapabilities, FileSystemProviderError, FileSystemProviderErrorCode, FileType } from 'vscode/vscode/vs/platform/files/common/files';
|
|
14
|
-
import { Disposable, DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
15
|
-
import { extUri, basename, dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
16
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
17
|
-
import { HTMLFileSystemProvider } from 'vscode/vscode/vs/platform/files/browser/htmlFileSystemProvider';
|
|
18
|
-
export { HTMLFileSystemProvider } from 'vscode/vscode/vs/platform/files/browser/htmlFileSystemProvider';
|
|
19
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
9
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
11
|
+
import { FileType, FilePermission, createFileSystemProviderError, FileSystemProviderErrorCode, FileSystemProviderCapabilities, FileChangeType, FileSystemProviderError, hasFileReadStreamCapability } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
12
|
+
export { FileChangeType, FilePermission, FileSystemProviderCapabilities, FileSystemProviderError, FileSystemProviderErrorCode, FileType } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
13
|
+
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
14
|
+
import { extUri, basename, dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
15
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
16
|
+
import { HTMLFileSystemProvider } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/htmlFileSystemProvider';
|
|
17
|
+
export { HTMLFileSystemProvider } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/htmlFileSystemProvider';
|
|
18
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
20
19
|
import { IndexedDBFileSystemProvider } from './vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js';
|
|
21
20
|
import { IndexedDB } from '@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/base/browser/indexedDB';
|
|
22
21
|
export { IndexedDB } from '@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/base/browser/indexedDB';
|
|
23
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
22
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
24
23
|
import { BufferLogger } from '@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common/vscode/vs/platform/log/common/bufferLog';
|
|
25
|
-
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
24
|
+
import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
26
25
|
import { BrowserTextFileService } from './vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js';
|
|
27
26
|
import { FilesConfigurationService } from '@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
28
|
-
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
27
|
+
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
29
28
|
import { BrowserElevatedFileService } from './vscode/src/vs/workbench/services/files/browser/elevatedFileService.js';
|
|
30
|
-
import { IElevatedFileService } from 'vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
31
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
32
|
-
import { newWriteableStream, listenStream } from 'vscode/vscode/vs/base/common/stream';
|
|
33
|
-
import 'vscode/vscode/vs/base/common/cancellation';
|
|
34
|
-
import { registerServiceInitializePreParticipant, checkServicesNotInitialized } from 'vscode/lifecycle';
|
|
35
|
-
import { logsPath } from 'vscode/workbench';
|
|
29
|
+
import { IElevatedFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
30
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
31
|
+
import { newWriteableStream, listenStream } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stream';
|
|
32
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
33
|
+
import { registerServiceInitializePreParticipant, checkServicesNotInitialized } from '@codingame/monaco-vscode-api/lifecycle';
|
|
34
|
+
import { logsPath } from '@codingame/monaco-vscode-api/workbench';
|
|
36
35
|
import '@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
|
|
37
36
|
|
|
38
37
|
class RegisteredDirectory {
|
|
@@ -740,8 +739,8 @@ const providers = {
|
|
|
740
739
|
[Schemas.tmp]: new InMemoryFileSystemProvider(),
|
|
741
740
|
[Schemas.file]: overlayFileSystemProvider
|
|
742
741
|
};
|
|
743
|
-
|
|
744
|
-
constructor(logService
|
|
742
|
+
class FileServiceOverride extends FileService {
|
|
743
|
+
constructor(logService) {
|
|
745
744
|
super(logService);
|
|
746
745
|
for (const [scheme, provider] of Object.entries(providers)) {
|
|
747
746
|
let disposable = this.registerProvider(scheme, provider);
|
|
@@ -751,18 +750,25 @@ let FileServiceOverride = class FileServiceOverride extends FileService {
|
|
|
751
750
|
disposable = this.registerProvider(scheme, provider);
|
|
752
751
|
});
|
|
753
752
|
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
async initialize(telemetryService) {
|
|
756
|
+
for (const { scheme } of this.listCapabilities()) {
|
|
757
|
+
const provider = this.getProvider(scheme);
|
|
754
758
|
if (provider instanceof IndexedDBFileSystemProvider) {
|
|
755
759
|
this._register(provider.onReportError((e) => telemetryService.publicLog2('indexedDBFileSystemProviderError', e)));
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
762
|
}
|
|
759
|
-
}
|
|
760
|
-
FileServiceOverride =
|
|
761
|
-
__param(1, ITelemetryService)
|
|
762
|
-
], FileServiceOverride);
|
|
763
|
+
}
|
|
764
|
+
FileServiceOverride.$di$dependencies = [];
|
|
763
765
|
const fileLogger = new BufferLogger();
|
|
764
766
|
registerServiceInitializePreParticipant(async (accessor) => {
|
|
765
767
|
fileLogger.logger = accessor.get(ILogService);
|
|
768
|
+
const fileService = accessor.get(IFileService);
|
|
769
|
+
if (fileService instanceof FileServiceOverride) {
|
|
770
|
+
fileService.initialize(accessor.get(ITelemetryService));
|
|
771
|
+
}
|
|
766
772
|
});
|
|
767
773
|
function getServiceOverride() {
|
|
768
774
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-files-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - files service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,26 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "
|
|
19
|
-
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "
|
|
20
|
-
"@codingame/monaco-vscode-2e67e044-0db9-5fa6-8bd1-3737a7d586d4-common": "
|
|
21
|
-
"@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "
|
|
22
|
-
"@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"@codingame/monaco-vscode-base-service-override": "12.0.1",
|
|
29
|
-
"@codingame/monaco-vscode-view-common-service-override": "12.0.1"
|
|
30
|
-
},
|
|
31
|
-
"peerDependenciesMeta": {
|
|
32
|
-
"@codingame/monaco-vscode-base-service-override": {
|
|
33
|
-
"optional": true
|
|
34
|
-
},
|
|
35
|
-
"@codingame/monaco-vscode-view-common-service-override": {
|
|
36
|
-
"optional": true
|
|
37
|
-
}
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-2e67e044-0db9-5fa6-8bd1-3737a7d586d4-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.0"
|
|
38
26
|
},
|
|
39
27
|
"main": "index.js",
|
|
40
28
|
"module": "index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
-
import { IFileDeleteOptions, IFileOverwriteOptions, FileSystemProviderCapabilities, FileType, IFileWriteOptions, IFileChange, IFileSystemProviderWithFileReadWriteCapability, IStat, IWatchOptions } from "vscode/vscode/vs/platform/files/common/files";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { IFileDeleteOptions, IFileOverwriteOptions, FileSystemProviderCapabilities, FileType, IFileWriteOptions, IFileChange, IFileSystemProviderWithFileReadWriteCapability, IStat, IWatchOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
5
5
|
import { IndexedDB } from "@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/base/browser/indexedDB";
|
|
6
6
|
export type IndexedDBFileSystemProviderErrorDataClassification = {
|
|
7
7
|
owner: "sandy081";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { Throttler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
4
|
-
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { ExtUri } from 'vscode/vscode/vs/base/common/resources';
|
|
7
|
-
import { isString } from 'vscode/vscode/vs/base/common/types';
|
|
8
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
9
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
10
|
-
import { createFileSystemProviderError, FileSystemProviderErrorCode, FileType, FileSystemProviderCapabilities, FileChangeType, FileSystemProviderError } from 'vscode/vscode/vs/platform/files/common/files';
|
|
2
|
+
import { Throttler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
3
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
4
|
+
import { Event, Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { ExtUri } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
|
+
import { isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
8
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
9
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
|
+
import { createFileSystemProviderError, FileSystemProviderErrorCode, FileType, FileSystemProviderCapabilities, FileChangeType, FileSystemProviderError } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
11
11
|
import { DBClosedError } from '@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common/vscode/vs/base/browser/indexedDB';
|
|
12
|
-
import { BroadcastDataChannel } from '@codingame/monaco-vscode-
|
|
12
|
+
import { BroadcastDataChannel } from '@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common/vscode/vs/base/browser/broadcast';
|
|
13
13
|
|
|
14
14
|
const ERR_FILE_NOT_FOUND = createFileSystemProviderError(( localize(1741, "File does not exist")), FileSystemProviderErrorCode.FileNotFound);
|
|
15
15
|
const ERR_FILE_IS_DIR = createFileSystemProviderError(( localize(1742, "File is Directory")), FileSystemProviderErrorCode.FileIsADirectory);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "vscode/vscode/vs/base/common/buffer";
|
|
2
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
3
|
-
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
-
import { IExtUri } from "vscode/vscode/vs/base/common/resources";
|
|
5
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
6
|
-
import { FileChangesEvent, IFileDeleteOptions, FileOperationEvent, FileSystemProviderCapabilities, ICreateFileOptions, IFileContent, IFileStat, IFileStatWithMetadata, IFileStreamContent, IFileSystemProvider, IFileSystemProviderActivationEvent, IFileSystemProviderCapabilitiesChangeEvent, IFileSystemProviderRegistrationEvent, IReadFileOptions, IReadFileStreamOptions, IResolveFileOptions, IFileStatResult, IFileStatResultWithMetadata, IResolveMetadataFileOptions, IFileStatWithPartialMetadata, IWriteFileOptions, IWatchOptionsWithCorrelation, IFileSystemWatcher, IWatchOptionsWithoutCorrelation } from "vscode/vscode/vs/platform/files/common/files";
|
|
7
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
8
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
1
|
+
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { IExtUri } from "@codingame/monaco-vscode-api/vscode/vs/base/common/resources";
|
|
5
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
6
|
+
import { FileChangesEvent, IFileDeleteOptions, FileOperationEvent, FileSystemProviderCapabilities, ICreateFileOptions, IFileContent, IFileStat, IFileStatWithMetadata, IFileStreamContent, IFileSystemProvider, IFileSystemProviderActivationEvent, IFileSystemProviderCapabilitiesChangeEvent, IFileSystemProviderRegistrationEvent, IReadFileOptions, IReadFileStreamOptions, IResolveFileOptions, IFileStatResult, IFileStatResultWithMetadata, IResolveMetadataFileOptions, IFileStatWithPartialMetadata, IWriteFileOptions, IWatchOptionsWithCorrelation, IFileSystemWatcher, IWatchOptionsWithoutCorrelation } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
7
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
8
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
9
9
|
export declare function mkdirp(providerExtUri: IExtUri, provider: IFileSystemProvider, directory: URI): Promise<void>;
|
|
10
10
|
export declare class FileService extends Disposable implements IFileService {
|
|
11
11
|
private readonly logService;
|
|
@@ -13,11 +13,11 @@ export declare class FileService extends Disposable implements IFileService {
|
|
|
13
13
|
private readonly BUFFER_SIZE;
|
|
14
14
|
constructor(logService: ILogService);
|
|
15
15
|
private readonly _onDidChangeFileSystemProviderRegistrations;
|
|
16
|
-
readonly onDidChangeFileSystemProviderRegistrations: import("vscode/vscode/vs/base/common/event").Event<IFileSystemProviderRegistrationEvent>;
|
|
16
|
+
readonly onDidChangeFileSystemProviderRegistrations: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<IFileSystemProviderRegistrationEvent>;
|
|
17
17
|
private readonly _onWillActivateFileSystemProvider;
|
|
18
|
-
readonly onWillActivateFileSystemProvider: import("vscode/vscode/vs/base/common/event").Event<IFileSystemProviderActivationEvent>;
|
|
18
|
+
readonly onWillActivateFileSystemProvider: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<IFileSystemProviderActivationEvent>;
|
|
19
19
|
private readonly _onDidChangeFileSystemProviderCapabilities;
|
|
20
|
-
readonly onDidChangeFileSystemProviderCapabilities: import("vscode/vscode/vs/base/common/event").Event<IFileSystemProviderCapabilitiesChangeEvent>;
|
|
20
|
+
readonly onDidChangeFileSystemProviderCapabilities: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<IFileSystemProviderCapabilitiesChangeEvent>;
|
|
21
21
|
private readonly provider;
|
|
22
22
|
registerProvider(scheme: string, provider: IFileSystemProvider): IDisposable;
|
|
23
23
|
getProvider(scheme: string): IFileSystemProvider | undefined;
|
|
@@ -33,7 +33,7 @@ export declare class FileService extends Disposable implements IFileService {
|
|
|
33
33
|
private withReadProvider;
|
|
34
34
|
private withWriteProvider;
|
|
35
35
|
private readonly _onDidRunOperation;
|
|
36
|
-
readonly onDidRunOperation: import("vscode/vscode/vs/base/common/event").Event<FileOperationEvent>;
|
|
36
|
+
readonly onDidRunOperation: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<FileOperationEvent>;
|
|
37
37
|
resolve(resource: URI, options: IResolveMetadataFileOptions): Promise<IFileStatWithMetadata>;
|
|
38
38
|
resolve(resource: URI, options?: IResolveFileOptions): Promise<IFileStat>;
|
|
39
39
|
private doResolveFile;
|
|
@@ -83,9 +83,9 @@ export declare class FileService extends Disposable implements IFileService {
|
|
|
83
83
|
cloneFile(source: URI, target: URI): Promise<void>;
|
|
84
84
|
private readonly internalOnDidFilesChange;
|
|
85
85
|
private readonly _onDidUncorrelatedFilesChange;
|
|
86
|
-
readonly onDidFilesChange: import("vscode/vscode/vs/base/common/event").Event<FileChangesEvent>;
|
|
86
|
+
readonly onDidFilesChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<FileChangesEvent>;
|
|
87
87
|
private readonly _onDidWatchError;
|
|
88
|
-
readonly onDidWatchError: import("vscode/vscode/vs/base/common/event").Event<Error>;
|
|
88
|
+
readonly onDidWatchError: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<Error>;
|
|
89
89
|
private readonly activeWatchers;
|
|
90
90
|
private static WATCHER_CORRELATION_IDS;
|
|
91
91
|
createWatcher(resource: URI, options: IWatchOptionsWithoutCorrelation): IFileSystemWatcher;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
4
|
-
import { ResourceQueue, Promises } from 'vscode/vscode/vs/base/common/async';
|
|
5
|
-
import { VSBuffer, bufferToReadable, streamToBuffer, newWriteableBufferStream, bufferedStreamToBuffer, readableToBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
6
|
-
import { CancellationTokenSource, CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
7
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
8
|
-
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
9
|
-
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
10
|
-
import { Disposable, DisposableStore, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
|
-
import { TernarySearchTree } from 'vscode/vscode/vs/base/common/ternarySearchTree';
|
|
12
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
13
|
-
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
14
|
-
import { isAbsolutePath, extUri, extUriIgnorePathCase } from 'vscode/vscode/vs/base/common/resources';
|
|
15
|
-
import { isReadableStream, peekStream, peekReadable, consumeStream, transform, newWriteableStream, isReadableBufferedStream, listenStream } from 'vscode/vscode/vs/base/common/stream';
|
|
16
|
-
import { localize } from 'vscode/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 'vscode/vscode/vs/platform/files/common/files';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
4
|
+
import { ResourceQueue, Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
5
|
+
import { VSBuffer, bufferToReadable, streamToBuffer, newWriteableBufferStream, bufferedStreamToBuffer, readableToBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
6
|
+
import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
7
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
|
+
import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
|
|
9
|
+
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
10
|
+
import { Disposable, DisposableStore, toDisposable, dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
|
+
import { TernarySearchTree } from '@codingame/monaco-vscode-api/vscode/vs/base/common/ternarySearchTree';
|
|
12
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
13
|
+
import { mark } from '@codingame/monaco-vscode-api/vscode/vs/base/common/performance';
|
|
14
|
+
import { isAbsolutePath, extUri, extUriIgnorePathCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
15
|
+
import { isReadableStream, peekStream, peekReadable, consumeStream, transform, newWriteableStream, isReadableBufferedStream, listenStream } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stream';
|
|
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';
|
|
18
18
|
import { readFileIntoStream } from './io.js';
|
|
19
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
20
|
-
import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
|
|
19
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
20
|
+
import { ErrorNoTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
21
21
|
|
|
22
22
|
var FileService_1;
|
|
23
23
|
function resourceForError(resource) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VSBuffer } from "vscode/vscode/vs/base/common/buffer";
|
|
2
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
3
|
-
import { IDataTransformer, IErrorTransformer, WriteableStream } from "vscode/vscode/vs/base/common/stream";
|
|
4
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
5
|
-
import { IFileReadStreamOptions, IFileSystemProviderWithOpenReadWriteCloseCapability } from "vscode/vscode/vs/platform/files/common/files";
|
|
1
|
+
import { VSBuffer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { IDataTransformer, IErrorTransformer, WriteableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/stream";
|
|
4
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
|
+
import { IFileReadStreamOptions, IFileSystemProviderWithOpenReadWriteCloseCapability } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
6
6
|
export interface ICreateReadStreamOptions extends IFileReadStreamOptions {
|
|
7
7
|
readonly bufferSize: number;
|
|
8
8
|
readonly errorTransformer?: IErrorTransformer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
3
|
-
import { canceled } from 'vscode/vscode/vs/base/common/errors';
|
|
4
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
5
|
-
import { ensureFileSystemProviderError, createFileSystemProviderError, FileSystemProviderErrorCode } from 'vscode/vscode/vs/platform/files/common/files';
|
|
2
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
3
|
+
import { canceled } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
4
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { ensureFileSystemProviderError, createFileSystemProviderError, FileSystemProviderErrorCode } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
6
6
|
|
|
7
7
|
async function readFileIntoStream(provider, resource, target, transformer, options, token) {
|
|
8
8
|
let error = undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "vscode/vscode/vs/base/common/buffer";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import { IFileStatWithMetadata, IWriteFileOptions } from "vscode/vscode/vs/platform/files/common/files";
|
|
4
|
-
import { IElevatedFileService } from "vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
1
|
+
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { IFileStatWithMetadata, IWriteFileOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
4
|
+
import { IElevatedFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
5
5
|
export declare class BrowserElevatedFileService implements IElevatedFileService {
|
|
6
6
|
readonly _serviceBrand: undefined;
|
|
7
7
|
isSupported(resource: URI): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
3
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
3
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
4
|
|
|
5
5
|
class BrowserElevatedFileService {
|
|
6
6
|
isSupported(resource) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { AbstractTextFileService } from "./textFileService.js";
|
|
2
|
-
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
3
|
-
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
4
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
5
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
6
|
-
import { ITextResourceConfigurationService } from "vscode/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
7
|
-
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
8
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
9
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
10
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
12
|
-
import { IElevatedFileService } from "vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
13
|
-
import { IFilesConfigurationService } from "vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
14
|
-
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
15
|
-
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
16
|
-
import { IUntitledTextEditorService } from "vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
17
|
-
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
18
|
-
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
19
|
-
import { IDecorationsService } from "vscode/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
2
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
3
|
+
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService";
|
|
4
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
5
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
6
|
+
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
7
|
+
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
8
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
9
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
10
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
12
|
+
import { IElevatedFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
13
|
+
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
14
|
+
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
15
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
16
|
+
import { IUntitledTextEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
17
|
+
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
18
|
+
import { IWorkingCopyFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
19
|
+
import { IDecorationsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
20
20
|
export declare class BrowserTextFileService extends AbstractTextFileService {
|
|
21
21
|
constructor(fileService: IFileService, untitledTextEditorService: IUntitledTextEditorService, lifecycleService: ILifecycleService, instantiationService: IInstantiationService, modelService: IModelService, environmentService: IWorkbenchEnvironmentService, dialogService: IDialogService, fileDialogService: IFileDialogService, textResourceConfigurationService: ITextResourceConfigurationService, filesConfigurationService: IFilesConfigurationService, codeEditorService: ICodeEditorService, pathService: IPathService, workingCopyFileService: IWorkingCopyFileService, uriIdentityService: IUriIdentityService, languageService: ILanguageService, elevatedFileService: IElevatedFileService, logService: ILogService, decorationsService: IDecorationsService);
|
|
22
22
|
private registerListeners;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { AbstractTextFileService } from './textFileService.js';
|
|
4
|
-
import { TextFileEditorModelState } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
5
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
7
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
8
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
9
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
10
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
11
|
-
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
12
|
-
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
13
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
14
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
15
|
-
import { IElevatedFileService } from 'vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
16
|
-
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
17
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
18
|
-
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
19
|
-
import { IUntitledTextEditorService } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
20
|
-
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
21
|
-
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
22
|
-
import { IDecorationsService } from 'vscode/vscode/vs/workbench/services/decorations/common/decorations.service';
|
|
4
|
+
import { TextFileEditorModelState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
5
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
7
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
8
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
9
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
10
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
11
|
+
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
12
|
+
import { IDialogService, IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
13
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
14
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
15
|
+
import { IElevatedFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
16
|
+
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
17
|
+
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
18
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
19
|
+
import { IUntitledTextEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
20
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
21
|
+
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
22
|
+
import { IDecorationsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/decorations/common/decorations.service';
|
|
23
23
|
|
|
24
24
|
let BrowserTextFileService = class BrowserTextFileService extends AbstractTextFileService {
|
|
25
25
|
constructor(fileService, untitledTextEditorService, lifecycleService, instantiationService, modelService, environmentService, dialogService, fileDialogService, textResourceConfigurationService, filesConfigurationService, codeEditorService, pathService, workingCopyFileService, uriIdentityService, languageService, elevatedFileService, logService, decorationsService) {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
-
import { ITextFileStreamContent, ITextFileContent, IResourceEncodings, IReadTextFileOptions, IWriteTextFileOptions, ITextFileSaveOptions, ITextFileEditorModelManager, IResourceEncoding, ITextFileSaveAsOptions, IReadTextFileEncodingOptions } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
3
|
-
import { ITextFileService } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
4
|
-
import { IRevertOptions } from "vscode/vscode/vs/workbench/common/editor";
|
|
5
|
-
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
6
|
-
import { IFileStatWithMetadata, ICreateFileOptions } from "vscode/vscode/vs/platform/files/common/files";
|
|
7
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
8
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
9
|
-
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { ITextFileStreamContent, ITextFileContent, IResourceEncodings, IReadTextFileOptions, IWriteTextFileOptions, ITextFileSaveOptions, ITextFileEditorModelManager, IResourceEncoding, ITextFileSaveAsOptions, IReadTextFileEncodingOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
3
|
+
import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
4
|
+
import { IRevertOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
5
|
+
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
6
|
+
import { IFileStatWithMetadata, ICreateFileOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
7
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
8
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
9
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
10
10
|
import { IUntitledTextEditorModelManager } from "@codingame/monaco-vscode-view-common-service-override/vscode/vs/workbench/services/untitled/common/untitledTextEditorService";
|
|
11
|
-
import { IUntitledTextEditorService } from "vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
12
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
14
|
-
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
15
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
16
|
-
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "vscode/vscode/vs/base/common/buffer";
|
|
17
|
-
import { ITextSnapshot } from "vscode/vscode/vs/editor/common/model";
|
|
18
|
-
import { ITextResourceConfigurationService } from "vscode/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
19
|
-
import { IFilesConfigurationService } from "vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
20
|
-
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
21
|
-
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
11
|
+
import { IUntitledTextEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
12
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
14
|
+
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
15
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
16
|
+
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
17
|
+
import { ITextSnapshot } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
|
|
18
|
+
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
19
|
+
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
20
|
+
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService";
|
|
21
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
22
22
|
import { IFileOperationUndoRedoInfo } from "@codingame/monaco-vscode-base-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService";
|
|
23
|
-
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
24
|
-
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
25
|
-
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
26
|
-
import { ReadableStream } from "vscode/vscode/vs/base/common/stream";
|
|
27
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
28
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
29
|
-
import { IElevatedFileService } from "vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
30
|
-
import { IDecorationsService } from "vscode/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
23
|
+
import { IWorkingCopyFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
24
|
+
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
25
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
26
|
+
import { ReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/stream";
|
|
27
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
28
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
29
|
+
import { IElevatedFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service";
|
|
30
|
+
import { IDecorationsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
31
31
|
export declare abstract class AbstractTextFileService extends Disposable implements ITextFileService {
|
|
32
32
|
protected readonly fileService: IFileService;
|
|
33
33
|
private untitledTextEditorService;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { TextFileEditorModelState, TextFileOperationError, TextFileOperationResult, toBufferOrReadable, stringToSnapshot } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
5
|
-
import { SaveSourceRegistry } from 'vscode/vscode/vs/workbench/common/editor';
|
|
6
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
7
|
-
import { FileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
|
|
8
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
9
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
|
-
import { extname } from 'vscode/vscode/vs/base/common/path';
|
|
11
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
12
|
-
import { IUntitledTextEditorService } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { TextFileEditorModelState, TextFileOperationError, TextFileOperationResult, toBufferOrReadable, stringToSnapshot } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
5
|
+
import { SaveSourceRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
6
|
+
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
7
|
+
import { FileOperationResult } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
8
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
9
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import { extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
11
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
12
|
+
import { IUntitledTextEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
13
13
|
import { UntitledTextEditorModel } from '@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel';
|
|
14
14
|
import { TextFileEditorModelManager } from '../common/textFileEditorModelManager.js';
|
|
15
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
17
|
-
import { createTextBufferFactoryFromStream, createTextBufferFactoryFromSnapshot } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
18
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
19
|
-
import { isEqual, toLocalResource, basename, dirname, joinPath, extname as extname$1 } from 'vscode/vscode/vs/base/common/resources';
|
|
20
|
-
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
21
|
-
import { bufferToStream } from 'vscode/vscode/vs/base/common/buffer';
|
|
22
|
-
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
23
|
-
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
24
|
-
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
25
|
-
import { BaseTextEditorModel } from '@codingame/monaco-vscode-
|
|
26
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
27
|
-
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
28
|
-
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
29
|
-
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
30
|
-
import { WORKSPACE_EXTENSION } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
31
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
17
|
+
import { createTextBufferFactoryFromStream, createTextBufferFactoryFromSnapshot } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
|
|
18
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
19
|
+
import { isEqual, toLocalResource, basename, dirname, joinPath, extname as extname$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
20
|
+
import { IDialogService, IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
21
|
+
import { bufferToStream } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
22
|
+
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
23
|
+
import { PLAINTEXT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
24
|
+
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
25
|
+
import { BaseTextEditorModel } from '@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common/vscode/vs/workbench/common/editor/textEditorModel';
|
|
26
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
27
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
28
|
+
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
29
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
30
|
+
import { WORKSPACE_EXTENSION } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
31
|
+
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
32
32
|
import { UTF8, DecodeStreamErrorKind, toEncodeReadable, toDecodeStream, UTF16be, UTF16le, UTF8_with_bom, encodingExists } from '@codingame/monaco-vscode-2e67e044-0db9-5fa6-8bd1-3737a7d586d4-common/vscode/vs/workbench/services/textfile/common/encoding';
|
|
33
|
-
import { consumeStream } from 'vscode/vscode/vs/base/common/stream';
|
|
34
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
35
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
36
|
-
import { CancellationTokenSource, CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
37
|
-
import { IElevatedFileService } from 'vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
38
|
-
import { IDecorationsService } from 'vscode/vscode/vs/workbench/services/decorations/common/decorations.service';
|
|
39
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
40
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
41
|
-
import 'vscode/vscode/vs/platform/theme/common/colorUtils';
|
|
42
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
|
|
43
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
44
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/editorColors';
|
|
45
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/inputColors';
|
|
46
|
-
import { listErrorForeground } from 'vscode/vscode/vs/platform/theme/common/colors/listColors';
|
|
47
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/menuColors';
|
|
48
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
49
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
50
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
51
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
33
|
+
import { consumeStream } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stream';
|
|
34
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
35
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
36
|
+
import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
37
|
+
import { IElevatedFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/files/common/elevatedFileService.service';
|
|
38
|
+
import { IDecorationsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/decorations/common/decorations.service';
|
|
39
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
40
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
41
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
42
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
43
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
44
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
45
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
46
|
+
import { listErrorForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
47
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
48
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
49
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
50
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
51
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
52
52
|
|
|
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(
|
|
57
|
-
static { this.TEXTFILE_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('textFileOverwrite.source', ( localize(
|
|
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"))); }
|
|
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(
|
|
87
|
+
this.label = ( localize(11778, "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(
|
|
114
|
+
tooltip: ( localize(11779, "Deleted, Read-only")),
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
else if (isReadonly) {
|
|
118
118
|
return {
|
|
119
119
|
letter: Codicon.lockSmall,
|
|
120
|
-
tooltip: ( localize(
|
|
120
|
+
tooltip: ( localize(11780, "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(
|
|
127
|
+
tooltip: ( localize(11781, "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(
|
|
180
|
+
throw ( new TextFileOperationError(( localize(11782, "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
|
-
|
|
395
|
+
11783,
|
|
396
396
|
"'{0}' already exists. Do you want to replace it?",
|
|
397
397
|
basename(resource)
|
|
398
398
|
)),
|
|
399
399
|
detail: ( localize(
|
|
400
|
-
|
|
400
|
+
11784,
|
|
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(
|
|
405
|
+
primaryButton: ( localize(11785, "&&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
|
-
|
|
413
|
+
11786,
|
|
414
414
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
415
415
|
basename(resource)
|
|
416
416
|
)),
|
|
417
|
-
detail: ( localize(
|
|
418
|
-
primaryButton: ( localize(
|
|
417
|
+
detail: ( localize(11787, "Paths can be configured as read-only via settings.")),
|
|
418
|
+
primaryButton: ( localize(11788, "&&Save Anyway"))
|
|
419
419
|
});
|
|
420
420
|
return confirmed;
|
|
421
421
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
3
|
import { TextFileEditorModel } from "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common/vscode/vs/workbench/services/textfile/common/textFileEditorModel";
|
|
4
|
-
import { IDisposable, Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
5
|
-
import { ITextFileEditorModel, ITextFileEditorModelManager, ITextFileEditorModelResolveOrCreateOptions, ITextFileResolveEvent, ITextFileSaveEvent, ITextFileSaveParticipant } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
6
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
8
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
9
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
4
|
+
import { IDisposable, Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
|
+
import { ITextFileEditorModel, ITextFileEditorModelManager, ITextFileEditorModelResolveOrCreateOptions, ITextFileResolveEvent, ITextFileSaveEvent, ITextFileSaveParticipant } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
6
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
8
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
9
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
10
10
|
import { IStoredFileWorkingCopySaveParticipantContext } from "@codingame/monaco-vscode-base-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService";
|
|
11
|
-
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
12
|
-
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
13
|
-
import { IProgress, IProgressStep } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
11
|
+
import { IWorkingCopyFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
12
|
+
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
13
|
+
import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
14
14
|
export declare class TextFileEditorModelManager extends Disposable implements ITextFileEditorModelManager {
|
|
15
15
|
private readonly instantiationService;
|
|
16
16
|
private readonly fileService;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { toErrorMessage } from 'vscode/vscode/vs/base/common/errorMessage';
|
|
5
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
5
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
7
7
|
import { TextFileEditorModel } from '@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common/vscode/vs/workbench/services/textfile/common/textFileEditorModel';
|
|
8
|
-
import { Disposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
11
|
-
import { FileChangeType, FileOperation } from 'vscode/vscode/vs/platform/files/common/files';
|
|
12
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
13
|
-
import { ResourceQueue, Promises } from 'vscode/vscode/vs/base/common/async';
|
|
14
|
-
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
8
|
+
import { Disposable, DisposableStore, dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
11
|
+
import { FileChangeType, FileOperation } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
12
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
13
|
+
import { ResourceQueue, Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
14
|
+
import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
15
15
|
import { TextFileSaveParticipant } from './textFileSaveParticipant.js';
|
|
16
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
17
|
-
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
18
|
-
import { joinPath, extname } from 'vscode/vscode/vs/base/common/resources';
|
|
19
|
-
import { createTextBufferFactoryFromSnapshot } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
20
|
-
import { PLAINTEXT_LANGUAGE_ID, PLAINTEXT_EXTENSION } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
21
|
-
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
16
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
17
|
+
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
18
|
+
import { joinPath, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
19
|
+
import { createTextBufferFactoryFromSnapshot } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
|
|
20
|
+
import { PLAINTEXT_LANGUAGE_ID, PLAINTEXT_EXTENSION } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
21
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
22
22
|
|
|
23
23
|
let TextFileEditorModelManager = class TextFileEditorModelManager extends Disposable {
|
|
24
24
|
get models() {
|
|
@@ -63,7 +63,7 @@ let TextFileEditorModelManager = class TextFileEditorModelManager extends Dispos
|
|
|
63
63
|
return {
|
|
64
64
|
onSaveError(error, model) {
|
|
65
65
|
notificationService.error(( localize(
|
|
66
|
-
|
|
66
|
+
11792,
|
|
67
67
|
"Failed to save '{0}': {1}",
|
|
68
68
|
model.name,
|
|
69
69
|
toErrorMessage(error, false)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
3
|
-
import { IProgress, IProgressStep } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
4
|
-
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
5
|
-
import { ITextFileSaveParticipant, ITextFileEditorModel, ITextFileSaveParticipantContext } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
6
|
-
import { IDisposable, Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
3
|
+
import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
4
|
+
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
5
|
+
import { ITextFileSaveParticipant, ITextFileEditorModel, ITextFileSaveParticipantContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
6
|
+
import { IDisposable, Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
7
7
|
export declare class TextFileSaveParticipant extends Disposable {
|
|
8
8
|
private readonly logService;
|
|
9
9
|
private readonly progressService;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { raceCancellation } from 'vscode/vscode/vs/base/common/async';
|
|
4
|
-
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
5
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
6
|
-
import { ProgressLocation } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
7
|
-
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
8
|
-
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
-
import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
|
|
10
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
11
|
-
import { NotificationPriority } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
12
|
-
import { isCancellationError, CancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { raceCancellation } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
+
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
6
|
+
import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
7
|
+
import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
8
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { LinkedList } from '@codingame/monaco-vscode-api/vscode/vs/base/common/linkedList';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
+
import { NotificationPriority } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
12
|
+
import { isCancellationError, CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
13
13
|
|
|
14
14
|
let TextFileSaveParticipant = class TextFileSaveParticipant extends Disposable {
|
|
15
15
|
constructor(logService, progressService) {
|
|
@@ -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(
|
|
29
|
+
message: ( localize(11793, "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(
|
|
35
|
+
cancellable: ( localize(11794, "Skip")),
|
|
36
36
|
delay: model.isDirty() ? 5000 : 3000
|
|
37
37
|
}, async (progress) => {
|
|
38
38
|
for (const saveParticipant of this.saveParticipants) {
|