@theia/filesystem 1.26.0-next.43 → 1.26.0-next.44

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.
Files changed (42) hide show
  1. package/lib/browser/file-tree/file-tree-widget.js +1 -1
  2. package/lib/browser/file-tree/file-tree-widget.js.map +1 -1
  3. package/lib/browser/file-tree/file-tree.d.ts +1 -2
  4. package/lib/browser/file-tree/file-tree.d.ts.map +1 -1
  5. package/lib/browser/file-tree/file-tree.js.map +1 -1
  6. package/lib/browser/filesystem-frontend-module.d.ts.map +1 -1
  7. package/lib/browser/filesystem-frontend-module.js +0 -165
  8. package/lib/browser/filesystem-frontend-module.js.map +1 -1
  9. package/lib/browser/index.d.ts +0 -1
  10. package/lib/browser/index.d.ts.map +1 -1
  11. package/lib/browser/index.js +0 -1
  12. package/lib/browser/index.js.map +1 -1
  13. package/lib/common/filesystem-watcher-protocol.d.ts +1 -22
  14. package/lib/common/filesystem-watcher-protocol.d.ts.map +1 -1
  15. package/lib/common/filesystem-watcher-protocol.js +1 -68
  16. package/lib/common/filesystem-watcher-protocol.js.map +1 -1
  17. package/lib/common/filesystem.d.ts +0 -226
  18. package/lib/common/filesystem.d.ts.map +1 -1
  19. package/lib/common/filesystem.js +1 -48
  20. package/lib/common/filesystem.js.map +1 -1
  21. package/package.json +3 -3
  22. package/src/browser/file-tree/file-tree-widget.tsx +1 -1
  23. package/src/browser/file-tree/file-tree.ts +1 -2
  24. package/src/browser/filesystem-frontend-module.ts +0 -162
  25. package/src/browser/index.ts +0 -1
  26. package/src/common/filesystem-watcher-protocol.ts +1 -67
  27. package/src/common/filesystem.ts +0 -259
  28. package/lib/browser/filesystem-watcher.d.ts +0 -134
  29. package/lib/browser/filesystem-watcher.d.ts.map +0 -1
  30. package/lib/browser/filesystem-watcher.js +0 -240
  31. package/lib/browser/filesystem-watcher.js.map +0 -1
  32. package/lib/node/node-file-upload.d.ts +0 -19
  33. package/lib/node/node-file-upload.d.ts.map +0 -1
  34. package/lib/node/node-file-upload.js +0 -55
  35. package/lib/node/node-file-upload.js.map +0 -1
  36. package/lib/node/nsfw-watcher/nsfw-filesystem-watcher.d.ts +0 -53
  37. package/lib/node/nsfw-watcher/nsfw-filesystem-watcher.d.ts.map +0 -1
  38. package/lib/node/nsfw-watcher/nsfw-filesystem-watcher.js +0 -197
  39. package/lib/node/nsfw-watcher/nsfw-filesystem-watcher.js.map +0 -1
  40. package/src/browser/filesystem-watcher.ts +0 -249
  41. package/src/node/node-file-upload.ts +0 -64
  42. package/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts +0 -255
