@theia/plugin 1.25.0-next.3 → 1.25.0-next.6

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 +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.25.0-next.3+3893fdec2fc",
3
+ "version": "1.25.0-next.6+a9c970d587e",
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": "3893fdec2fc07766da986e12b62457a897b3b64e"
35
+ "gitHead": "a9c970d587ec8e1d7047d0e0fbc8a55c6c51de3c"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2191,6 +2191,11 @@ export module '@theia/plugin' {
2191
2191
  */
2192
2192
  matchOnDetail: boolean;
2193
2193
 
2194
+ /*
2195
+ * An optional flag to maintain the scroll position of the quick pick when the quick pick items are updated. Defaults to false.
2196
+ */
2197
+ keepScrollPosition?: boolean;
2198
+
2194
2199
  /**
2195
2200
  * Active items. This can be read and updated by the extension.
2196
2201
  */
@@ -7920,7 +7925,7 @@ export module '@theia/plugin' {
7920
7925
  *
7921
7926
  * A code action can be any command that is [known](#commands.getCommands) to the system.
7922
7927
  */
7923
- export interface CodeActionProvider {
7928
+ export interface CodeActionProvider<T extends CodeAction = CodeAction> {
7924
7929
  /**
7925
7930
  * Provide commands for the given document and range.
7926
7931
  *
@@ -7932,12 +7937,7 @@ export module '@theia/plugin' {
7932
7937
  * @return An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
7933
7938
  * signaled by returning `undefined`, `null`, or an empty array.
7934
7939
  */
7935
- provideCodeActions(
7936
- document: TextDocument,
7937
- range: Range | Selection,
7938
- context: CodeActionContext,
7939
- token: CancellationToken | undefined
7940
- ): ProviderResult<(Command | CodeAction)[]>;
7940
+ provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken | undefined): ProviderResult<(Command | T)[]>;
7941
7941
 
7942
7942
  /**
7943
7943
  * Given a code action fill in its `edit`-property. Changes to
@@ -7953,7 +7953,7 @@ export module '@theia/plugin' {
7953
7953
  * @return The resolved code action or a thenable that resolves to such. It is OK to return the given
7954
7954
  * `item`. When no result is returned, the given `item` will be used.
7955
7955
  */
7956
- resolveCodeAction?(codeAction: CodeAction, token: CancellationToken | undefined): ProviderResult<CodeAction>;
7956
+ resolveCodeAction?(codeAction: T, token: CancellationToken | undefined): ProviderResult<T>;
7957
7957
  }
7958
7958
 
7959
7959
  /**