@theia/plugin 1.30.0-next.36 → 1.30.0-next.39

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 +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.30.0-next.36+cd2f08124",
3
+ "version": "1.30.0-next.39+0f6c9d132",
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": "cd2f0812424d91561be7cc53aa303488113ed59d"
35
+ "gitHead": "0f6c9d1329031e4d320e31ae9bdbcb8fc95237c0"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -8669,11 +8669,34 @@ export module '@theia/plugin' {
8669
8669
  intersects(other: CodeActionKind): boolean;
8670
8670
  }
8671
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
+
8672
8690
  /**
8673
8691
  * Contains additional diagnostic information about the context in which
8674
8692
  * a {@link CodeActionProvider.provideCodeActions code action} is run.
8675
8693
  */
8676
8694
  export interface CodeActionContext {
8695
+ /**
8696
+ * The reason why code actions were requested.
8697
+ */
8698
+ readonly triggerKind: CodeActionTriggerKind;
8699
+
8677
8700
  /**
8678
8701
  * An array of diagnostics.
8679
8702
  */