@theia/plugin 1.18.0 → 1.19.0
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 +3 -3
- package/src/theia.d.ts +80 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"watch": "theiaext watch"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@theia/ext-scripts": "1.
|
|
30
|
+
"@theia/ext-scripts": "1.19.0"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "cebb5417bb40e320178e3a4e66070af514f0525f"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -2395,6 +2395,13 @@ declare module '@theia/plugin' {
|
|
|
2395
2395
|
*/
|
|
2396
2396
|
export interface MessageOptions {
|
|
2397
2397
|
|
|
2398
|
+
/*
|
|
2399
|
+
* Human-readable detail message that is rendered
|
|
2400
|
+
* less prominent. Note that detail is only shown
|
|
2401
|
+
* for modal messages.
|
|
2402
|
+
*/
|
|
2403
|
+
detail?: string;
|
|
2404
|
+
|
|
2398
2405
|
/**
|
|
2399
2406
|
* Indicates that this message should be modal.
|
|
2400
2407
|
*/
|
|
@@ -7320,6 +7327,18 @@ declare module '@theia/plugin' {
|
|
|
7320
7327
|
constructor(uri: Uri, rangeOrPosition: Range | Position);
|
|
7321
7328
|
}
|
|
7322
7329
|
|
|
7330
|
+
/**
|
|
7331
|
+
* Represents the connection of two locations. Provides additional metadata over normal {@link Location locations},
|
|
7332
|
+
* including an origin range.
|
|
7333
|
+
*/
|
|
7334
|
+
export type LocationLink = DefinitionLink;
|
|
7335
|
+
|
|
7336
|
+
/**
|
|
7337
|
+
* The declaration of a symbol representation as one or many {@link Location locations}
|
|
7338
|
+
* or {@link LocationLink location links}.
|
|
7339
|
+
*/
|
|
7340
|
+
export type Declaration = Location | Location[] | LocationLink[];
|
|
7341
|
+
|
|
7323
7342
|
/**
|
|
7324
7343
|
* The event that is fired when diagnostics change.
|
|
7325
7344
|
*/
|
|
@@ -9178,6 +9197,13 @@ declare module '@theia/plugin' {
|
|
|
9178
9197
|
export function createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl;
|
|
9179
9198
|
}
|
|
9180
9199
|
|
|
9200
|
+
/**
|
|
9201
|
+
* A DebugProtocolMessage is an opaque stand-in type for the [ProtocolMessage](https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage) type defined in the Debug Adapter Protocol.
|
|
9202
|
+
*/
|
|
9203
|
+
export interface DebugProtocolMessage {
|
|
9204
|
+
// Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage).
|
|
9205
|
+
}
|
|
9206
|
+
|
|
9181
9207
|
/**
|
|
9182
9208
|
* Configuration for a debug session.
|
|
9183
9209
|
*/
|
|
@@ -9445,7 +9471,53 @@ declare module '@theia/plugin' {
|
|
|
9445
9471
|
constructor(port: number, host?: string);
|
|
9446
9472
|
}
|
|
9447
9473
|
|
|
9448
|
-
|
|
9474
|
+
/**
|
|
9475
|
+
* Represents a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
|
|
9476
|
+
*/
|
|
9477
|
+
export class DebugAdapterNamedPipeServer {
|
|
9478
|
+
/**
|
|
9479
|
+
* The path to the NamedPipe/UNIX Domain Socket.
|
|
9480
|
+
*/
|
|
9481
|
+
readonly path: string;
|
|
9482
|
+
|
|
9483
|
+
/**
|
|
9484
|
+
* Create a description for a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
|
|
9485
|
+
*/
|
|
9486
|
+
constructor(path: string);
|
|
9487
|
+
}
|
|
9488
|
+
|
|
9489
|
+
/**
|
|
9490
|
+
* A debug adapter that implements the Debug Adapter Protocol can be registered with the editor if it implements the DebugAdapter interface.
|
|
9491
|
+
*/
|
|
9492
|
+
export interface DebugAdapter extends Disposable {
|
|
9493
|
+
|
|
9494
|
+
/**
|
|
9495
|
+
* An event which fires after the debug adapter has sent a Debug Adapter Protocol message to the editor.
|
|
9496
|
+
* Messages can be requests, responses, or events.
|
|
9497
|
+
*/
|
|
9498
|
+
readonly onDidSendMessage: Event<DebugProtocolMessage>;
|
|
9499
|
+
|
|
9500
|
+
/**
|
|
9501
|
+
* Handle a Debug Adapter Protocol message.
|
|
9502
|
+
* Messages can be requests, responses, or events.
|
|
9503
|
+
* Results or errors are returned via onSendMessage events.
|
|
9504
|
+
* @param message A Debug Adapter Protocol message
|
|
9505
|
+
*/
|
|
9506
|
+
handleMessage(message: DebugProtocolMessage): void;
|
|
9507
|
+
}
|
|
9508
|
+
|
|
9509
|
+
/**
|
|
9510
|
+
* A debug adapter descriptor for an inline implementation.
|
|
9511
|
+
*/
|
|
9512
|
+
export class DebugAdapterInlineImplementation {
|
|
9513
|
+
|
|
9514
|
+
/**
|
|
9515
|
+
* Create a descriptor for an inline implementation of a debug adapter.
|
|
9516
|
+
*/
|
|
9517
|
+
constructor(implementation: DebugAdapter);
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer | DebugAdapterNamedPipeServer | DebugAdapterInlineImplementation;
|
|
9449
9521
|
|
|
9450
9522
|
export interface DebugAdapterDescriptorFactory {
|
|
9451
9523
|
/**
|
|
@@ -10735,6 +10807,12 @@ declare module '@theia/plugin' {
|
|
|
10735
10807
|
*/
|
|
10736
10808
|
tags?: readonly SymbolTag[];
|
|
10737
10809
|
|
|
10810
|
+
/**
|
|
10811
|
+
* A data entry field that is preserved between a call hierarchy prepare and
|
|
10812
|
+
* incoming calls or outgoing calls requests.
|
|
10813
|
+
*/
|
|
10814
|
+
data?: unknown;
|
|
10815
|
+
|
|
10738
10816
|
/**
|
|
10739
10817
|
* Creates a new call hierarchy item.
|
|
10740
10818
|
*/
|
|
@@ -10810,7 +10888,7 @@ declare module '@theia/plugin' {
|
|
|
10810
10888
|
* @returns A call hierarchy item or a thenable that resolves to such. The lack of a result can be
|
|
10811
10889
|
* signaled by returning `undefined` or `null`.
|
|
10812
10890
|
*/
|
|
10813
|
-
prepareCallHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<CallHierarchyItem>;
|
|
10891
|
+
prepareCallHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<CallHierarchyItem | CallHierarchyItem[]>;
|
|
10814
10892
|
|
|
10815
10893
|
/**
|
|
10816
10894
|
* Provide all incoming calls for an item, e.g all callers for a method. In graph terms this describes directed
|