@theia/plugin 1.55.0-next.25 → 1.55.0-next.37

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": "@theia/plugin",
3
- "version": "1.55.0-next.25+2be612f8a",
3
+ "version": "1.55.0-next.37+4e7843ca5",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "2be612f8a7efb90c1183ba47f0897040925b304a"
35
+ "gitHead": "4e7843ca5ce4625e3b4823b9a87debd805906fba"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -23,6 +23,7 @@
23
23
 
24
24
  import './theia-extra';
25
25
  import './theia.proposed.canonicalUriProvider';
26
+ import './theia.proposed.createFileSystemWatcher';
26
27
  import './theia.proposed.customEditorMove';
27
28
  import './theia.proposed.debugVisualization';
28
29
  import './theia.proposed.diffCommand';
@@ -0,0 +1,65 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 STMicroelectronics and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+ /*---------------------------------------------------------------------------------------------
17
+ * Copyright (c) Microsoft Corporation. All rights reserved.
18
+ * Licensed under the MIT License. See License.txt in the project root for license information.
19
+ *--------------------------------------------------------------------------------------------*/
20
+ // code copied and modified from https://github.com/microsoft/vscode/blob/release/1.93/src/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts
21
+
22
+ declare module '@theia/plugin' {
23
+
24
+ export interface FileSystemWatcherOptions {
25
+
26
+ /**
27
+ * Ignore when files have been created.
28
+ */
29
+ readonly ignoreCreateEvents?: boolean;
30
+
31
+ /**
32
+ * Ignore when files have been changed.
33
+ */
34
+ readonly ignoreChangeEvents?: boolean;
35
+
36
+ /**
37
+ * Ignore when files have been deleted.
38
+ */
39
+ readonly ignoreDeleteEvents?: boolean;
40
+
41
+ /**
42
+ * An optional set of glob patterns to exclude from watching.
43
+ * Glob patterns are always matched relative to the watched folder.
44
+ */
45
+ readonly excludes: string[];
46
+ }
47
+
48
+ export namespace workspace {
49
+
50
+ /**
51
+ * A variant of {@link workspace.createFileSystemWatcher} that optionally allows to specify
52
+ * a set of glob patterns to exclude from watching.
53
+ *
54
+ * It provides the following advantages over the other {@link workspace.createFileSystemWatcher}
55
+ * method:
56
+ * - the configured excludes from `files.watcherExclude` setting are NOT applied
57
+ * - requests for recursive file watchers inside the opened workspace are NOT ignored
58
+ * - the watcher is ONLY notified for events from this request and not from any other watcher
59
+ *
60
+ * As such, this method is prefered in cases where you want full control over the watcher behavior
61
+ * without being impacted by settings or other watchers that are installed.
62
+ */
63
+ export function createFileSystemWatcher(pattern: RelativePattern, options?: FileSystemWatcherOptions): FileSystemWatcher;
64
+ }
65
+ }