@theia/plugin 1.29.0-next.2 → 1.29.0-next.7
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 +2 -2
- package/src/theia.d.ts +14 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.29.0-next.
|
|
3
|
+
"version": "1.29.0-next.7+5aeef6c0c68",
|
|
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": "5aeef6c0c683b4e91713ab736957e6655b486adc"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -3469,6 +3469,13 @@ export module '@theia/plugin' {
|
|
|
3469
3469
|
*/
|
|
3470
3470
|
export interface Memento {
|
|
3471
3471
|
|
|
3472
|
+
/**
|
|
3473
|
+
* Returns the stored keys.
|
|
3474
|
+
*
|
|
3475
|
+
* @return The stored keys.
|
|
3476
|
+
*/
|
|
3477
|
+
keys(): readonly string[];
|
|
3478
|
+
|
|
3472
3479
|
/**
|
|
3473
3480
|
* Return a value.
|
|
3474
3481
|
*
|
|
@@ -5640,12 +5647,14 @@ export module '@theia/plugin' {
|
|
|
5640
5647
|
* Returns `true` if the given section for the given resource (if provided) is affected.
|
|
5641
5648
|
*
|
|
5642
5649
|
* @param section Configuration name, supports _dotted_ names.
|
|
5643
|
-
* @param
|
|
5650
|
+
* @param scope a {@link ConfigurationScope}
|
|
5644
5651
|
* @return `true` if the given section for the given resource (if provided) is affected.
|
|
5645
5652
|
*/
|
|
5646
|
-
affectsConfiguration(section: string,
|
|
5653
|
+
affectsConfiguration(section: string, scope?: ConfigurationScope): boolean;
|
|
5647
5654
|
}
|
|
5648
5655
|
|
|
5656
|
+
export type ConfigurationScope = Uri | WorkspaceFolder | TextDocument | { uri?: Uri, languageId: string };
|
|
5657
|
+
|
|
5649
5658
|
/**
|
|
5650
5659
|
* An event describing a change to the set of [workspace folders](#workspace.workspaceFolders).
|
|
5651
5660
|
*/
|
|
@@ -6300,13 +6309,13 @@ export module '@theia/plugin' {
|
|
|
6300
6309
|
* is returned. Dots in the section-identifier are interpreted as child-access,
|
|
6301
6310
|
* like `{ myExt: { setting: { doIt: true }}}` and `getConfiguration('myExt.setting').get('doIt') === true`.
|
|
6302
6311
|
*
|
|
6303
|
-
* When a
|
|
6312
|
+
* When a scope is provided configuration confined to that scope is returned. Scope can be a resource or a language identifier or both.
|
|
6304
6313
|
*
|
|
6305
6314
|
* @param section A dot-separated identifier.
|
|
6306
|
-
* @param
|
|
6315
|
+
* @param scope A scope for which the configuration is asked for.
|
|
6307
6316
|
* @return The full configuration or a subset.
|
|
6308
6317
|
*/
|
|
6309
|
-
export function getConfiguration(section?: string,
|
|
6318
|
+
export function getConfiguration(section?: string, scope?: ConfigurationScope | null): WorkspaceConfiguration;
|
|
6310
6319
|
|
|
6311
6320
|
/**
|
|
6312
6321
|
* An event that is emitted when the [configuration](#WorkspaceConfiguration) changed.
|