@theia/plugin 1.18.0 → 1.21.0-next.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.18.0",
3
+ "version": "1.21.0-next.12+c8248f736ed",
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.18.0"
30
+ "@theia/ext-scripts": "1.20.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "76318d01b7b3364cdf35ee456797699363f2634d"
35
+ "gitHead": "c8248f736edb4939155711987333ed39d9394b11"
36
36
  }
@@ -20,7 +20,7 @@
20
20
  * This is the place for API experiments and proposals.
21
21
  * These API are NOT stable and subject to change. Use it on own risk.
22
22
  */
23
- declare module '@theia/plugin' {
23
+ export module '@theia/plugin' {
24
24
  // #region auth provider
25
25
 
26
26
  /**
@@ -557,7 +557,7 @@ declare module '@theia/plugin' {
557
557
  * Handle when the underlying resource for a custom editor is renamed.
558
558
  *
559
559
  * This allows the webview for the editor be preserved throughout the rename. If this method is not implemented,
560
- * Theia will destory the previous custom editor and create a replacement one.
560
+ * Theia will destroy the previous custom editor and create a replacement one.
561
561
  *
562
562
  * @param newDocument New text document to use for the custom editor.
563
563
  * @param existingWebviewPanel Webview panel for the custom editor.
package/src/theia.d.ts CHANGED
@@ -25,7 +25,7 @@ import './theia-proposed';
25
25
  /* eslint-disable @typescript-eslint/no-explicit-any */
26
26
  /* eslint-disable max-len */
27
27
 
28
- declare module '@theia/plugin' {
28
+ export module '@theia/plugin' {
29
29
 
30
30
  /**
31
31
  * The version of the Theia API.
@@ -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
- export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer;
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
@@ -10969,4 +11047,3 @@ declare module '@theia/plugin' {
10969
11047
  export const onDidChangeSessions: Event<AuthenticationSessionsChangeEvent>;
10970
11048
  }
10971
11049
  }
10972
-