@theia/plugin 1.30.0-next.23 → 1.30.0-next.25
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 +29 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.30.0-next.
|
|
3
|
+
"version": "1.30.0-next.25+5447e4aff",
|
|
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": "5447e4aff0aa1602fba524017fdb01010c20ff6c"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -227,7 +227,12 @@ export module '@theia/plugin' {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Represents a line and character position
|
|
230
|
+
* Represents a line and character position, such as
|
|
231
|
+
* the position of the cursor.
|
|
232
|
+
*
|
|
233
|
+
* Position objects are __immutable__. Use the {@link Position.with with} or
|
|
234
|
+
* {@link Position.translate translate} methods to derive new positions
|
|
235
|
+
* from an existing position.
|
|
231
236
|
*/
|
|
232
237
|
export class Position {
|
|
233
238
|
|
|
@@ -241,6 +246,10 @@ export module '@theia/plugin' {
|
|
|
241
246
|
*/
|
|
242
247
|
readonly character: number;
|
|
243
248
|
|
|
249
|
+
/**
|
|
250
|
+
* @param line A zero-based line value.
|
|
251
|
+
* @param character A zero-based character value.
|
|
252
|
+
*/
|
|
244
253
|
constructor(line: number, character: number);
|
|
245
254
|
|
|
246
255
|
/**
|
|
@@ -410,15 +419,21 @@ export module '@theia/plugin' {
|
|
|
410
419
|
/**
|
|
411
420
|
* Derived a new range from this range.
|
|
412
421
|
*
|
|
413
|
-
* @param start
|
|
414
|
-
* @param end
|
|
422
|
+
* @param start A position that should be used as start. The default value is the {@link Range.start current start}.
|
|
423
|
+
* @param end A position that should be used as end. The default value is the {@link Range.end current end}.
|
|
424
|
+
* @return A range derived from this range with the given start and end position.
|
|
425
|
+
* If start and end are not different `this` range will be returned.
|
|
415
426
|
*/
|
|
416
427
|
with(start?: Position, end?: Position): Range;
|
|
417
428
|
|
|
418
429
|
/**
|
|
419
430
|
* Derived a new range from this range.
|
|
431
|
+
*
|
|
432
|
+
* @param change An object that describes a change to this range.
|
|
433
|
+
* @return A range that reflects the given change. Will return `this` range if the change
|
|
434
|
+
* is not changing anything.
|
|
420
435
|
*/
|
|
421
|
-
with(change: { start?: Position
|
|
436
|
+
with(change: { start?: Position; end?: Position }): Range;
|
|
422
437
|
}
|
|
423
438
|
|
|
424
439
|
/**
|
|
@@ -4376,7 +4391,7 @@ export module '@theia/plugin' {
|
|
|
4376
4391
|
*
|
|
4377
4392
|
* Note that hiding a view using the context menu instead disposes of the view and fires `onDidDispose`.
|
|
4378
4393
|
*/
|
|
4379
|
-
readonly onDidChangeVisibility: Event<
|
|
4394
|
+
readonly onDidChangeVisibility: Event<void>;
|
|
4380
4395
|
|
|
4381
4396
|
/**
|
|
4382
4397
|
* Reveal the view in the UI.
|
|
@@ -4614,7 +4629,7 @@ export module '@theia/plugin' {
|
|
|
4614
4629
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4615
4630
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4616
4631
|
*/
|
|
4617
|
-
export function showInformationMessage(message: string, ...items:
|
|
4632
|
+
export function showInformationMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
4618
4633
|
|
|
4619
4634
|
/**
|
|
4620
4635
|
* Show an information message.
|
|
@@ -4624,7 +4639,7 @@ export module '@theia/plugin' {
|
|
|
4624
4639
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4625
4640
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4626
4641
|
*/
|
|
4627
|
-
export function showInformationMessage(message: string, options: MessageOptions, ...items:
|
|
4642
|
+
export function showInformationMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
4628
4643
|
|
|
4629
4644
|
/**
|
|
4630
4645
|
* Show an information message.
|
|
@@ -4652,7 +4667,7 @@ export module '@theia/plugin' {
|
|
|
4652
4667
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4653
4668
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4654
4669
|
*/
|
|
4655
|
-
export function showWarningMessage(message: string, ...items:
|
|
4670
|
+
export function showWarningMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
4656
4671
|
|
|
4657
4672
|
/**
|
|
4658
4673
|
* Show a warning message.
|
|
@@ -4662,7 +4677,7 @@ export module '@theia/plugin' {
|
|
|
4662
4677
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4663
4678
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4664
4679
|
*/
|
|
4665
|
-
export function showWarningMessage(message: string, options: MessageOptions, ...items:
|
|
4680
|
+
export function showWarningMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
4666
4681
|
|
|
4667
4682
|
/**
|
|
4668
4683
|
* Show a warning message.
|
|
@@ -4690,7 +4705,7 @@ export module '@theia/plugin' {
|
|
|
4690
4705
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4691
4706
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4692
4707
|
*/
|
|
4693
|
-
export function showErrorMessage(message: string, ...items:
|
|
4708
|
+
export function showErrorMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>;
|
|
4694
4709
|
|
|
4695
4710
|
/**
|
|
4696
4711
|
* Show an error message.
|
|
@@ -4700,7 +4715,7 @@ export module '@theia/plugin' {
|
|
|
4700
4715
|
* @param items A set of items that will be rendered as actions in the message.
|
|
4701
4716
|
* @return A promise that resolves to the selected item or `undefined` when being dismissed.
|
|
4702
4717
|
*/
|
|
4703
|
-
export function showErrorMessage(message: string, options: MessageOptions, ...items:
|
|
4718
|
+
export function showErrorMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>;
|
|
4704
4719
|
|
|
4705
4720
|
/**
|
|
4706
4721
|
* Show an error message.
|
|
@@ -5441,7 +5456,7 @@ export module '@theia/plugin' {
|
|
|
5441
5456
|
* This will trigger the view to update the changed element/root and its children recursively (if shown).
|
|
5442
5457
|
* To signal that root has changed, do not pass any argument or pass `undefined` or `null`.
|
|
5443
5458
|
*/
|
|
5444
|
-
onDidChangeTreeData?: Event<T | undefined | null>;
|
|
5459
|
+
onDidChangeTreeData?: Event<T | T[] | undefined | null | void>;
|
|
5445
5460
|
|
|
5446
5461
|
/**
|
|
5447
5462
|
* Get {@link TreeItem TreeItem} representation of the `element`
|
|
@@ -8363,7 +8378,7 @@ export module '@theia/plugin' {
|
|
|
8363
8378
|
* @return An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
|
|
8364
8379
|
* signaled by returning `undefined`, `null`, or an empty array.
|
|
8365
8380
|
*/
|
|
8366
|
-
provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken
|
|
8381
|
+
provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken): ProviderResult<(Command | T)[]>;
|
|
8367
8382
|
|
|
8368
8383
|
/**
|
|
8369
8384
|
* Given a code action fill in its `edit`-property. Changes to
|
|
@@ -8379,7 +8394,7 @@ export module '@theia/plugin' {
|
|
|
8379
8394
|
* @return The resolved code action or a thenable that resolves to such. It is OK to return the given
|
|
8380
8395
|
* `item`. When no result is returned, the given `item` will be used.
|
|
8381
8396
|
*/
|
|
8382
|
-
resolveCodeAction?(codeAction: T, token: CancellationToken
|
|
8397
|
+
resolveCodeAction?(codeAction: T, token: CancellationToken): ProviderResult<T>;
|
|
8383
8398
|
}
|
|
8384
8399
|
|
|
8385
8400
|
/**
|