@theia/plugin 1.25.0-next.3 → 1.25.0-next.4
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 +2 -2
- package/src/theia.d.ts +3 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.25.0-next.
|
|
3
|
+
"version": "1.25.0-next.4+1c7bdf70025",
|
|
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": "
|
|
35
|
+
"gitHead": "1c7bdf70025c684e7ca22c482e206cceb405ddbd"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -7920,7 +7920,7 @@ export module '@theia/plugin' {
|
|
|
7920
7920
|
*
|
|
7921
7921
|
* A code action can be any command that is [known](#commands.getCommands) to the system.
|
|
7922
7922
|
*/
|
|
7923
|
-
export interface CodeActionProvider {
|
|
7923
|
+
export interface CodeActionProvider<T extends CodeAction = CodeAction> {
|
|
7924
7924
|
/**
|
|
7925
7925
|
* Provide commands for the given document and range.
|
|
7926
7926
|
*
|
|
@@ -7932,12 +7932,7 @@ export module '@theia/plugin' {
|
|
|
7932
7932
|
* @return An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
|
|
7933
7933
|
* signaled by returning `undefined`, `null`, or an empty array.
|
|
7934
7934
|
*/
|
|
7935
|
-
provideCodeActions(
|
|
7936
|
-
document: TextDocument,
|
|
7937
|
-
range: Range | Selection,
|
|
7938
|
-
context: CodeActionContext,
|
|
7939
|
-
token: CancellationToken | undefined
|
|
7940
|
-
): ProviderResult<(Command | CodeAction)[]>;
|
|
7935
|
+
provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken | undefined): ProviderResult<(Command | T)[]>;
|
|
7941
7936
|
|
|
7942
7937
|
/**
|
|
7943
7938
|
* Given a code action fill in its `edit`-property. Changes to
|
|
@@ -7953,7 +7948,7 @@ export module '@theia/plugin' {
|
|
|
7953
7948
|
* @return The resolved code action or a thenable that resolves to such. It is OK to return the given
|
|
7954
7949
|
* `item`. When no result is returned, the given `item` will be used.
|
|
7955
7950
|
*/
|
|
7956
|
-
resolveCodeAction?(codeAction:
|
|
7951
|
+
resolveCodeAction?(codeAction: T, token: CancellationToken | undefined): ProviderResult<T>;
|
|
7957
7952
|
}
|
|
7958
7953
|
|
|
7959
7954
|
/**
|