@theia/plugin 1.24.0-next.5 → 1.24.0-next.52
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/README.md +2 -1
- package/package.json +2 -2
- package/src/theia.d.ts +55 -12
package/README.md
CHANGED
|
@@ -681,8 +681,9 @@ Example of code symbol provider registration:
|
|
|
681
681
|
```typescript
|
|
682
682
|
const documentsSelector: theia.DocumentSelector = { scheme: 'file', language: 'typescript' };
|
|
683
683
|
const provider = { provideDocumentSymbols: provideSymbols };
|
|
684
|
+
const metadata = { label: 'providerLabel' }
|
|
684
685
|
|
|
685
|
-
const disposable = theia.languages.registerDocumentSymbolProvider(documentsSelector, provider);
|
|
686
|
+
const disposable = theia.languages.registerDocumentSymbolProvider(documentsSelector, provider, metadata);
|
|
686
687
|
|
|
687
688
|
...
|
|
688
689
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.52+b1bd7bd528c",
|
|
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": "b1bd7bd528c257652f29451d168b750840c22e45"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -1296,6 +1296,15 @@ export module '@theia/plugin' {
|
|
|
1296
1296
|
*/
|
|
1297
1297
|
static parse(value: string): Uri;
|
|
1298
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* Create an URI from its component parts
|
|
1301
|
+
*
|
|
1302
|
+
* @see {@link Uri.toString}
|
|
1303
|
+
* @param components The component parts of an Uri.
|
|
1304
|
+
* @return A new Uri instance.
|
|
1305
|
+
*/
|
|
1306
|
+
static from(components: { readonly scheme: string; readonly authority?: string; readonly path?: string; readonly query?: string; readonly fragment?: string }): Uri;
|
|
1307
|
+
|
|
1299
1308
|
/**
|
|
1300
1309
|
* Use the `file` and `parse` factory functions to create new `Uri` objects.
|
|
1301
1310
|
*/
|
|
@@ -2069,8 +2078,8 @@ export module '@theia/plugin' {
|
|
|
2069
2078
|
/**
|
|
2070
2079
|
* Represents an item that can be selected from a list of items.
|
|
2071
2080
|
*/
|
|
2072
|
-
export interface
|
|
2073
|
-
type?: 'item'
|
|
2081
|
+
export interface QuickPickItemValue {
|
|
2082
|
+
type?: 'item';
|
|
2074
2083
|
/**
|
|
2075
2084
|
* The item label
|
|
2076
2085
|
*/
|
|
@@ -2097,6 +2106,13 @@ export module '@theia/plugin' {
|
|
|
2097
2106
|
alwaysShow?: boolean;
|
|
2098
2107
|
}
|
|
2099
2108
|
|
|
2109
|
+
export interface QuickPickSeparator {
|
|
2110
|
+
type: 'separator';
|
|
2111
|
+
label?: string;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
export type QuickPickItem = QuickPickSeparator | QuickPickItemValue;
|
|
2115
|
+
|
|
2100
2116
|
/**
|
|
2101
2117
|
* A concrete [QuickInput](#QuickInput) to let the user pick an item from a
|
|
2102
2118
|
* list of items of type T. The items can be filtered through a filter text field and
|
|
@@ -2533,6 +2549,13 @@ export module '@theia/plugin' {
|
|
|
2533
2549
|
*/
|
|
2534
2550
|
appendLine(value: string): void;
|
|
2535
2551
|
|
|
2552
|
+
/**
|
|
2553
|
+
* Replaces all output from the channel with the given value.
|
|
2554
|
+
*
|
|
2555
|
+
* @param value A string, falsy values will not be printed.
|
|
2556
|
+
*/
|
|
2557
|
+
replace(value: string): void;
|
|
2558
|
+
|
|
2536
2559
|
/**
|
|
2537
2560
|
* Removes all output from the channel.
|
|
2538
2561
|
*/
|
|
@@ -6198,7 +6221,7 @@ export module '@theia/plugin' {
|
|
|
6198
6221
|
* @return true if the operation was successfully started and false otherwise if arguments were used that would result
|
|
6199
6222
|
* in invalid workspace folder state (e.g. 2 folders with the same URI).
|
|
6200
6223
|
*/
|
|
6201
|
-
export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { uri: Uri, name?: string }[]): boolean;
|
|
6224
|
+
export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { readonly uri: Uri, readonly name?: string }[]): boolean;
|
|
6202
6225
|
|
|
6203
6226
|
/**
|
|
6204
6227
|
* ~~Register a task provider.~~
|
|
@@ -6952,6 +6975,16 @@ export module '@theia/plugin' {
|
|
|
6952
6975
|
provideDocumentSymbols(document: TextDocument, token: CancellationToken): ProviderResult<SymbolInformation[] | DocumentSymbol[]>;
|
|
6953
6976
|
}
|
|
6954
6977
|
|
|
6978
|
+
/**
|
|
6979
|
+
* Metadata about a {@link DocumentSymbolProvider}.
|
|
6980
|
+
*/
|
|
6981
|
+
export interface DocumentSymbolProviderMetadata {
|
|
6982
|
+
/**
|
|
6983
|
+
* A human-readable string that is shown when multiple outline trees show for one document.
|
|
6984
|
+
*/
|
|
6985
|
+
label?: string;
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6955
6988
|
/**
|
|
6956
6989
|
* Represents a color in RGBA space.
|
|
6957
6990
|
*/
|
|
@@ -8974,9 +9007,11 @@ export module '@theia/plugin' {
|
|
|
8974
9007
|
*
|
|
8975
9008
|
* @param selector A selector that defines the documents this provider is applicable to.
|
|
8976
9009
|
* @param provider A document symbol provider.
|
|
8977
|
-
* @
|
|
9010
|
+
* @param metadata Optional metadata about the provider.
|
|
9011
|
+
* @return A {@link Disposable disposable} that unregisters this provider when being disposed.
|
|
8978
9012
|
*/
|
|
8979
|
-
export function registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider
|
|
9013
|
+
export function registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider,
|
|
9014
|
+
metadata?: DocumentSymbolProviderMetadata): Disposable;
|
|
8980
9015
|
|
|
8981
9016
|
/**
|
|
8982
9017
|
* Register a color provider.
|
|
@@ -10028,14 +10063,14 @@ export module '@theia/plugin' {
|
|
|
10028
10063
|
* @param breakpoints The breakpoints to add.
|
|
10029
10064
|
*/
|
|
10030
10065
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
10031
|
-
export function addBreakpoints(breakpoints: Breakpoint[]): void;
|
|
10066
|
+
export function addBreakpoints(breakpoints: readonly Breakpoint[]): void;
|
|
10032
10067
|
|
|
10033
10068
|
/**
|
|
10034
10069
|
* Remove breakpoints.
|
|
10035
10070
|
* @param breakpoints The breakpoints to remove.
|
|
10036
10071
|
*/
|
|
10037
10072
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
10038
|
-
export function removeBreakpoints(breakpoints: Breakpoint[]): void;
|
|
10073
|
+
export function removeBreakpoints(breakpoints: readonly Breakpoint[]): void;
|
|
10039
10074
|
}
|
|
10040
10075
|
|
|
10041
10076
|
/**
|
|
@@ -10432,6 +10467,13 @@ export module '@theia/plugin' {
|
|
|
10432
10467
|
*/
|
|
10433
10468
|
source?: string;
|
|
10434
10469
|
|
|
10470
|
+
/**
|
|
10471
|
+
* A human-readable string which is rendered less prominently on a separate line in places
|
|
10472
|
+
* where the task's name is displayed. Supports rendering of {@link ThemeIcon theme icons}
|
|
10473
|
+
* via the `$(<name>)`-syntax.
|
|
10474
|
+
*/
|
|
10475
|
+
detail?: string;
|
|
10476
|
+
|
|
10435
10477
|
/**
|
|
10436
10478
|
* The task group this tasks belongs to. See TaskGroup
|
|
10437
10479
|
* for a predefined set of available groups.
|
|
@@ -10450,9 +10492,10 @@ export module '@theia/plugin' {
|
|
|
10450
10492
|
problemMatchers?: string[];
|
|
10451
10493
|
}
|
|
10452
10494
|
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10495
|
+
/**
|
|
10496
|
+
* Task2 is kept for compatibility reasons.
|
|
10497
|
+
*/
|
|
10498
|
+
export class Task2 extends Task { }
|
|
10456
10499
|
|
|
10457
10500
|
export interface TaskProvider<T extends Task = Task> {
|
|
10458
10501
|
/**
|
|
@@ -11376,7 +11419,7 @@ export module '@theia/plugin' {
|
|
|
11376
11419
|
* @param options The [getSessionOptions](#GetSessionOptions) to use
|
|
11377
11420
|
* @returns A thenable that resolves to an authentication session
|
|
11378
11421
|
*/
|
|
11379
|
-
export function getSession(providerId: string, scopes: string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
|
|
11422
|
+
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
|
|
11380
11423
|
|
|
11381
11424
|
/**
|
|
11382
11425
|
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
|
|
@@ -11404,7 +11447,7 @@ export module '@theia/plugin' {
|
|
|
11404
11447
|
* @param options The [getSessionOptions](#GetSessionOptions) to use
|
|
11405
11448
|
* @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
|
|
11406
11449
|
*/
|
|
11407
|
-
export function getSession(providerId: string, scopes: string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
|
|
11450
|
+
export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
|
|
11408
11451
|
|
|
11409
11452
|
/**
|
|
11410
11453
|
* An [event](#Event) which fires when the authentication sessions of an authentication provider have
|