@theia/plugin 1.28.0-next.7 → 1.28.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/theia.d.ts +93 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.28.0-next.7+3b689e0b4f3",
3
+ "version": "1.28.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.27.0"
30
+ "@theia/ext-scripts": "1.28.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "3b689e0b4f37844f674b26fc9b2c4d735b0115fd"
35
+ "gitHead": "79d58c87a7bd76f435000a2ac59803b04e1c78be"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -617,7 +617,7 @@ export module '@theia/plugin' {
617
617
  * Provides additional metadata over normal [location](#Location) definitions, including the range of
618
618
  * the defining symbol
619
619
  */
620
- export interface DefinitionLink {
620
+ export interface LocationLink {
621
621
  /**
622
622
  * Span of the symbol being defined in the source file.
623
623
  *
@@ -2300,6 +2300,11 @@ export module '@theia/plugin' {
2300
2300
  * Options for configuration behavior of the quick pick
2301
2301
  */
2302
2302
  export interface QuickPickOptions {
2303
+ /**
2304
+ * An optional string that represents the title of the quick pick.
2305
+ */
2306
+ title?: string;
2307
+
2303
2308
  /**
2304
2309
  * A flag to include the description when filtering
2305
2310
  */
@@ -6528,6 +6533,14 @@ export module '@theia/plugin' {
6528
6533
  */
6529
6534
  export const appRoot: string;
6530
6535
 
6536
+ /**
6537
+ * The hosted location of the application
6538
+ * On desktop this is 'desktop'
6539
+ * In the web this is the specified embedder i.e. 'github.dev', 'codespaces', or 'web' if the embedder
6540
+ * does not provide that information
6541
+ */
6542
+ export const appHost: string;
6543
+
6531
6544
  /**
6532
6545
  * The custom uri scheme the editor registers to in the operating system.
6533
6546
  */
@@ -6538,6 +6551,35 @@ export module '@theia/plugin' {
6538
6551
  */
6539
6552
  export const language: string;
6540
6553
 
6554
+ /**
6555
+ * Indicates that this is a fresh install of the application.
6556
+ * `true` if within the first day of installation otherwise `false`.
6557
+ */
6558
+ export const isNewAppInstall: boolean;
6559
+
6560
+ /**
6561
+ * Indicates whether the users has telemetry enabled.
6562
+ * Can be observed to determine if the extension should send telemetry.
6563
+ */
6564
+ export const isTelemetryEnabled: boolean;
6565
+
6566
+ /**
6567
+ * An {@link Event} which fires when the user enabled or disables telemetry.
6568
+ * `true` if the user has enabled telemetry or `false` if the user has disabled telemetry.
6569
+ */
6570
+ export const onDidChangeTelemetryEnabled: Event<boolean>;
6571
+
6572
+ /**
6573
+ * The name of a remote. Defined by extensions, popular samples are `wsl` for the Windows
6574
+ * Subsystem for Linux or `ssh-remote` for remotes using a secure shell.
6575
+ *
6576
+ * *Note* that the value is `undefined` when there is no remote extension host but that the
6577
+ * value is defined in all extension hosts (local and remote) in case a remote extension host
6578
+ * exists. Use {@link Extension.extensionKind} to know if
6579
+ * a specific extension runs remote or not.
6580
+ */
6581
+ export const remoteName: string | undefined;
6582
+
6541
6583
  /**
6542
6584
  * The detected default shell for the extension host.
6543
6585
  */
@@ -6889,6 +6931,13 @@ export module '@theia/plugin' {
6889
6931
  */
6890
6932
  parameters: ParameterInformation[];
6891
6933
 
6934
+ /**
6935
+ * The index of the active parameter.
6936
+ *
6937
+ * If provided, this is used in place of SignatureHelp.activeParameter.
6938
+ */
6939
+ activeParameter?: number;
6940
+
6892
6941
  /**
6893
6942
  * Creates a new signature information object.
6894
6943
  *
@@ -7840,10 +7889,12 @@ export module '@theia/plugin' {
7840
7889
  }
7841
7890
 
7842
7891
  /**
7843
- * Represents the connection of two locations. Provides additional metadata over normal {@link Location locations},
7844
- * including an origin range.
7892
+ * Information about where a symbol is defined.
7893
+ *
7894
+ * Provides additional metadata over normal {@link Location} definitions, including the range of
7895
+ * the defining symbol
7845
7896
  */
7846
- export type LocationLink = DefinitionLink;
7897
+ export type DefinitionLink = LocationLink;
7847
7898
 
7848
7899
  /**
7849
7900
  * The declaration of a symbol representation as one or many {@link Location locations}
@@ -9609,6 +9660,11 @@ export module '@theia/plugin' {
9609
9660
  * A string to show as place holder in the input box to guide the user.
9610
9661
  */
9611
9662
  placeholder: string;
9663
+
9664
+ /**
9665
+ * Controls whether the input box is visible (default is true).
9666
+ */
9667
+ visible: boolean;
9612
9668
  }
9613
9669
 
9614
9670
  interface QuickDiffProvider {
@@ -9851,6 +9907,20 @@ export module '@theia/plugin' {
9851
9907
  // Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage).
9852
9908
  }
9853
9909
 
9910
+ /**
9911
+ * A DebugProtocolBreakpoint is an opaque stand-in type for the [Breakpoint](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Breakpoint) type defined in the Debug Adapter Protocol.
9912
+ */
9913
+ export interface DebugProtocolBreakpoint {
9914
+ // Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Breakpoint)
9915
+ }
9916
+
9917
+ /**
9918
+ * A DebugProtocolSource is an opaque stand-in type for the [Source](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Source) type defined in the Debug Adapter Protocol.
9919
+ */
9920
+ export interface DebugProtocolSource {
9921
+ // Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Source)
9922
+ }
9923
+
9854
9924
  /**
9855
9925
  * Configuration for a debug session.
9856
9926
  */
@@ -9910,6 +9980,15 @@ export module '@theia/plugin' {
9910
9980
  * Send a custom request to the debug adapter.
9911
9981
  */
9912
9982
  customRequest(command: string, args?: any): Thenable<any>;
9983
+
9984
+ /**
9985
+ * Maps a breakpoint in the editor to the corresponding Debug Adapter Protocol (DAP) breakpoint that
9986
+ * is managed by the debug adapter of the debug session. If no DAP breakpoint exists (either because
9987
+ * the editor breakpoint was not yet registered or because the debug adapter is not interested in the
9988
+ * breakpoint), the value undefined is returned.
9989
+ * @param breakpoint a Breakpoint in the editor.
9990
+ */
9991
+ getDebugProtocolBreakpoint(breakpoint: Breakpoint): PromiseLike<DebugProtocolBreakpoint | undefined>
9913
9992
  }
9914
9993
 
9915
9994
  /**
@@ -10385,6 +10464,16 @@ export module '@theia/plugin' {
10385
10464
  */
10386
10465
  export function registerDebugAdapterDescriptorFactory(debugType: string, factory: DebugAdapterDescriptorFactory): Disposable;
10387
10466
 
10467
+ /**
10468
+ * Converts a "Source" descriptor object received via the Debug Adapter Protocol into a Uri that can be used to load its contents.
10469
+ * If the source descriptor is based on a path, a file Uri is returned. If the source descriptor uses a reference number, a
10470
+ * specific debug Uri (scheme 'debug') is constructed that requires a corresponding ContentProvider and a running debug session
10471
+ * If the "Source" descriptor has insufficient information for creating the Uri, an error is thrown.
10472
+ * @param source An object conforming to the Source type defined in the Debug Adapter Protocol.
10473
+ * @param session An optional debug session that will be used when the source descriptor uses a reference number to load the contents from an active debug session.
10474
+ */
10475
+ export function asDebugSourceUri(source: DebugProtocolSource, session?: DebugSession): Uri;
10476
+
10388
10477
  /**
10389
10478
  * Register a {@link DebugConfigurationProvider debug configuration provider} for a specific debug type.
10390
10479
  * The optional {@link DebugConfigurationProviderTriggerKind triggerKind} can be used to specify when the `provideDebugConfigurations` method of the provider is triggered.