@@ -14,179 +14,6 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- /* eslint-disable max-len */
18
-
19
- import { TextDocumentContentChangeEvent } from '@theia/core/shared/vscode-languageserver-protocol';
20
- import { ApplicationError } from '@theia/core/lib/common';
21
-
22
- /**
23
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService` instead
24
- */
25
- export const FileSystem = Symbol('FileSystem');
26
- export interface FileSystem {
27
-
28
- /**
29
- * Returns the file stat for the given URI.
30
- *
31
- * If the uri points to a folder it will contain one level of unresolved children.
32
- *
33
- * `undefined` if a file for the given URI does not exist.
34
- *
35
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.resolve` instead
36
- */
37
- getFileStat(uri: string): Promise<FileStat | undefined>;
38
-
39
- /**
40
- * Finds out if a file identified by the resource exists.
41
- *
42
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.exists` instead
43
- */
44
- exists(uri: string): Promise<boolean>;
45
-
46
- /**
47
- * Resolve the contents of a file identified by the resource.
48
- *
49
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.read` instead
50
- */
51
- resolveContent(uri: string, options?: { encoding?: string }): Promise<{ stat: FileStat, content: string }>;
52
-
53
- /**
54
- * Updates the content replacing its previous value.
55
- *
56
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.write` instead
57
- */
58
- setContent(file: FileStat, content: string, options?: { encoding?: string }): Promise<FileStat>;
59
-
60
- /**
61
- * Updates the content replacing its previous value.
62
- *
63
- * The optional parameter `overwriteEncoding` can be used to transform the encoding of a file.
64
- *
65
- * | | encoding | overwriteEncoding | behaviour |
66
- * |---|----------|-------------------|-----------|
67
- * | 1 | undefined | undefined | read & write file in default encoding |
68
- * | 2 | undefined | ✓ | read file in default encoding; write file in `overwriteEncoding` |
69
- * | 3 | ✓ | undefined | read & write file in `encoding` |
70
- * | 4 | ✓ | ✓ | read file in `encoding`; write file in `overwriteEncoding` |
71
- *
72
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.write` instead
73
- */
74
- updateContent(file: FileStat, contentChanges: TextDocumentContentChangeEvent[], options?: { encoding?: string, overwriteEncoding?: string }): Promise<FileStat>;
75
-
76
- /**
77
- * Moves the file to a new path identified by the resource.
78
- *
79
- * The optional parameter overwrite can be set to replace an existing file at the location.
80
- *
81
- * | | missing | file | empty dir | dir |
82
- * |-----------|---------|------|-----------|-----------|
83
- * | missing | x | x | x | x |
84
- * | file | ✓ | x | x | x |
85
- * | empty dir | ✓ | x | x | overwrite |
86
- * | dir | ✓ | x | overwrite | overwrite |
87
- *
88
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.move` instead
89
- */
90
- move(sourceUri: string, targetUri: string, options?: FileMoveOptions): Promise<FileStat>;
91
-
92
- /**
93
- * Copies the file to a path identified by the resource.
94
- *
95
- * The optional parameter overwrite can be set to replace an existing file at the location.
96
- *
97
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.copy` instead
98
- */
99
- copy(sourceUri: string, targetUri: string, options?: { overwrite?: boolean, recursive?: boolean }): Promise<FileStat>;
100
-
101
- /**
102
- * Creates a new file with the given path. The returned promise
103
- * will have the stat model object as a result.
104
- *
105
- * The optional parameter content can be used as value to fill into the new file.
106
- *
107
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.create` instead
108
- */
109
- createFile(uri: string, options?: { content?: string, encoding?: string }): Promise<FileStat>;
110
-
111
- /**
112
- * Creates a new folder with the given path. The returned promise
113
- * will have the stat model object as a result.
114
- *
115
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.createFolder` instead
116
- */
117
- createFolder(uri: string): Promise<FileStat>;
118
-
119
- /**
120
- * Creates a new empty file if the given path does not exist and otherwise
121
- * will set the mtime and atime of the file to the current date.
122
- */
123
- touchFile(uri: string): Promise<FileStat>;
124
-
125
- /**
126
- * Deletes the provided file. The optional moveToTrash parameter allows to
127
- * move the file to trash.
128
- *
129
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.delete` instead
130
- */
131
- delete(uri: string, options?: FileDeleteOptions): Promise<void>;
132
-
133
- /**
134
- * Returns the encoding of the given file resource.
135
- *
136
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908) use `FileService.read` without `autoGuessEncoding` option instead
137
- */
138
- getEncoding(uri: string): Promise<string>;
139
-
140
- /**
141
- * Guess encoding of a given file based on its content.
142
- *
143
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.read` with `autoGuessEncoding` option instead
144
- */
145
- guessEncoding(uri: string): Promise<string | undefined>;
146
-
147
- /**
148
- * Return list of available roots.
149
- */
150
- getRoots(): Promise<FileStat[]>;
151
-
152
- /**
153
- * Returns a promise that resolves to a file stat representing the current user's home directory.
154
- *
155
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `EnvVariablesServer.getHomeDirUri` instead
156
- */
157
- getCurrentUserHome(): Promise<FileStat | undefined>;
158
-
159
- /**
160
- * Resolves to an array of URIs pointing to the available drives on the filesystem.
161
- *
162
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `EnvVariablesServer.getDrives` instead
163
- */
164
- getDrives(): Promise<string[]>;
165
-
166
- /**
167
- * Tests a user's permissions for the file or directory specified by URI.
168
- * The mode argument is an optional integer that specifies the accessibility checks to be performed.
169
- * Check `FileAccess.Constants` for possible values of mode.
170
- * It is possible to create a mask consisting of the bitwise `OR` of two or more values (e.g. FileAccess.Constants.W_OK | FileAccess.Constants.R_OK).
171
- * If `mode` is not defined, `FileAccess.Constants.F_OK` will be used instead.
172
- *
173
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.access` instead
174
- */
175
- access(uri: string, mode?: number): Promise<boolean>
176
-
177
- /**
178
- * Returns the path of the given file URI, specific to the backend's operating system.
179
- * If the URI is not a file URI, undefined is returned.
180
- *
181
- * USE WITH CAUTION: You should always prefer URIs to paths if possible, as they are
182
- * portable and platform independent. Paths should only be used in cases you directly
183
- * interact with the OS, e.g. when running a command on the shell.
184
- *
185
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.fsPath` instead
186
- */
187
- getFsPath(uri: string): Promise<string | undefined>
188
- }
189
-
190
17
  export namespace FileAccess {
191
18
 
192
19
  export namespace Constants {
@@ -212,91 +39,5 @@ export namespace FileAccess {
212
39
  * This has no effect on Windows (will behave like `FileAccess.F_OK`).
213
40
  */
214
41
  export const X_OK: number = 1;
215
-
216
42
  }
217
-
218
- }
219
-
220
- export interface FileMoveOptions {
221
- overwrite?: boolean;
222
- }
223
-
224
- export interface FileDeleteOptions {
225
- moveToTrash?: boolean
226
- }
227
-
228
- /**
229
- * A file resource with meta information.
230
- *
231
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileStat` from `@theia/filesystem/lib/common/files` instead
232
- */
233
- export interface FileStat {
234
-
235
- /**
236
- * The URI of the file.
237
- */
238
- uri: string;
239
-
240
- /**
241
- * The last modification of this file.
242
- */
243
- lastModification: number;
244
-
245
- /**
246
- * `true` if the resource is a directory. Otherwise, `false`.
247
- */
248
- isDirectory: boolean;
249
-
250
- /**
251
- * The children of the file stat.
252
- * If it is `undefined` and `isDirectory` is `true`, then this file stat is unresolved.
253
- */
254
- children?: FileStat[];
255
-
256
- /**
257
- * The size of the file if known.
258
- */
259
- size?: number;
260
-
261
- }
262
-
263
- export namespace FileStat {
264
- export function is(candidate: Object | undefined): candidate is FileStat {
265
- return typeof candidate === 'object' && ('uri' in candidate) && ('lastModification' in candidate) && ('isDirectory' in candidate);
266
- }
267
-
268
- export function equals(one: object | undefined, other: object | undefined): boolean {
269
- if (!one || !other || !is(one) || !is(other)) {
270
- return false;
271
- }
272
- return one.uri === other.uri
273
- && one.lastModification === other.lastModification
274
- && one.isDirectory === other.isDirectory;
275
- }
276
- }
277
-
278
- /**
279
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileOperationError` instead
280
- */
281
- export namespace FileSystemError {
282
- export const FileNotFound = ApplicationError.declare(-33000, (uri: string, prefix?: string) => ({
283
- message: `${prefix ? prefix + ' ' : ''}'${uri}' has not been found.`,
284
- data: { uri }
285
- }));
286
- export const FileExists = ApplicationError.declare(-33001, (uri: string, prefix?: string) => ({
287
- message: `${prefix ? prefix + ' ' : ''}'${uri}' already exists.`,
288
- data: { uri }
289
- }));
290
- export const FileIsDirectory = ApplicationError.declare(-33002, (uri: string, prefix?: string) => ({
291
- message: `${prefix ? prefix + ' ' : ''}'${uri}' is a directory.`,
292
- data: { uri }
293
- }));
294
- export const FileNotDirectory = ApplicationError.declare(-33003, (uri: string, prefix?: string) => ({
295
- message: `${prefix ? prefix + ' ' : ''}'${uri}' is not a directory.`,
296
- data: { uri }
297
- }));
298
- export const FileIsOutOfSync = ApplicationError.declare(-33004, (file: FileStat, stat: FileStat) => ({
299
- message: `'${file.uri}' is out of sync.`,
300
- data: { file, stat }
301
- }));
302
43
  }
@@ -1,134 +0,0 @@
1
- import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
2
- import { Emitter, WaitUntilEvent } from '@theia/core/lib/common/event';
3
- import URI from '@theia/core/lib/common/uri';
4
- import { FileChangeType } from '../common/files';
5
- import { FileService } from './file-service';
6
- export { FileChangeType };
7
- export interface FileChange {
8
- uri: URI;
9
- type: FileChangeType;
10
- }
11
- export declare namespace FileChange {
12
- function isUpdated(change: FileChange, uri: URI): boolean;
13
- function isAdded(change: FileChange, uri: URI): boolean;
14
- function isDeleted(change: FileChange, uri: URI): boolean;
15
- function isAffected(change: FileChange, uri: URI): boolean;
16
- function isChanged(change: FileChange, uri: URI): boolean;
17
- }
18
- /**
19
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileChangesEvent` instead
20
- */
21
- export declare type FileChangeEvent = FileChange[];
22
- export declare namespace FileChangeEvent {
23
- function isUpdated(event: FileChangeEvent, uri: URI): boolean;
24
- function isAdded(event: FileChangeEvent, uri: URI): boolean;
25
- function isDeleted(event: FileChangeEvent, uri: URI): boolean;
26
- function isAffected(event: FileChangeEvent, uri: URI): boolean;
27
- function isChanged(event: FileChangeEvent, uri: URI): boolean;
28
- }
29
- /**
30
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `UserFileOperationEvent` instead
31
- */
32
- export interface FileMoveEvent extends WaitUntilEvent {
33
- sourceUri: URI;
34
- targetUri: URI;
35
- }
36
- export declare namespace FileMoveEvent {
37
- function isRename({ sourceUri, targetUri }: FileMoveEvent): boolean;
38
- }
39
- /**
40
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `UserFileOperationEvent` instead
41
- */
42
- export interface FileEvent extends WaitUntilEvent {
43
- uri: URI;
44
- }
45
- export declare class FileOperationEmitter<E extends WaitUntilEvent> implements Disposable {
46
- protected readonly onWillEmitter: Emitter<E>;
47
- readonly onWill: import("@theia/core/lib/common/event").Event<E>;
48
- protected readonly onDidFailEmitter: Emitter<E>;
49
- readonly onDidFail: import("@theia/core/lib/common/event").Event<E>;
50
- protected readonly onDidEmitter: Emitter<E>;
51
- readonly onDid: import("@theia/core/lib/common/event").Event<E>;
52
- protected readonly toDispose: DisposableCollection;
53
- dispose(): void;
54
- fireWill(event: Pick<E, Exclude<keyof E, 'waitUntil'>>): Promise<void>;
55
- fireDid(failed: boolean, event: Pick<E, Exclude<keyof E, 'waitUntil'>>): Promise<void>;
56
- }
57
- /**
58
- * React to file system events, including calls originating from the
59
- * application or event coming from the system's filesystem directly
60
- * (actual file watching).
61
- *
62
- * `on(will|did)(create|rename|delete)` events solely come from application
63
- * usage, not from actual filesystem.
64
- *
65
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.watch` instead
66
- */
67
- export declare class FileSystemWatcher implements Disposable {
68
- protected readonly toDispose: DisposableCollection;
69
- protected readonly toRestartAll: DisposableCollection;
70
- protected readonly onFileChangedEmitter: Emitter<FileChangeEvent>;
71
- /**
72
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFilesChange` instead
73
- */
74
- readonly onFilesChanged: import("@theia/core/lib/common/event").Event<FileChangeEvent>;
75
- protected readonly fileCreateEmitter: FileOperationEmitter<FileEvent>;
76
- /**
77
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
78
- */
79
- readonly onWillCreate: import("@theia/core/lib/common/event").Event<FileEvent>;
80
- /**
81
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
82
- */
83
- readonly onDidFailCreate: import("@theia/core/lib/common/event").Event<FileEvent>;
84
- /**
85
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
86
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
87
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
88
- */
89
- readonly onDidCreate: import("@theia/core/lib/common/event").Event<FileEvent>;
90
- protected readonly fileDeleteEmitter: FileOperationEmitter<FileEvent>;
91
- /**
92
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
93
- */
94
- readonly onWillDelete: import("@theia/core/lib/common/event").Event<FileEvent>;
95
- /**
96
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
97
- */
98
- readonly onDidFailDelete: import("@theia/core/lib/common/event").Event<FileEvent>;
99
- /**
100
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
101
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
102
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
103
- */
104
- readonly onDidDelete: import("@theia/core/lib/common/event").Event<FileEvent>;
105
- protected readonly fileMoveEmitter: FileOperationEmitter<FileMoveEvent>;
106
- /**
107
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
108
- */
109
- readonly onWillMove: import("@theia/core/lib/common/event").Event<FileMoveEvent>;
110
- /**
111
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
112
- */
113
- readonly onDidFailMove: import("@theia/core/lib/common/event").Event<FileMoveEvent>;
114
- /**
115
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
116
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
117
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
118
- */
119
- readonly onDidMove: import("@theia/core/lib/common/event").Event<FileMoveEvent>;
120
- protected readonly fileService: FileService;
121
- protected init(): void;
122
- /**
123
- * Stop watching.
124
- */
125
- dispose(): void;
126
- /**
127
- * Start file watching under the given uri.
128
- *
129
- * Resolve when watching is started.
130
- * Return a disposable to stop file watching under the given uri.
131
- */
132
- watchFileChanges(uri: URI): Promise<Disposable>;
133
- }
134
- //# sourceMappingURL=filesystem-watcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filesystem-watcher.d.ts","sourceRoot":"","sources":["../../src/browser/filesystem-watcher.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAiB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACH,cAAc,EACjB,CAAC;AAEF,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,cAAc,CAAC;CACxB;AACD,yBAAiB,UAAU,CAAC;IACxB,SAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAE/D;IACD,SAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAE7D;IACD,SAAgB,SAA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A+B;IAClD;;OAEG;IACH,QAAQ,CAAC,aAAa,8DAAkC;IACxD;;;;OAIG;IACH,QAAQ,CAAC,SAAS,8DAA8B;IAGhD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,IAAI,IAAI,IAAI;IAkCtB;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;;;;OAKG;IACG,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;CAIxD"}
@@ -1,240 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2017 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.FileSystemWatcher = exports.FileOperationEmitter = exports.FileMoveEvent = exports.FileChangeEvent = exports.FileChange = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const disposable_1 = require("@theia/core/lib/common/disposable");
30
- const event_1 = require("@theia/core/lib/common/event");
31
- const file_service_1 = require("./file-service");
32
- var FileChange;
33
- (function (FileChange) {
34
- function isUpdated(change, uri) {
35
- return change.type === 0 /* UPDATED */ && uri.toString() === change.uri.toString();
36
- }
37
- FileChange.isUpdated = isUpdated;
38
- function isAdded(change, uri) {
39
- return change.type === 1 /* ADDED */ && uri.toString() === change.uri.toString();
40
- }
41
- FileChange.isAdded = isAdded;
42
- function isDeleted(change, uri) {
43
- return change.type === 2 /* DELETED */ && change.uri.isEqualOrParent(uri);
44
- }
45
- FileChange.isDeleted = isDeleted;
46
- function isAffected(change, uri) {
47
- return isDeleted(change, uri) || uri.toString() === change.uri.toString();
48
- }
49
- FileChange.isAffected = isAffected;
50
- function isChanged(change, uri) {
51
- return !isDeleted(change, uri) && uri.toString() === change.uri.toString();
52
- }
53
- FileChange.isChanged = isChanged;
54
- })(FileChange = exports.FileChange || (exports.FileChange = {}));
55
- var FileChangeEvent;
56
- (function (FileChangeEvent) {
57
- function isUpdated(event, uri) {
58
- return event.some(change => FileChange.isUpdated(change, uri));
59
- }
60
- FileChangeEvent.isUpdated = isUpdated;
61
- function isAdded(event, uri) {
62
- return event.some(change => FileChange.isAdded(change, uri));
63
- }
64
- FileChangeEvent.isAdded = isAdded;
65
- function isDeleted(event, uri) {
66
- return event.some(change => FileChange.isDeleted(change, uri));
67
- }
68
- FileChangeEvent.isDeleted = isDeleted;
69
- function isAffected(event, uri) {
70
- return event.some(change => FileChange.isAffected(change, uri));
71
- }
72
- FileChangeEvent.isAffected = isAffected;
73
- function isChanged(event, uri) {
74
- return !isDeleted(event, uri) && event.some(change => FileChange.isChanged(change, uri));
75
- }
76
- FileChangeEvent.isChanged = isChanged;
77
- })(FileChangeEvent = exports.FileChangeEvent || (exports.FileChangeEvent = {}));
78
- var FileMoveEvent;
79
- (function (FileMoveEvent) {
80
- function isRename({ sourceUri, targetUri }) {
81
- return sourceUri.parent.toString() === targetUri.parent.toString();
82
- }
83
- FileMoveEvent.isRename = isRename;
84
- })(FileMoveEvent = exports.FileMoveEvent || (exports.FileMoveEvent = {}));
85
- class FileOperationEmitter {
86
- constructor() {
87
- this.onWillEmitter = new event_1.Emitter();
88
- this.onWill = this.onWillEmitter.event;
89
- this.onDidFailEmitter = new event_1.Emitter();
90
- this.onDidFail = this.onDidFailEmitter.event;
91
- this.onDidEmitter = new event_1.Emitter();
92
- this.onDid = this.onDidEmitter.event;
93
- this.toDispose = new disposable_1.DisposableCollection(this.onWillEmitter, this.onDidFailEmitter, this.onDidEmitter);
94
- }
95
- dispose() {
96
- this.toDispose.dispose();
97
- }
98
- async fireWill(event) {
99
- await event_1.WaitUntilEvent.fire(this.onWillEmitter, event);
100
- }
101
- async fireDid(failed, event) {
102
- const onDidEmitter = failed ? this.onDidFailEmitter : this.onDidEmitter;
103
- await event_1.WaitUntilEvent.fire(onDidEmitter, event);
104
- }
105
- }
106
- exports.FileOperationEmitter = FileOperationEmitter;
107
- /**
108
- * React to file system events, including calls originating from the
109
- * application or event coming from the system's filesystem directly
110
- * (actual file watching).
111
- *
112
- * `on(will|did)(create|rename|delete)` events solely come from application
113
- * usage, not from actual filesystem.
114
- *
115
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.watch` instead
116
- */
117
- let FileSystemWatcher = class FileSystemWatcher {
118
- constructor() {
119
- this.toDispose = new disposable_1.DisposableCollection();
120
- this.toRestartAll = new disposable_1.DisposableCollection();
121
- this.onFileChangedEmitter = new event_1.Emitter();
122
- /**
123
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFilesChange` instead
124
- */
125
- this.onFilesChanged = this.onFileChangedEmitter.event;
126
- this.fileCreateEmitter = new FileOperationEmitter();
127
- /**
128
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
129
- */
130
- this.onWillCreate = this.fileCreateEmitter.onWill;
131
- /**
132
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
133
- */
134
- this.onDidFailCreate = this.fileCreateEmitter.onDidFail;
135
- /**
136
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
137
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
138
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
139
- */
140
- this.onDidCreate = this.fileCreateEmitter.onDid;
141
- this.fileDeleteEmitter = new FileOperationEmitter();
142
- /**
143
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
144
- */
145
- this.onWillDelete = this.fileDeleteEmitter.onWill;
146
- /**
147
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
148
- */
149
- this.onDidFailDelete = this.fileDeleteEmitter.onDidFail;
150
- /**
151
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
152
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
153
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
154
- */
155
- this.onDidDelete = this.fileDeleteEmitter.onDid;
156
- this.fileMoveEmitter = new FileOperationEmitter();
157
- /**
158
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onWillRunUserOperation` instead
159
- */
160
- this.onWillMove = this.fileMoveEmitter.onWill;
161
- /**
162
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908), use `FileService.onDidFailUserOperation` instead
163
- */
164
- this.onDidFailMove = this.fileMoveEmitter.onDidFail;
165
- /**
166
- * @deprecated since 1.4.0 - in order to support VS Code FS API (https://github.com/eclipse-theia/theia/pull/7908),
167
- * instead use `FileService.onDidRunUserOperation` for events triggered by user gestures
168
- * or `FileService.onDidRunOperation` triggered by user gestures and programmatically
169
- */
170
- this.onDidMove = this.fileMoveEmitter.onDid;
171
- }
172
- init() {
173
- this.toDispose.push(this.onFileChangedEmitter);
174
- this.toDispose.push(this.fileDeleteEmitter);
175
- this.toDispose.push(this.fileMoveEmitter);
176
- this.toDispose.push(this.fileService.onWillRunUserOperation(event => {
177
- if (event.operation === 0 /* CREATE */) {
178
- this.fileCreateEmitter.fireWill({ uri: event.target });
179
- }
180
- else if (event.operation === 1 /* DELETE */) {
181
- this.fileDeleteEmitter.fireWill({ uri: event.target });
182
- }
183
- else if (event.operation === 2 /* MOVE */ && event.source) {
184
- this.fileMoveEmitter.fireWill({ sourceUri: event.source, targetUri: event.target });
185
- }
186
- }));
187
- this.toDispose.push(this.fileService.onDidFailUserOperation(event => {
188
- if (event.operation === 0 /* CREATE */) {
189
- this.fileCreateEmitter.fireDid(true, { uri: event.target });
190
- }
191
- else if (event.operation === 1 /* DELETE */) {
192
- this.fileDeleteEmitter.fireDid(true, { uri: event.target });
193
- }
194
- else if (event.operation === 2 /* MOVE */ && event.source) {
195
- this.fileMoveEmitter.fireDid(true, { sourceUri: event.source, targetUri: event.target });
196
- }
197
- }));
198
- this.toDispose.push(this.fileService.onDidRunUserOperation(event => {
199
- if (event.operation === 0 /* CREATE */) {
200
- this.fileCreateEmitter.fireDid(false, { uri: event.target });
201
- }
202
- else if (event.operation === 1 /* DELETE */) {
203
- this.fileDeleteEmitter.fireDid(false, { uri: event.target });
204
- }
205
- else if (event.operation === 2 /* MOVE */ && event.source) {
206
- this.fileMoveEmitter.fireDid(false, { sourceUri: event.source, targetUri: event.target });
207
- }
208
- }));
209
- }
210
- /**
211
- * Stop watching.
212
- */
213
- dispose() {
214
- this.toDispose.dispose();
215
- }
216
- /**
217
- * Start file watching under the given uri.
218
- *
219
- * Resolve when watching is started.
220
- * Return a disposable to stop file watching under the given uri.
221
- */
222
- async watchFileChanges(uri) {
223
- return this.fileService.watch(uri);
224
- }
225
- };
226
- __decorate([
227
- (0, inversify_1.inject)(file_service_1.FileService),
228
- __metadata("design:type", file_service_1.FileService)
229
- ], FileSystemWatcher.prototype, "fileService", void 0);
230
- __decorate([
231
- (0, inversify_1.postConstruct)(),
232
- __metadata("design:type", Function),
233
- __metadata("design:paramtypes", []),
234
- __metadata("design:returntype", void 0)
235
- ], FileSystemWatcher.prototype, "init", null);
236
- FileSystemWatcher = __decorate([
237
- (0, inversify_1.injectable)()
238
- ], FileSystemWatcher);
239
- exports.FileSystemWatcher = FileSystemWatcher;
240
- //# sourceMappingURL=filesystem-watcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filesystem-watcher.js","sourceRoot":"","sources":["../../src/browser/filesystem-watcher.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,4DAAiF;AACjF,kEAAqF;AACrF,wDAAuE;AAGvE,iDAA6C;AAU7C,IAAiB,UAAU,CAgB1B;AAhBD,WAAiB,UAAU;IACvB,SAAgB,SAAS,CAAC,MAAkB,EAAE,GAAQ;QAClD,OAAO,MAAM,CAAC,IAAI,oBAA2B,IAAI,GAAG,CAAC,QAAQ,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC9F,CAAC;IAFe,oBAAS,YAExB,CAAA;IACD,SAAgB,OAAO,CAAC,MAAkB,EAAE,GAAQ;QAChD,OAAO,MAAM,CAAC,IAAI,kBAAyB,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