@theia/plugin 1.31.0-next.32 → 1.31.0-next.33
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 +107 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.31.0-next.
|
|
3
|
+
"version": "1.31.0-next.33+16c88a584",
|
|
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": "16c88a584bac37f5cf3cc5eb92ffdaa541bda5be"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -9992,6 +9992,15 @@ export module '@theia/plugin' {
|
|
|
9992
9992
|
*/
|
|
9993
9993
|
export function registerCallHierarchyProvider(selector: DocumentSelector, provider: CallHierarchyProvider): Disposable;
|
|
9994
9994
|
|
|
9995
|
+
/**
|
|
9996
|
+
* Register a type hierarchy provider.
|
|
9997
|
+
*
|
|
9998
|
+
* @param selector A selector that defines the documents this provider is applicable to.
|
|
9999
|
+
* @param provider A type hierarchy provider.
|
|
10000
|
+
* @return A {@link Disposable} that unregisters this provider when being disposed.
|
|
10001
|
+
*/
|
|
10002
|
+
export function registerTypeHierarchyProvider(selector: DocumentSelector, provider: TypeHierarchyProvider): Disposable;
|
|
10003
|
+
|
|
9995
10004
|
/**
|
|
9996
10005
|
* Register a linked editing range provider.
|
|
9997
10006
|
*
|
|
@@ -12301,6 +12310,104 @@ export module '@theia/plugin' {
|
|
|
12301
12310
|
provideCallHierarchyOutgoingCalls(item: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyOutgoingCall[]>;
|
|
12302
12311
|
}
|
|
12303
12312
|
|
|
12313
|
+
/**
|
|
12314
|
+
* Represents an item of a type hierarchy, like a class or an interface.
|
|
12315
|
+
*/
|
|
12316
|
+
export class TypeHierarchyItem {
|
|
12317
|
+
/**
|
|
12318
|
+
* The name of this item.
|
|
12319
|
+
*/
|
|
12320
|
+
name: string;
|
|
12321
|
+
|
|
12322
|
+
/**
|
|
12323
|
+
* The kind of this item.
|
|
12324
|
+
*/
|
|
12325
|
+
kind: SymbolKind;
|
|
12326
|
+
|
|
12327
|
+
/**
|
|
12328
|
+
* Tags for this item.
|
|
12329
|
+
*/
|
|
12330
|
+
tags?: ReadonlyArray<SymbolTag>;
|
|
12331
|
+
|
|
12332
|
+
/**
|
|
12333
|
+
* More detail for this item, e.g. the signature of a function.
|
|
12334
|
+
*/
|
|
12335
|
+
detail?: string;
|
|
12336
|
+
|
|
12337
|
+
/**
|
|
12338
|
+
* The resource identifier of this item.
|
|
12339
|
+
*/
|
|
12340
|
+
uri: Uri;
|
|
12341
|
+
|
|
12342
|
+
/**
|
|
12343
|
+
* The range enclosing this symbol not including leading/trailing whitespace
|
|
12344
|
+
* but everything else, e.g. comments and code.
|
|
12345
|
+
*/
|
|
12346
|
+
range: Range;
|
|
12347
|
+
|
|
12348
|
+
/**
|
|
12349
|
+
* The range that should be selected and revealed when this symbol is being
|
|
12350
|
+
* picked, e.g. the name of a class. Must be contained by the {@link TypeHierarchyItem.range range}-property.
|
|
12351
|
+
*/
|
|
12352
|
+
selectionRange: Range;
|
|
12353
|
+
|
|
12354
|
+
/**
|
|
12355
|
+
* Creates a new type hierarchy item.
|
|
12356
|
+
*
|
|
12357
|
+
* @param kind The kind of the item.
|
|
12358
|
+
* @param name The name of the item.
|
|
12359
|
+
* @param detail The details of the item.
|
|
12360
|
+
* @param uri The Uri of the item.
|
|
12361
|
+
* @param range The whole range of the item.
|
|
12362
|
+
* @param selectionRange The selection range of the item.
|
|
12363
|
+
*/
|
|
12364
|
+
constructor(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range);
|
|
12365
|
+
}
|
|
12366
|
+
|
|
12367
|
+
/**
|
|
12368
|
+
* The type hierarchy provider interface describes the contract between extensions
|
|
12369
|
+
* and the type hierarchy feature.
|
|
12370
|
+
*/
|
|
12371
|
+
export interface TypeHierarchyProvider {
|
|
12372
|
+
|
|
12373
|
+
/**
|
|
12374
|
+
* Bootstraps type hierarchy by returning the item that is denoted by the given document
|
|
12375
|
+
* and position. This item will be used as entry into the type graph. Providers should
|
|
12376
|
+
* return `undefined` or `null` when there is no item at the given location.
|
|
12377
|
+
*
|
|
12378
|
+
* @param document The document in which the command was invoked.
|
|
12379
|
+
* @param position The position at which the command was invoked.
|
|
12380
|
+
* @param token A cancellation token.
|
|
12381
|
+
* @returns One or multiple type hierarchy items or a thenable that resolves to such. The lack of a result can be
|
|
12382
|
+
* signaled by returning `undefined`, `null`, or an empty array.
|
|
12383
|
+
*/
|
|
12384
|
+
prepareTypeHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<TypeHierarchyItem | TypeHierarchyItem[]>;
|
|
12385
|
+
|
|
12386
|
+
/**
|
|
12387
|
+
* Provide all supertypes for an item, e.g all types from which a type is derived/inherited. In graph terms this describes directed
|
|
12388
|
+
* and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes
|
|
12389
|
+
* that can be reached.
|
|
12390
|
+
*
|
|
12391
|
+
* @param item The hierarchy item for which super types should be computed.
|
|
12392
|
+
* @param token A cancellation token.
|
|
12393
|
+
* @returns A set of direct supertypes or a thenable that resolves to such. The lack of a result can be
|
|
12394
|
+
* signaled by returning `undefined` or `null`.
|
|
12395
|
+
*/
|
|
12396
|
+
provideTypeHierarchySupertypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
|
|
12397
|
+
|
|
12398
|
+
/**
|
|
12399
|
+
* Provide all subtypes for an item, e.g all types which are derived/inherited from the given item. In
|
|
12400
|
+
* graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting
|
|
12401
|
+
* node and the result is the nodes that can be reached.
|
|
12402
|
+
*
|
|
12403
|
+
* @param item The hierarchy item for which subtypes should be computed.
|
|
12404
|
+
* @param token A cancellation token.
|
|
12405
|
+
* @returns A set of direct subtypes or a thenable that resolves to such. The lack of a result can be
|
|
12406
|
+
* signaled by returning `undefined` or `null`.
|
|
12407
|
+
*/
|
|
12408
|
+
provideTypeHierarchySubtypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
|
|
12409
|
+
}
|
|
12410
|
+
|
|
12304
12411
|
/**
|
|
12305
12412
|
* Represents a list of ranges that can be edited together along with a word pattern to describe valid range contents.
|
|
12306
12413
|
*/
|