@theia/plugin 1.30.0-next.34 → 1.30.0-next.38

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/theia.d.ts +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.30.0-next.34+9ab87f0d4",
3
+ "version": "1.30.0-next.38+f11b6619e",
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": "9ab87f0d411abe364fbe5d05929f621cdd12d25c"
35
+ "gitHead": "f11b6619ed0302517dd969ea6bbcb2c229d15b79"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -1727,6 +1727,11 @@ export module '@theia/plugin' {
1727
1727
  */
1728
1728
  export interface FileWillCreateEvent {
1729
1729
 
1730
+ /**
1731
+ * A cancellation token.
1732
+ */
1733
+ readonly token: CancellationToken;
1734
+
1730
1735
  /**
1731
1736
  * The files that are going to be created.
1732
1737
  */
@@ -1782,6 +1787,11 @@ export module '@theia/plugin' {
1782
1787
  */
1783
1788
  export interface FileWillDeleteEvent {
1784
1789
 
1790
+ /**
1791
+ * A cancellation token.
1792
+ */
1793
+ readonly token: CancellationToken;
1794
+
1785
1795
  /**
1786
1796
  * The files that are going to be deleted.
1787
1797
  */
@@ -1837,6 +1847,11 @@ export module '@theia/plugin' {
1837
1847
  */
1838
1848
  export interface FileWillRenameEvent {
1839
1849
 
1850
+ /**
1851
+ * A cancellation token.
1852
+ */
1853
+ readonly token: CancellationToken;
1854
+
1840
1855
  /**
1841
1856
  * The files that are going to be renamed.
1842
1857
  */
@@ -8654,11 +8669,34 @@ export module '@theia/plugin' {
8654
8669
  intersects(other: CodeActionKind): boolean;
8655
8670
  }
8656
8671
 
8672
+ /**
8673
+ * The reason why code actions were requested.
8674
+ */
8675
+ export enum CodeActionTriggerKind {
8676
+ /**
8677
+ * Code actions were explicitly requested by the user or by an extension.
8678
+ */
8679
+ Invoke = 1,
8680
+
8681
+ /**
8682
+ * Code actions were requested automatically.
8683
+ *
8684
+ * This typically happens when current selection in a file changes, but can
8685
+ * also be triggered when file content changes.
8686
+ */
8687
+ Automatic = 2,
8688
+ }
8689
+
8657
8690
  /**
8658
8691
  * Contains additional diagnostic information about the context in which
8659
8692
  * a {@link CodeActionProvider.provideCodeActions code action} is run.
8660
8693
  */
8661
8694
  export interface CodeActionContext {
8695
+ /**
8696
+ * The reason why code actions were requested.
8697
+ */
8698
+ readonly triggerKind: CodeActionTriggerKind;
8699
+
8662
8700
  /**
8663
8701
  * An array of diagnostics.
8664
8702
  */