@theia/plugin 1.23.0-next.31 → 1.23.0-next.36

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 +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.23.0-next.31+1e809624e76",
3
+ "version": "1.23.0-next.36+1ef86ee8706",
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": "1e809624e76056e098d301fc9ff06add930959d4"
35
+ "gitHead": "1ef86ee8706f679d07c7a41e6e3d269bd55a10e3"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -7836,6 +7836,22 @@ export module '@theia/plugin' {
7836
7836
  context: CodeActionContext,
7837
7837
  token: CancellationToken | undefined
7838
7838
  ): ProviderResult<(Command | CodeAction)[]>;
7839
+
7840
+ /**
7841
+ * Given a code action fill in its `edit`-property. Changes to
7842
+ * all other properties, like title, are ignored. A code action that has an edit
7843
+ * will not be resolved.
7844
+ *
7845
+ * *Note* that a code action provider that returns commands, not code actions, cannot successfully
7846
+ * implement this function. Returning commands is deprecated and instead code actions should be
7847
+ * returned.
7848
+ *
7849
+ * @param codeAction A code action.
7850
+ * @param token A cancellation token.
7851
+ * @return The resolved code action or a thenable that resolves to such. It is OK to return the given
7852
+ * `item`. When no result is returned, the given `item` will be used.
7853
+ */
7854
+ resolveCodeAction?(codeAction: CodeAction, token: CancellationToken | undefined): ProviderResult<CodeAction>;
7839
7855
  }
7840
7856
 
7841
7857
  /**