@codingame/monaco-vscode-files-service-override 1.82.6 → 1.83.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-files-service-override",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
16
|
-
"description": "VSCode public API plugged on the monaco editor - files service-override
|
|
16
|
+
"description": "VSCode public API plugged on the monaco editor - files service-override",
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.
|
|
22
|
-
"monaco-editor": "0.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.1",
|
|
22
|
+
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
2
|
import { Disposable, IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { ReadableStreamEvents } from 'vscode/vscode/vs/base/common/stream';
|
|
3
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { IFileSystemProviderWithFileReadWriteCapability, FileSystemProviderCapabilities, IStat, FileType, IFileWriteOptions, IFileOverwriteOptions, IFileDeleteOptions, IFileChange, IWatchOptions } from 'vscode/vscode/vs/platform/files/common/files';
|
|
5
|
+
import { IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithOpenReadWriteCloseCapability, IFileSystemProviderWithFileReadStreamCapability, IFileSystemProviderWithFileAtomicReadCapability, IFileSystemProviderWithFileAtomicWriteCapability, IFileSystemProviderWithFileAtomicDeleteCapability, FileSystemProviderCapabilities, IStat, FileType, IFileWriteOptions, IFileOpenOptions, IFileOverwriteOptions, IFileDeleteOptions, IFileChange, IWatchOptions } from 'vscode/vscode/vs/platform/files/common/files';
|
|
5
6
|
|
|
6
7
|
declare class File implements IStat {
|
|
7
|
-
type: FileType.File;
|
|
8
|
-
ctime: number;
|
|
8
|
+
readonly type: FileType.File;
|
|
9
|
+
readonly ctime: number;
|
|
9
10
|
mtime: number;
|
|
10
11
|
size: number;
|
|
11
12
|
name: string;
|
|
@@ -13,15 +14,17 @@ declare class File implements IStat {
|
|
|
13
14
|
constructor(name: string);
|
|
14
15
|
}
|
|
15
16
|
declare class Directory implements IStat {
|
|
16
|
-
type: FileType.Directory;
|
|
17
|
-
ctime: number;
|
|
17
|
+
readonly type: FileType.Directory;
|
|
18
|
+
readonly ctime: number;
|
|
18
19
|
mtime: number;
|
|
19
20
|
size: number;
|
|
20
21
|
name: string;
|
|
21
|
-
entries: Map<string, File | Directory>;
|
|
22
|
+
readonly entries: Map<string, File | Directory>;
|
|
22
23
|
constructor(name: string);
|
|
23
24
|
}
|
|
24
|
-
declare class InMemoryFileSystemProvider extends Disposable implements IFileSystemProviderWithFileReadWriteCapability {
|
|
25
|
+
declare class InMemoryFileSystemProvider extends Disposable implements IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithOpenReadWriteCloseCapability, IFileSystemProviderWithFileReadStreamCapability, IFileSystemProviderWithFileAtomicReadCapability, IFileSystemProviderWithFileAtomicWriteCapability, IFileSystemProviderWithFileAtomicDeleteCapability {
|
|
26
|
+
private memoryFdCounter;
|
|
27
|
+
private readonly fdMemory;
|
|
25
28
|
private _onDidChangeCapabilities;
|
|
26
29
|
readonly onDidChangeCapabilities: Event<void>;
|
|
27
30
|
private _capabilities;
|
|
@@ -31,7 +34,12 @@ declare class InMemoryFileSystemProvider extends Disposable implements IFileSyst
|
|
|
31
34
|
stat(resource: URI): Promise<IStat>;
|
|
32
35
|
readdir(resource: URI): Promise<[string, FileType][]>;
|
|
33
36
|
readFile(resource: URI): Promise<Uint8Array>;
|
|
37
|
+
readFileStream(resource: URI): ReadableStreamEvents<Uint8Array>;
|
|
34
38
|
writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
39
|
+
open(resource: URI, opts: IFileOpenOptions): Promise<number>;
|
|
40
|
+
close(fd: number): Promise<void>;
|
|
41
|
+
read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
42
|
+
write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
35
43
|
rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
36
44
|
delete(resource: URI, opts: IFileDeleteOptions): Promise<void>;
|
|
37
45
|
mkdir(resource: URI): Promise<void>;
|
|
@@ -45,6 +53,7 @@ declare class InMemoryFileSystemProvider extends Disposable implements IFileSyst
|
|
|
45
53
|
private _fireSoonHandle?;
|
|
46
54
|
watch(resource: URI, opts: IWatchOptions): IDisposable;
|
|
47
55
|
private _fireSoon;
|
|
56
|
+
dispose(): void;
|
|
48
57
|
}
|
|
49
58
|
|
|
50
59
|
export { InMemoryFileSystemProvider };
|