@theia/plugin 1.24.0-next.5 → 1.24.0-next.50
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 +37 -9
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.50+4ade5924584",
|
|
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": "4ade592458449ff262bce696a80a07e32a444d3d"
|
|
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
|
|
@@ -6198,7 +6214,7 @@ export module '@theia/plugin' {
|
|
|
6198
6214
|
* @return true if the operation was successfully started and false otherwise if arguments were used that would result
|
|
6199
6215
|
* in invalid workspace folder state (e.g. 2 folders with the same URI).
|
|
6200
6216
|
*/
|
|
6201
|
-
export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { uri: Uri, name?: string }[]): boolean;
|
|
6217
|
+
export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { readonly uri: Uri, readonly name?: string }[]): boolean;
|
|
6202
6218
|
|
|
6203
6219
|
/**
|
|
6204
6220
|
* ~~Register a task provider.~~
|
|
@@ -6952,6 +6968,16 @@ export module '@theia/plugin' {
|
|
|
6952
6968
|
provideDocumentSymbols(document: TextDocument, token: CancellationToken): ProviderResult<SymbolInformation[] | DocumentSymbol[]>;
|
|
6953
6969
|
}
|
|
6954
6970
|
|
|
6971
|
+
/**
|
|
6972
|
+
* Metadata about a {@link DocumentSymbolProvider}.
|
|
6973
|
+
*/
|
|
6974
|
+
export interface DocumentSymbolProviderMetadata {
|
|
6975
|
+
/**
|
|
6976
|
+
* A human-readable string that is shown when multiple outline trees show for one document.
|
|
6977
|
+
*/
|
|
6978
|
+
label?: string;
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6955
6981
|
/**
|
|
6956
6982
|
* Represents a color in RGBA space.
|
|
6957
6983
|
*/
|
|
@@ -8974,9 +9000,11 @@ export module '@theia/plugin' {
|
|
|
8974
9000
|
*
|
|
8975
9001
|
* @param selector A selector that defines the documents this provider is applicable to.
|
|
8976
9002
|
* @param provider A document symbol provider.
|
|
8977
|
-
* @
|
|
9003
|
+
* @param metadata Optional metadata about the provider.
|
|
9004
|
+
* @return A {@link Disposable disposable} that unregisters this provider when being disposed.
|
|
8978
9005
|
*/
|
|
8979
|
-
export function registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider
|
|
9006
|
+
export function registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider,
|
|
9007
|
+
metadata?: DocumentSymbolProviderMetadata): Disposable;
|
|
8980
9008
|
|
|
8981
9009
|
/**
|
|
8982
9010
|
* Register a color provider.
|
|
@@ -10028,14 +10056,14 @@ export module '@theia/plugin' {
|
|
|
10028
10056
|
* @param breakpoints The breakpoints to add.
|
|
10029
10057
|
*/
|
|
10030
10058
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
10031
|
-
export function addBreakpoints(breakpoints: Breakpoint[]): void;
|
|
10059
|
+
export function addBreakpoints(breakpoints: readonly Breakpoint[]): void;
|
|
10032
10060
|
|
|
10033
10061
|
/**
|
|
10034
10062
|
* Remove breakpoints.
|
|
10035
10063
|
* @param breakpoints The breakpoints to remove.
|
|
10036
10064
|
*/
|
|
10037
10065
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
10038
|
-
export function removeBreakpoints(breakpoints: Breakpoint[]): void;
|
|
10066
|
+
export function removeBreakpoints(breakpoints: readonly Breakpoint[]): void;
|
|
10039
10067
|
}
|
|
10040
10068
|
|
|
10041
10069
|
/**
|
|
@@ -11376,7 +11404,7 @@ export module '@theia/plugin' {
|
|
|
11376
11404
|
* @param options The [getSessionOptions](#GetSessionOptions) to use
|
|
11377
11405
|
* @returns A thenable that resolves to an authentication session
|
|
11378
11406
|
*/
|
|
11379
|
-
export function getSession(providerId: string, scopes: string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
|
|
11407
|
+
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
|
|
11380
11408
|
|
|
11381
11409
|
/**
|
|
11382
11410
|
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
|
|
@@ -11404,7 +11432,7 @@ export module '@theia/plugin' {
|
|
|
11404
11432
|
* @param options The [getSessionOptions](#GetSessionOptions) to use
|
|
11405
11433
|
* @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
|
|
11406
11434
|
*/
|
|
11407
|
-
export function getSession(providerId: string, scopes: string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
|
|
11435
|
+
export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;
|
|
11408
11436
|
|
|
11409
11437
|
/**
|
|
11410
11438
|
* An [event](#Event) which fires when the authentication sessions of an authentication provider have
|