@codingame/monaco-vscode-api 1.67.14 → 1.67.15
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 +5 -2
- package/dist/api.js +1213 -32
- package/dist/async-f842d13c.js +212 -0
- package/dist/configuration.d.ts +293 -0
- package/dist/configuration.js +2069 -0
- package/dist/messages.js +25 -18
- package/dist/{missing-services-0f9c8f22.js → missing-services-8687ea11.js} +357 -31
- package/dist/modelEditor.js +6 -2
- package/dist/{services-621e567e.js → services-7a462d46.js} +263 -1
- package/dist/services.d.ts +481 -483
- package/dist/services.js +3 -2
- package/dist/types-371cc315.js +27 -0
- package/package.json +8 -1
- package/dist/async-9ffe4d42.js +0 -46
package/dist/services.d.ts
CHANGED
|
@@ -1227,205 +1227,486 @@ interface INotificationService {
|
|
|
1227
1227
|
setFilter(filter: NotificationsFilter): void;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
|
-
|
|
1231
|
-
|
|
1230
|
+
interface IWorkspaceFolderProvider {
|
|
1231
|
+
getWorkspaceFolder(resource: URI): {
|
|
1232
|
+
uri: URI;
|
|
1233
|
+
name?: string;
|
|
1234
|
+
} | null;
|
|
1235
|
+
getWorkspace(): {
|
|
1236
|
+
folders: {
|
|
1237
|
+
uri: URI;
|
|
1238
|
+
name?: string;
|
|
1239
|
+
}[];
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
declare const IWorkspaceContextService: ServiceIdentifier<IWorkspaceContextService>;
|
|
1244
|
+
interface IWorkspaceContextService extends IWorkspaceFolderProvider {
|
|
1245
|
+
readonly _serviceBrand: undefined;
|
|
1232
1246
|
/**
|
|
1233
|
-
*
|
|
1247
|
+
* An event which fires on workbench state changes.
|
|
1234
1248
|
*/
|
|
1235
|
-
readonly
|
|
1249
|
+
readonly onDidChangeWorkbenchState: Event<WorkbenchState>;
|
|
1236
1250
|
/**
|
|
1237
|
-
*
|
|
1251
|
+
* An event which fires on workspace name changes.
|
|
1238
1252
|
*/
|
|
1239
|
-
readonly
|
|
1253
|
+
readonly onDidChangeWorkspaceName: Event<void>;
|
|
1240
1254
|
/**
|
|
1241
|
-
*
|
|
1255
|
+
* An event which fires before workspace folders change.
|
|
1242
1256
|
*/
|
|
1243
|
-
readonly
|
|
1257
|
+
readonly onWillChangeWorkspaceFolders: Event<IWorkspaceFoldersWillChangeEvent>;
|
|
1244
1258
|
/**
|
|
1245
|
-
*
|
|
1259
|
+
* An event which fires on workspace folders change.
|
|
1246
1260
|
*/
|
|
1247
|
-
readonly
|
|
1248
|
-
constructor(r: number, g: number, b: number, a?: number);
|
|
1249
|
-
static equals(a: RGBA, b: RGBA): boolean;
|
|
1250
|
-
}
|
|
1251
|
-
declare class HSLA {
|
|
1252
|
-
_hslaBrand: void;
|
|
1261
|
+
readonly onDidChangeWorkspaceFolders: Event<IWorkspaceFoldersChangeEvent>;
|
|
1253
1262
|
/**
|
|
1254
|
-
*
|
|
1263
|
+
* Provides access to the complete workspace object.
|
|
1255
1264
|
*/
|
|
1256
|
-
|
|
1265
|
+
getCompleteWorkspace(): Promise<IWorkspace>;
|
|
1257
1266
|
/**
|
|
1258
|
-
*
|
|
1267
|
+
* Provides access to the workspace object the window is running with.
|
|
1268
|
+
* Use `getCompleteWorkspace` to get complete workspace object.
|
|
1259
1269
|
*/
|
|
1260
|
-
|
|
1270
|
+
getWorkspace(): IWorkspace;
|
|
1261
1271
|
/**
|
|
1262
|
-
*
|
|
1272
|
+
* Return the state of the workbench.
|
|
1273
|
+
*
|
|
1274
|
+
* WorkbenchState.EMPTY - if the workbench was opened with empty window or file
|
|
1275
|
+
* WorkbenchState.FOLDER - if the workbench was opened with a folder
|
|
1276
|
+
* WorkbenchState.WORKSPACE - if the workbench was opened with a workspace
|
|
1263
1277
|
*/
|
|
1264
|
-
|
|
1278
|
+
getWorkbenchState(): WorkbenchState;
|
|
1265
1279
|
/**
|
|
1266
|
-
*
|
|
1280
|
+
* Returns the folder for the given resource from the workspace.
|
|
1281
|
+
* Can be null if there is no workspace or the resource is not inside the workspace.
|
|
1267
1282
|
*/
|
|
1268
|
-
|
|
1269
|
-
constructor(h: number, s: number, l: number, a: number);
|
|
1270
|
-
static equals(a: HSLA, b: HSLA): boolean;
|
|
1283
|
+
getWorkspaceFolder(resource: URI): IWorkspaceFolder | null;
|
|
1271
1284
|
/**
|
|
1272
|
-
*
|
|
1273
|
-
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
|
|
1274
|
-
* Assumes r, g, and b are contained in the set [0, 255] and
|
|
1275
|
-
* returns h in the set [0, 360], s, and l in the set [0, 1].
|
|
1285
|
+
* Return `true` if the current workspace has the given identifier or root URI otherwise `false`.
|
|
1276
1286
|
*/
|
|
1277
|
-
|
|
1278
|
-
private static _hue2rgb;
|
|
1287
|
+
isCurrentWorkspace(workspaceIdOrFolder: IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | URI): boolean;
|
|
1279
1288
|
/**
|
|
1280
|
-
*
|
|
1281
|
-
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
|
|
1282
|
-
* Assumes h in the set [0, 360] s, and l are contained in the set [0, 1] and
|
|
1283
|
-
* returns r, g, and b in the set [0, 255].
|
|
1289
|
+
* Returns if the provided resource is inside the workspace or not.
|
|
1284
1290
|
*/
|
|
1285
|
-
|
|
1291
|
+
isInsideWorkspace(resource: URI): boolean;
|
|
1286
1292
|
}
|
|
1287
|
-
|
|
1288
|
-
_hsvaBrand: void;
|
|
1289
|
-
/**
|
|
1290
|
-
* Hue: integer in [0, 360]
|
|
1291
|
-
*/
|
|
1292
|
-
readonly h: number;
|
|
1293
|
+
interface IBaseWorkspaceIdentifier {
|
|
1293
1294
|
/**
|
|
1294
|
-
*
|
|
1295
|
+
* Every workspace (multi-root, single folder or empty)
|
|
1296
|
+
* has a unique identifier. It is not possible to open
|
|
1297
|
+
* a workspace with the same `id` in multiple windows
|
|
1295
1298
|
*/
|
|
1296
|
-
readonly
|
|
1299
|
+
readonly id: string;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* A single folder workspace identifier is a path to a folder + id.
|
|
1303
|
+
*/
|
|
1304
|
+
interface ISingleFolderWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
1297
1305
|
/**
|
|
1298
|
-
*
|
|
1306
|
+
* Folder path as `URI`.
|
|
1299
1307
|
*/
|
|
1300
|
-
readonly
|
|
1308
|
+
readonly uri: URI;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* A multi-root workspace identifier is a path to a workspace file + id.
|
|
1312
|
+
*/
|
|
1313
|
+
interface IWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
1301
1314
|
/**
|
|
1302
|
-
*
|
|
1315
|
+
* Workspace config file path as `URI`.
|
|
1303
1316
|
*/
|
|
1304
|
-
|
|
1305
|
-
constructor(h: number, s: number, v: number, a: number);
|
|
1306
|
-
static equals(a: HSVA, b: HSVA): boolean;
|
|
1307
|
-
static fromRGBA(rgba: RGBA): HSVA;
|
|
1308
|
-
static toRGBA(hsva: HSVA): RGBA;
|
|
1317
|
+
configPath: URI;
|
|
1309
1318
|
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
+
interface IEmptyWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
1320
|
+
}
|
|
1321
|
+
declare type IAnyWorkspaceIdentifier = IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | IEmptyWorkspaceIdentifier;
|
|
1322
|
+
declare const enum WorkbenchState {
|
|
1323
|
+
EMPTY = 1,
|
|
1324
|
+
FOLDER = 2,
|
|
1325
|
+
WORKSPACE = 3
|
|
1326
|
+
}
|
|
1327
|
+
interface IWorkspaceFoldersWillChangeEvent {
|
|
1328
|
+
readonly changes: IWorkspaceFoldersChangeEvent;
|
|
1329
|
+
readonly fromCache: boolean;
|
|
1330
|
+
join(promise: Promise<void>): void;
|
|
1331
|
+
}
|
|
1332
|
+
interface IWorkspaceFoldersChangeEvent {
|
|
1333
|
+
added: IWorkspaceFolder[];
|
|
1334
|
+
removed: IWorkspaceFolder[];
|
|
1335
|
+
changed: IWorkspaceFolder[];
|
|
1336
|
+
}
|
|
1337
|
+
interface IWorkspace {
|
|
1319
1338
|
/**
|
|
1320
|
-
*
|
|
1321
|
-
* Returns the number in the set [0, 1]. O => Darkest Black. 1 => Lightest white.
|
|
1339
|
+
* the unique identifier of the workspace.
|
|
1322
1340
|
*/
|
|
1323
|
-
|
|
1324
|
-
private static _relativeLuminanceForComponent;
|
|
1341
|
+
readonly id: string;
|
|
1325
1342
|
/**
|
|
1326
|
-
*
|
|
1327
|
-
* Returns the contrast ration number in the set [1, 21].
|
|
1343
|
+
* Folders in the workspace.
|
|
1328
1344
|
*/
|
|
1329
|
-
|
|
1345
|
+
readonly folders: IWorkspaceFolder[];
|
|
1330
1346
|
/**
|
|
1331
|
-
*
|
|
1332
|
-
*
|
|
1347
|
+
* Transient workspaces are meant to go away after being used
|
|
1348
|
+
* once, e.g. a window reload of a transient workspace will
|
|
1349
|
+
* open an empty window.
|
|
1333
1350
|
*/
|
|
1334
|
-
|
|
1351
|
+
readonly transient?: boolean;
|
|
1335
1352
|
/**
|
|
1336
|
-
*
|
|
1337
|
-
* Return 'true' if lighter color otherwise 'false'
|
|
1353
|
+
* the location of the workspace configuration
|
|
1338
1354
|
*/
|
|
1339
|
-
|
|
1340
|
-
isLighterThan(another: Color): boolean;
|
|
1341
|
-
isDarkerThan(another: Color): boolean;
|
|
1342
|
-
lighten(factor: number): Color;
|
|
1343
|
-
darken(factor: number): Color;
|
|
1344
|
-
transparent(factor: number): Color;
|
|
1345
|
-
isTransparent(): boolean;
|
|
1346
|
-
isOpaque(): boolean;
|
|
1347
|
-
opposite(): Color;
|
|
1348
|
-
blend(c: Color): Color;
|
|
1349
|
-
makeOpaque(opaqueBackground: Color): Color;
|
|
1350
|
-
flatten(...backgrounds: Color[]): Color;
|
|
1351
|
-
private static _flatten;
|
|
1352
|
-
private _toString?;
|
|
1353
|
-
toString(): string;
|
|
1354
|
-
static getLighterColor(of: Color, relative: Color, factor?: number): Color;
|
|
1355
|
-
static getDarkerColor(of: Color, relative: Color, factor?: number): Color;
|
|
1356
|
-
static readonly white: Color;
|
|
1357
|
-
static readonly black: Color;
|
|
1358
|
-
static readonly red: Color;
|
|
1359
|
-
static readonly blue: Color;
|
|
1360
|
-
static readonly green: Color;
|
|
1361
|
-
static readonly cyan: Color;
|
|
1362
|
-
static readonly lightgrey: Color;
|
|
1363
|
-
static readonly transparent: Color;
|
|
1364
|
-
}
|
|
1365
|
-
declare namespace Color {
|
|
1366
|
-
namespace Format {
|
|
1367
|
-
namespace CSS {
|
|
1368
|
-
function formatRGB(color: Color): string;
|
|
1369
|
-
function formatRGBA(color: Color): string;
|
|
1370
|
-
function formatHSL(color: Color): string;
|
|
1371
|
-
function formatHSLA(color: Color): string;
|
|
1372
|
-
/**
|
|
1373
|
-
* Formats the color as #RRGGBB
|
|
1374
|
-
*/
|
|
1375
|
-
function formatHex(color: Color): string;
|
|
1376
|
-
/**
|
|
1377
|
-
* Formats the color as #RRGGBBAA
|
|
1378
|
-
* If 'compact' is set, colors without transparancy will be printed as #RRGGBB
|
|
1379
|
-
*/
|
|
1380
|
-
function formatHexA(color: Color, compact?: boolean): string;
|
|
1381
|
-
/**
|
|
1382
|
-
* The default format will use HEX if opaque and RGBA otherwise.
|
|
1383
|
-
*/
|
|
1384
|
-
function format(color: Color): string;
|
|
1385
|
-
/**
|
|
1386
|
-
* Converts an Hex color value to a Color.
|
|
1387
|
-
* returns r, g, and b are contained in the set [0, 255]
|
|
1388
|
-
* @param hex string (#RGB, #RGBA, #RRGGBB or #RRGGBBAA).
|
|
1389
|
-
*/
|
|
1390
|
-
function parseHex(hex: string): Color | null;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
interface IMarkdownString {
|
|
1396
|
-
readonly value: string;
|
|
1397
|
-
readonly isTrusted?: boolean;
|
|
1398
|
-
readonly supportThemeIcons?: boolean;
|
|
1399
|
-
readonly supportHtml?: boolean;
|
|
1400
|
-
readonly baseUri?: UriComponents;
|
|
1401
|
-
uris?: {
|
|
1402
|
-
[href: string]: UriComponents;
|
|
1403
|
-
};
|
|
1355
|
+
readonly configuration?: URI | null;
|
|
1404
1356
|
}
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* A position in the editor. This interface is suitable for serialization.
|
|
1408
|
-
*/
|
|
1409
|
-
interface IPosition {
|
|
1357
|
+
interface IWorkspaceFolderData {
|
|
1410
1358
|
/**
|
|
1411
|
-
*
|
|
1359
|
+
* The associated URI for this workspace folder.
|
|
1412
1360
|
*/
|
|
1413
|
-
readonly
|
|
1361
|
+
readonly uri: URI;
|
|
1414
1362
|
/**
|
|
1415
|
-
*
|
|
1363
|
+
* The name of this workspace folder. Defaults to
|
|
1364
|
+
* the basename of its [uri-path](#Uri.path)
|
|
1416
1365
|
*/
|
|
1417
|
-
readonly
|
|
1418
|
-
}
|
|
1419
|
-
/**
|
|
1420
|
-
* A position in the editor.
|
|
1421
|
-
*/
|
|
1422
|
-
declare class Position$1 {
|
|
1366
|
+
readonly name: string;
|
|
1423
1367
|
/**
|
|
1424
|
-
*
|
|
1368
|
+
* The ordinal number of this workspace folder.
|
|
1425
1369
|
*/
|
|
1426
|
-
readonly
|
|
1370
|
+
readonly index: number;
|
|
1371
|
+
}
|
|
1372
|
+
interface IWorkspaceFolder extends IWorkspaceFolderData {
|
|
1427
1373
|
/**
|
|
1428
|
-
*
|
|
1374
|
+
* Given workspace folder relative path, returns the resource with the absolute path.
|
|
1375
|
+
*/
|
|
1376
|
+
toResource: (relativePath: string) => URI;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
interface IConfigurationOverrides {
|
|
1380
|
+
overrideIdentifier?: string | null;
|
|
1381
|
+
resource?: URI | null;
|
|
1382
|
+
}
|
|
1383
|
+
declare type IConfigurationUpdateOverrides = Omit<IConfigurationOverrides, 'overrideIdentifier'> & {
|
|
1384
|
+
overrideIdentifiers?: string[] | null;
|
|
1385
|
+
};
|
|
1386
|
+
declare const enum ConfigurationTarget {
|
|
1387
|
+
USER = 1,
|
|
1388
|
+
USER_LOCAL = 2,
|
|
1389
|
+
USER_REMOTE = 3,
|
|
1390
|
+
WORKSPACE = 4,
|
|
1391
|
+
WORKSPACE_FOLDER = 5,
|
|
1392
|
+
DEFAULT = 6,
|
|
1393
|
+
MEMORY = 7
|
|
1394
|
+
}
|
|
1395
|
+
interface IConfigurationChange {
|
|
1396
|
+
keys: string[];
|
|
1397
|
+
overrides: [string, string[]][];
|
|
1398
|
+
}
|
|
1399
|
+
interface IConfigurationChangeEvent {
|
|
1400
|
+
readonly source: ConfigurationTarget;
|
|
1401
|
+
readonly affectedKeys: string[];
|
|
1402
|
+
readonly change: IConfigurationChange;
|
|
1403
|
+
affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
|
|
1404
|
+
readonly sourceConfig: any;
|
|
1405
|
+
}
|
|
1406
|
+
interface IConfigurationValue<T> {
|
|
1407
|
+
readonly defaultValue?: T;
|
|
1408
|
+
readonly userValue?: T;
|
|
1409
|
+
readonly userLocalValue?: T;
|
|
1410
|
+
readonly userRemoteValue?: T;
|
|
1411
|
+
readonly workspaceValue?: T;
|
|
1412
|
+
readonly workspaceFolderValue?: T;
|
|
1413
|
+
readonly memoryValue?: T;
|
|
1414
|
+
readonly value?: T;
|
|
1415
|
+
readonly default?: {
|
|
1416
|
+
value?: T;
|
|
1417
|
+
override?: T;
|
|
1418
|
+
};
|
|
1419
|
+
readonly user?: {
|
|
1420
|
+
value?: T;
|
|
1421
|
+
override?: T;
|
|
1422
|
+
};
|
|
1423
|
+
readonly userLocal?: {
|
|
1424
|
+
value?: T;
|
|
1425
|
+
override?: T;
|
|
1426
|
+
};
|
|
1427
|
+
readonly userRemote?: {
|
|
1428
|
+
value?: T;
|
|
1429
|
+
override?: T;
|
|
1430
|
+
};
|
|
1431
|
+
readonly workspace?: {
|
|
1432
|
+
value?: T;
|
|
1433
|
+
override?: T;
|
|
1434
|
+
};
|
|
1435
|
+
readonly workspaceFolder?: {
|
|
1436
|
+
value?: T;
|
|
1437
|
+
override?: T;
|
|
1438
|
+
};
|
|
1439
|
+
readonly memory?: {
|
|
1440
|
+
value?: T;
|
|
1441
|
+
override?: T;
|
|
1442
|
+
};
|
|
1443
|
+
readonly overrideIdentifiers?: string[];
|
|
1444
|
+
}
|
|
1445
|
+
declare const IConfigurationService: ServiceIdentifier<IConfigurationService>;
|
|
1446
|
+
interface IConfigurationService {
|
|
1447
|
+
readonly _serviceBrand: undefined;
|
|
1448
|
+
onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
|
|
1449
|
+
getConfigurationData(): IConfigurationData | null;
|
|
1450
|
+
/**
|
|
1451
|
+
* Fetches the value of the section for the given overrides.
|
|
1452
|
+
* Value can be of native type or an object keyed off the section name.
|
|
1453
|
+
*
|
|
1454
|
+
* @param section - Section of the configuraion. Can be `null` or `undefined`.
|
|
1455
|
+
* @param overrides - Overrides that has to be applied while fetching
|
|
1456
|
+
*
|
|
1457
|
+
*/
|
|
1458
|
+
getValue<T>(): T;
|
|
1459
|
+
getValue<T>(section: string): T;
|
|
1460
|
+
getValue<T>(overrides: IConfigurationOverrides): T;
|
|
1461
|
+
getValue<T>(section: string, overrides: IConfigurationOverrides): T;
|
|
1462
|
+
/**
|
|
1463
|
+
* Update a configuration value.
|
|
1464
|
+
*
|
|
1465
|
+
* Use `target` to update the configuration in a specific `ConfigurationTarget`.
|
|
1466
|
+
*
|
|
1467
|
+
* Use `overrides` to update the configuration for a resource or for override identifiers or both.
|
|
1468
|
+
*
|
|
1469
|
+
* Passing a resource through overrides will update the configuration in the workspace folder containing that resource.
|
|
1470
|
+
*
|
|
1471
|
+
* *Note 1:* Updating configuraiton to a default value will remove the configuration from the requested target. If not target is passed, it will be removed from all writeable targets.
|
|
1472
|
+
*
|
|
1473
|
+
* *Note 2:* Use `undefined` value to remove the configuration from the given target. If not target is passed, it will be removed from all writeable targets.
|
|
1474
|
+
*
|
|
1475
|
+
* Use `donotNotifyError` and set it to `true` to surpresss errors.
|
|
1476
|
+
*
|
|
1477
|
+
* @param key setting to be updated
|
|
1478
|
+
* @param value The new value
|
|
1479
|
+
*/
|
|
1480
|
+
updateValue(key: string, value: any): Promise<void>;
|
|
1481
|
+
updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
|
|
1482
|
+
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides): Promise<void>;
|
|
1483
|
+
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
|
|
1484
|
+
inspect<T>(key: string, overrides?: IConfigurationOverrides): IConfigurationValue<Readonly<T>>;
|
|
1485
|
+
reloadConfiguration(target?: ConfigurationTarget | IWorkspaceFolder): Promise<void>;
|
|
1486
|
+
keys(): {
|
|
1487
|
+
default: string[];
|
|
1488
|
+
user: string[];
|
|
1489
|
+
workspace: string[];
|
|
1490
|
+
workspaceFolder: string[];
|
|
1491
|
+
memory?: string[];
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
interface IConfigurationModel {
|
|
1495
|
+
contents: any;
|
|
1496
|
+
keys: string[];
|
|
1497
|
+
overrides: IOverrides[];
|
|
1498
|
+
}
|
|
1499
|
+
interface IOverrides {
|
|
1500
|
+
keys: string[];
|
|
1501
|
+
contents: any;
|
|
1502
|
+
identifiers: string[];
|
|
1503
|
+
}
|
|
1504
|
+
interface IConfigurationData {
|
|
1505
|
+
defaults: IConfigurationModel;
|
|
1506
|
+
user: IConfigurationModel;
|
|
1507
|
+
workspace: IConfigurationModel;
|
|
1508
|
+
folders: [UriComponents, IConfigurationModel][];
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
declare class RGBA {
|
|
1512
|
+
_rgbaBrand: void;
|
|
1513
|
+
/**
|
|
1514
|
+
* Red: integer in [0-255]
|
|
1515
|
+
*/
|
|
1516
|
+
readonly r: number;
|
|
1517
|
+
/**
|
|
1518
|
+
* Green: integer in [0-255]
|
|
1519
|
+
*/
|
|
1520
|
+
readonly g: number;
|
|
1521
|
+
/**
|
|
1522
|
+
* Blue: integer in [0-255]
|
|
1523
|
+
*/
|
|
1524
|
+
readonly b: number;
|
|
1525
|
+
/**
|
|
1526
|
+
* Alpha: float in [0-1]
|
|
1527
|
+
*/
|
|
1528
|
+
readonly a: number;
|
|
1529
|
+
constructor(r: number, g: number, b: number, a?: number);
|
|
1530
|
+
static equals(a: RGBA, b: RGBA): boolean;
|
|
1531
|
+
}
|
|
1532
|
+
declare class HSLA {
|
|
1533
|
+
_hslaBrand: void;
|
|
1534
|
+
/**
|
|
1535
|
+
* Hue: integer in [0, 360]
|
|
1536
|
+
*/
|
|
1537
|
+
readonly h: number;
|
|
1538
|
+
/**
|
|
1539
|
+
* Saturation: float in [0, 1]
|
|
1540
|
+
*/
|
|
1541
|
+
readonly s: number;
|
|
1542
|
+
/**
|
|
1543
|
+
* Luminosity: float in [0, 1]
|
|
1544
|
+
*/
|
|
1545
|
+
readonly l: number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Alpha: float in [0, 1]
|
|
1548
|
+
*/
|
|
1549
|
+
readonly a: number;
|
|
1550
|
+
constructor(h: number, s: number, l: number, a: number);
|
|
1551
|
+
static equals(a: HSLA, b: HSLA): boolean;
|
|
1552
|
+
/**
|
|
1553
|
+
* Converts an RGB color value to HSL. Conversion formula
|
|
1554
|
+
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
|
|
1555
|
+
* Assumes r, g, and b are contained in the set [0, 255] and
|
|
1556
|
+
* returns h in the set [0, 360], s, and l in the set [0, 1].
|
|
1557
|
+
*/
|
|
1558
|
+
static fromRGBA(rgba: RGBA): HSLA;
|
|
1559
|
+
private static _hue2rgb;
|
|
1560
|
+
/**
|
|
1561
|
+
* Converts an HSL color value to RGB. Conversion formula
|
|
1562
|
+
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
|
|
1563
|
+
* Assumes h in the set [0, 360] s, and l are contained in the set [0, 1] and
|
|
1564
|
+
* returns r, g, and b in the set [0, 255].
|
|
1565
|
+
*/
|
|
1566
|
+
static toRGBA(hsla: HSLA): RGBA;
|
|
1567
|
+
}
|
|
1568
|
+
declare class HSVA {
|
|
1569
|
+
_hsvaBrand: void;
|
|
1570
|
+
/**
|
|
1571
|
+
* Hue: integer in [0, 360]
|
|
1572
|
+
*/
|
|
1573
|
+
readonly h: number;
|
|
1574
|
+
/**
|
|
1575
|
+
* Saturation: float in [0, 1]
|
|
1576
|
+
*/
|
|
1577
|
+
readonly s: number;
|
|
1578
|
+
/**
|
|
1579
|
+
* Value: float in [0, 1]
|
|
1580
|
+
*/
|
|
1581
|
+
readonly v: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* Alpha: float in [0, 1]
|
|
1584
|
+
*/
|
|
1585
|
+
readonly a: number;
|
|
1586
|
+
constructor(h: number, s: number, v: number, a: number);
|
|
1587
|
+
static equals(a: HSVA, b: HSVA): boolean;
|
|
1588
|
+
static fromRGBA(rgba: RGBA): HSVA;
|
|
1589
|
+
static toRGBA(hsva: HSVA): RGBA;
|
|
1590
|
+
}
|
|
1591
|
+
declare class Color {
|
|
1592
|
+
static fromHex(hex: string): Color;
|
|
1593
|
+
readonly rgba: RGBA;
|
|
1594
|
+
private _hsla?;
|
|
1595
|
+
get hsla(): HSLA;
|
|
1596
|
+
private _hsva?;
|
|
1597
|
+
get hsva(): HSVA;
|
|
1598
|
+
constructor(arg: RGBA | HSLA | HSVA);
|
|
1599
|
+
equals(other: Color | null): boolean;
|
|
1600
|
+
/**
|
|
1601
|
+
* http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
|
1602
|
+
* Returns the number in the set [0, 1]. O => Darkest Black. 1 => Lightest white.
|
|
1603
|
+
*/
|
|
1604
|
+
getRelativeLuminance(): number;
|
|
1605
|
+
private static _relativeLuminanceForComponent;
|
|
1606
|
+
/**
|
|
1607
|
+
* http://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
|
1608
|
+
* Returns the contrast ration number in the set [1, 21].
|
|
1609
|
+
*/
|
|
1610
|
+
getContrastRatio(another: Color): number;
|
|
1611
|
+
/**
|
|
1612
|
+
* http://24ways.org/2010/calculating-color-contrast
|
|
1613
|
+
* Return 'true' if darker color otherwise 'false'
|
|
1614
|
+
*/
|
|
1615
|
+
isDarker(): boolean;
|
|
1616
|
+
/**
|
|
1617
|
+
* http://24ways.org/2010/calculating-color-contrast
|
|
1618
|
+
* Return 'true' if lighter color otherwise 'false'
|
|
1619
|
+
*/
|
|
1620
|
+
isLighter(): boolean;
|
|
1621
|
+
isLighterThan(another: Color): boolean;
|
|
1622
|
+
isDarkerThan(another: Color): boolean;
|
|
1623
|
+
lighten(factor: number): Color;
|
|
1624
|
+
darken(factor: number): Color;
|
|
1625
|
+
transparent(factor: number): Color;
|
|
1626
|
+
isTransparent(): boolean;
|
|
1627
|
+
isOpaque(): boolean;
|
|
1628
|
+
opposite(): Color;
|
|
1629
|
+
blend(c: Color): Color;
|
|
1630
|
+
makeOpaque(opaqueBackground: Color): Color;
|
|
1631
|
+
flatten(...backgrounds: Color[]): Color;
|
|
1632
|
+
private static _flatten;
|
|
1633
|
+
private _toString?;
|
|
1634
|
+
toString(): string;
|
|
1635
|
+
static getLighterColor(of: Color, relative: Color, factor?: number): Color;
|
|
1636
|
+
static getDarkerColor(of: Color, relative: Color, factor?: number): Color;
|
|
1637
|
+
static readonly white: Color;
|
|
1638
|
+
static readonly black: Color;
|
|
1639
|
+
static readonly red: Color;
|
|
1640
|
+
static readonly blue: Color;
|
|
1641
|
+
static readonly green: Color;
|
|
1642
|
+
static readonly cyan: Color;
|
|
1643
|
+
static readonly lightgrey: Color;
|
|
1644
|
+
static readonly transparent: Color;
|
|
1645
|
+
}
|
|
1646
|
+
declare namespace Color {
|
|
1647
|
+
namespace Format {
|
|
1648
|
+
namespace CSS {
|
|
1649
|
+
function formatRGB(color: Color): string;
|
|
1650
|
+
function formatRGBA(color: Color): string;
|
|
1651
|
+
function formatHSL(color: Color): string;
|
|
1652
|
+
function formatHSLA(color: Color): string;
|
|
1653
|
+
/**
|
|
1654
|
+
* Formats the color as #RRGGBB
|
|
1655
|
+
*/
|
|
1656
|
+
function formatHex(color: Color): string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Formats the color as #RRGGBBAA
|
|
1659
|
+
* If 'compact' is set, colors without transparancy will be printed as #RRGGBB
|
|
1660
|
+
*/
|
|
1661
|
+
function formatHexA(color: Color, compact?: boolean): string;
|
|
1662
|
+
/**
|
|
1663
|
+
* The default format will use HEX if opaque and RGBA otherwise.
|
|
1664
|
+
*/
|
|
1665
|
+
function format(color: Color): string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Converts an Hex color value to a Color.
|
|
1668
|
+
* returns r, g, and b are contained in the set [0, 255]
|
|
1669
|
+
* @param hex string (#RGB, #RGBA, #RRGGBB or #RRGGBBAA).
|
|
1670
|
+
*/
|
|
1671
|
+
function parseHex(hex: string): Color | null;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
interface IMarkdownString {
|
|
1677
|
+
readonly value: string;
|
|
1678
|
+
readonly isTrusted?: boolean;
|
|
1679
|
+
readonly supportThemeIcons?: boolean;
|
|
1680
|
+
readonly supportHtml?: boolean;
|
|
1681
|
+
readonly baseUri?: UriComponents;
|
|
1682
|
+
uris?: {
|
|
1683
|
+
[href: string]: UriComponents;
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* A position in the editor. This interface is suitable for serialization.
|
|
1689
|
+
*/
|
|
1690
|
+
interface IPosition {
|
|
1691
|
+
/**
|
|
1692
|
+
* line number (starts at 1)
|
|
1693
|
+
*/
|
|
1694
|
+
readonly lineNumber: number;
|
|
1695
|
+
/**
|
|
1696
|
+
* column (the first character in a line is between column 1 and column 2)
|
|
1697
|
+
*/
|
|
1698
|
+
readonly column: number;
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* A position in the editor.
|
|
1702
|
+
*/
|
|
1703
|
+
declare class Position$1 {
|
|
1704
|
+
/**
|
|
1705
|
+
* line number (starts at 1)
|
|
1706
|
+
*/
|
|
1707
|
+
readonly lineNumber: number;
|
|
1708
|
+
/**
|
|
1709
|
+
* column (the first character in a line is between column 1 and column 2)
|
|
1429
1710
|
*/
|
|
1430
1711
|
readonly column: number;
|
|
1431
1712
|
constructor(lineNumber: number, column: number);
|
|
@@ -6298,373 +6579,92 @@ interface ISuggestOptions {
|
|
|
6298
6579
|
*/
|
|
6299
6580
|
showClasses?: boolean;
|
|
6300
6581
|
/**
|
|
6301
|
-
* Show struct-suggestions.
|
|
6302
|
-
*/
|
|
6303
|
-
showStructs?: boolean;
|
|
6304
|
-
/**
|
|
6305
|
-
* Show interface-suggestions.
|
|
6306
|
-
*/
|
|
6307
|
-
showInterfaces?: boolean;
|
|
6308
|
-
/**
|
|
6309
|
-
* Show module-suggestions.
|
|
6310
|
-
*/
|
|
6311
|
-
showModules?: boolean;
|
|
6312
|
-
/**
|
|
6313
|
-
* Show property-suggestions.
|
|
6314
|
-
*/
|
|
6315
|
-
showProperties?: boolean;
|
|
6316
|
-
/**
|
|
6317
|
-
* Show event-suggestions.
|
|
6318
|
-
*/
|
|
6319
|
-
showEvents?: boolean;
|
|
6320
|
-
/**
|
|
6321
|
-
* Show operator-suggestions.
|
|
6322
|
-
*/
|
|
6323
|
-
showOperators?: boolean;
|
|
6324
|
-
/**
|
|
6325
|
-
* Show unit-suggestions.
|
|
6326
|
-
*/
|
|
6327
|
-
showUnits?: boolean;
|
|
6328
|
-
/**
|
|
6329
|
-
* Show value-suggestions.
|
|
6330
|
-
*/
|
|
6331
|
-
showValues?: boolean;
|
|
6332
|
-
/**
|
|
6333
|
-
* Show constant-suggestions.
|
|
6334
|
-
*/
|
|
6335
|
-
showConstants?: boolean;
|
|
6336
|
-
/**
|
|
6337
|
-
* Show enum-suggestions.
|
|
6338
|
-
*/
|
|
6339
|
-
showEnums?: boolean;
|
|
6340
|
-
/**
|
|
6341
|
-
* Show enumMember-suggestions.
|
|
6342
|
-
*/
|
|
6343
|
-
showEnumMembers?: boolean;
|
|
6344
|
-
/**
|
|
6345
|
-
* Show keyword-suggestions.
|
|
6346
|
-
*/
|
|
6347
|
-
showKeywords?: boolean;
|
|
6348
|
-
/**
|
|
6349
|
-
* Show text-suggestions.
|
|
6350
|
-
*/
|
|
6351
|
-
showWords?: boolean;
|
|
6352
|
-
/**
|
|
6353
|
-
* Show color-suggestions.
|
|
6354
|
-
*/
|
|
6355
|
-
showColors?: boolean;
|
|
6356
|
-
/**
|
|
6357
|
-
* Show file-suggestions.
|
|
6358
|
-
*/
|
|
6359
|
-
showFiles?: boolean;
|
|
6360
|
-
/**
|
|
6361
|
-
* Show reference-suggestions.
|
|
6362
|
-
*/
|
|
6363
|
-
showReferences?: boolean;
|
|
6364
|
-
/**
|
|
6365
|
-
* Show folder-suggestions.
|
|
6366
|
-
*/
|
|
6367
|
-
showFolders?: boolean;
|
|
6368
|
-
/**
|
|
6369
|
-
* Show typeParameter-suggestions.
|
|
6370
|
-
*/
|
|
6371
|
-
showTypeParameters?: boolean;
|
|
6372
|
-
/**
|
|
6373
|
-
* Show issue-suggestions.
|
|
6374
|
-
*/
|
|
6375
|
-
showIssues?: boolean;
|
|
6376
|
-
/**
|
|
6377
|
-
* Show user-suggestions.
|
|
6378
|
-
*/
|
|
6379
|
-
showUsers?: boolean;
|
|
6380
|
-
/**
|
|
6381
|
-
* Show snippet-suggestions.
|
|
6382
|
-
*/
|
|
6383
|
-
showSnippets?: boolean;
|
|
6384
|
-
}
|
|
6385
|
-
interface ISmartSelectOptions {
|
|
6386
|
-
selectLeadingAndTrailingWhitespace?: boolean;
|
|
6387
|
-
}
|
|
6388
|
-
|
|
6389
|
-
interface IWorkspaceFolderProvider {
|
|
6390
|
-
getWorkspaceFolder(resource: URI): {
|
|
6391
|
-
uri: URI;
|
|
6392
|
-
name?: string;
|
|
6393
|
-
} | null;
|
|
6394
|
-
getWorkspace(): {
|
|
6395
|
-
folders: {
|
|
6396
|
-
uri: URI;
|
|
6397
|
-
name?: string;
|
|
6398
|
-
}[];
|
|
6399
|
-
};
|
|
6400
|
-
}
|
|
6401
|
-
|
|
6402
|
-
declare const IWorkspaceContextService: ServiceIdentifier<IWorkspaceContextService>;
|
|
6403
|
-
interface IWorkspaceContextService extends IWorkspaceFolderProvider {
|
|
6404
|
-
readonly _serviceBrand: undefined;
|
|
6405
|
-
/**
|
|
6406
|
-
* An event which fires on workbench state changes.
|
|
6407
|
-
*/
|
|
6408
|
-
readonly onDidChangeWorkbenchState: Event<WorkbenchState>;
|
|
6409
|
-
/**
|
|
6410
|
-
* An event which fires on workspace name changes.
|
|
6411
|
-
*/
|
|
6412
|
-
readonly onDidChangeWorkspaceName: Event<void>;
|
|
6413
|
-
/**
|
|
6414
|
-
* An event which fires before workspace folders change.
|
|
6582
|
+
* Show struct-suggestions.
|
|
6415
6583
|
*/
|
|
6416
|
-
|
|
6584
|
+
showStructs?: boolean;
|
|
6417
6585
|
/**
|
|
6418
|
-
*
|
|
6586
|
+
* Show interface-suggestions.
|
|
6419
6587
|
*/
|
|
6420
|
-
|
|
6588
|
+
showInterfaces?: boolean;
|
|
6421
6589
|
/**
|
|
6422
|
-
*
|
|
6590
|
+
* Show module-suggestions.
|
|
6423
6591
|
*/
|
|
6424
|
-
|
|
6592
|
+
showModules?: boolean;
|
|
6425
6593
|
/**
|
|
6426
|
-
*
|
|
6427
|
-
* Use `getCompleteWorkspace` to get complete workspace object.
|
|
6594
|
+
* Show property-suggestions.
|
|
6428
6595
|
*/
|
|
6429
|
-
|
|
6596
|
+
showProperties?: boolean;
|
|
6430
6597
|
/**
|
|
6431
|
-
*
|
|
6432
|
-
*
|
|
6433
|
-
* WorkbenchState.EMPTY - if the workbench was opened with empty window or file
|
|
6434
|
-
* WorkbenchState.FOLDER - if the workbench was opened with a folder
|
|
6435
|
-
* WorkbenchState.WORKSPACE - if the workbench was opened with a workspace
|
|
6598
|
+
* Show event-suggestions.
|
|
6436
6599
|
*/
|
|
6437
|
-
|
|
6600
|
+
showEvents?: boolean;
|
|
6438
6601
|
/**
|
|
6439
|
-
*
|
|
6440
|
-
* Can be null if there is no workspace or the resource is not inside the workspace.
|
|
6602
|
+
* Show operator-suggestions.
|
|
6441
6603
|
*/
|
|
6442
|
-
|
|
6604
|
+
showOperators?: boolean;
|
|
6443
6605
|
/**
|
|
6444
|
-
*
|
|
6606
|
+
* Show unit-suggestions.
|
|
6445
6607
|
*/
|
|
6446
|
-
|
|
6608
|
+
showUnits?: boolean;
|
|
6447
6609
|
/**
|
|
6448
|
-
*
|
|
6610
|
+
* Show value-suggestions.
|
|
6449
6611
|
*/
|
|
6450
|
-
|
|
6451
|
-
}
|
|
6452
|
-
interface IBaseWorkspaceIdentifier {
|
|
6612
|
+
showValues?: boolean;
|
|
6453
6613
|
/**
|
|
6454
|
-
*
|
|
6455
|
-
* has a unique identifier. It is not possible to open
|
|
6456
|
-
* a workspace with the same `id` in multiple windows
|
|
6614
|
+
* Show constant-suggestions.
|
|
6457
6615
|
*/
|
|
6458
|
-
|
|
6459
|
-
}
|
|
6460
|
-
/**
|
|
6461
|
-
* A single folder workspace identifier is a path to a folder + id.
|
|
6462
|
-
*/
|
|
6463
|
-
interface ISingleFolderWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
6616
|
+
showConstants?: boolean;
|
|
6464
6617
|
/**
|
|
6465
|
-
*
|
|
6618
|
+
* Show enum-suggestions.
|
|
6466
6619
|
*/
|
|
6467
|
-
|
|
6468
|
-
}
|
|
6469
|
-
/**
|
|
6470
|
-
* A multi-root workspace identifier is a path to a workspace file + id.
|
|
6471
|
-
*/
|
|
6472
|
-
interface IWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
6620
|
+
showEnums?: boolean;
|
|
6473
6621
|
/**
|
|
6474
|
-
*
|
|
6622
|
+
* Show enumMember-suggestions.
|
|
6475
6623
|
*/
|
|
6476
|
-
|
|
6477
|
-
}
|
|
6478
|
-
interface IEmptyWorkspaceIdentifier extends IBaseWorkspaceIdentifier {
|
|
6479
|
-
}
|
|
6480
|
-
declare type IAnyWorkspaceIdentifier = IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | IEmptyWorkspaceIdentifier;
|
|
6481
|
-
declare const enum WorkbenchState {
|
|
6482
|
-
EMPTY = 1,
|
|
6483
|
-
FOLDER = 2,
|
|
6484
|
-
WORKSPACE = 3
|
|
6485
|
-
}
|
|
6486
|
-
interface IWorkspaceFoldersWillChangeEvent {
|
|
6487
|
-
readonly changes: IWorkspaceFoldersChangeEvent;
|
|
6488
|
-
readonly fromCache: boolean;
|
|
6489
|
-
join(promise: Promise<void>): void;
|
|
6490
|
-
}
|
|
6491
|
-
interface IWorkspaceFoldersChangeEvent {
|
|
6492
|
-
added: IWorkspaceFolder[];
|
|
6493
|
-
removed: IWorkspaceFolder[];
|
|
6494
|
-
changed: IWorkspaceFolder[];
|
|
6495
|
-
}
|
|
6496
|
-
interface IWorkspace {
|
|
6624
|
+
showEnumMembers?: boolean;
|
|
6497
6625
|
/**
|
|
6498
|
-
*
|
|
6626
|
+
* Show keyword-suggestions.
|
|
6499
6627
|
*/
|
|
6500
|
-
|
|
6628
|
+
showKeywords?: boolean;
|
|
6501
6629
|
/**
|
|
6502
|
-
*
|
|
6630
|
+
* Show text-suggestions.
|
|
6503
6631
|
*/
|
|
6504
|
-
|
|
6632
|
+
showWords?: boolean;
|
|
6505
6633
|
/**
|
|
6506
|
-
*
|
|
6507
|
-
* once, e.g. a window reload of a transient workspace will
|
|
6508
|
-
* open an empty window.
|
|
6634
|
+
* Show color-suggestions.
|
|
6509
6635
|
*/
|
|
6510
|
-
|
|
6636
|
+
showColors?: boolean;
|
|
6511
6637
|
/**
|
|
6512
|
-
*
|
|
6638
|
+
* Show file-suggestions.
|
|
6513
6639
|
*/
|
|
6514
|
-
|
|
6515
|
-
}
|
|
6516
|
-
interface IWorkspaceFolderData {
|
|
6640
|
+
showFiles?: boolean;
|
|
6517
6641
|
/**
|
|
6518
|
-
*
|
|
6642
|
+
* Show reference-suggestions.
|
|
6519
6643
|
*/
|
|
6520
|
-
|
|
6644
|
+
showReferences?: boolean;
|
|
6521
6645
|
/**
|
|
6522
|
-
*
|
|
6523
|
-
* the basename of its [uri-path](#Uri.path)
|
|
6646
|
+
* Show folder-suggestions.
|
|
6524
6647
|
*/
|
|
6525
|
-
|
|
6648
|
+
showFolders?: boolean;
|
|
6526
6649
|
/**
|
|
6527
|
-
*
|
|
6650
|
+
* Show typeParameter-suggestions.
|
|
6528
6651
|
*/
|
|
6529
|
-
|
|
6530
|
-
}
|
|
6531
|
-
interface IWorkspaceFolder extends IWorkspaceFolderData {
|
|
6652
|
+
showTypeParameters?: boolean;
|
|
6532
6653
|
/**
|
|
6533
|
-
*
|
|
6654
|
+
* Show issue-suggestions.
|
|
6534
6655
|
*/
|
|
6535
|
-
|
|
6536
|
-
}
|
|
6537
|
-
|
|
6538
|
-
interface IConfigurationOverrides {
|
|
6539
|
-
overrideIdentifier?: string | null;
|
|
6540
|
-
resource?: URI | null;
|
|
6541
|
-
}
|
|
6542
|
-
declare type IConfigurationUpdateOverrides = Omit<IConfigurationOverrides, 'overrideIdentifier'> & {
|
|
6543
|
-
overrideIdentifiers?: string[] | null;
|
|
6544
|
-
};
|
|
6545
|
-
declare const enum ConfigurationTarget {
|
|
6546
|
-
USER = 1,
|
|
6547
|
-
USER_LOCAL = 2,
|
|
6548
|
-
USER_REMOTE = 3,
|
|
6549
|
-
WORKSPACE = 4,
|
|
6550
|
-
WORKSPACE_FOLDER = 5,
|
|
6551
|
-
DEFAULT = 6,
|
|
6552
|
-
MEMORY = 7
|
|
6553
|
-
}
|
|
6554
|
-
interface IConfigurationChange {
|
|
6555
|
-
keys: string[];
|
|
6556
|
-
overrides: [string, string[]][];
|
|
6557
|
-
}
|
|
6558
|
-
interface IConfigurationChangeEvent {
|
|
6559
|
-
readonly source: ConfigurationTarget;
|
|
6560
|
-
readonly affectedKeys: string[];
|
|
6561
|
-
readonly change: IConfigurationChange;
|
|
6562
|
-
affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
|
|
6563
|
-
readonly sourceConfig: any;
|
|
6564
|
-
}
|
|
6565
|
-
interface IConfigurationValue<T> {
|
|
6566
|
-
readonly defaultValue?: T;
|
|
6567
|
-
readonly userValue?: T;
|
|
6568
|
-
readonly userLocalValue?: T;
|
|
6569
|
-
readonly userRemoteValue?: T;
|
|
6570
|
-
readonly workspaceValue?: T;
|
|
6571
|
-
readonly workspaceFolderValue?: T;
|
|
6572
|
-
readonly memoryValue?: T;
|
|
6573
|
-
readonly value?: T;
|
|
6574
|
-
readonly default?: {
|
|
6575
|
-
value?: T;
|
|
6576
|
-
override?: T;
|
|
6577
|
-
};
|
|
6578
|
-
readonly user?: {
|
|
6579
|
-
value?: T;
|
|
6580
|
-
override?: T;
|
|
6581
|
-
};
|
|
6582
|
-
readonly userLocal?: {
|
|
6583
|
-
value?: T;
|
|
6584
|
-
override?: T;
|
|
6585
|
-
};
|
|
6586
|
-
readonly userRemote?: {
|
|
6587
|
-
value?: T;
|
|
6588
|
-
override?: T;
|
|
6589
|
-
};
|
|
6590
|
-
readonly workspace?: {
|
|
6591
|
-
value?: T;
|
|
6592
|
-
override?: T;
|
|
6593
|
-
};
|
|
6594
|
-
readonly workspaceFolder?: {
|
|
6595
|
-
value?: T;
|
|
6596
|
-
override?: T;
|
|
6597
|
-
};
|
|
6598
|
-
readonly memory?: {
|
|
6599
|
-
value?: T;
|
|
6600
|
-
override?: T;
|
|
6601
|
-
};
|
|
6602
|
-
readonly overrideIdentifiers?: string[];
|
|
6603
|
-
}
|
|
6604
|
-
declare const IConfigurationService: ServiceIdentifier<IConfigurationService>;
|
|
6605
|
-
interface IConfigurationService {
|
|
6606
|
-
readonly _serviceBrand: undefined;
|
|
6607
|
-
onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
|
|
6608
|
-
getConfigurationData(): IConfigurationData | null;
|
|
6656
|
+
showIssues?: boolean;
|
|
6609
6657
|
/**
|
|
6610
|
-
*
|
|
6611
|
-
* Value can be of native type or an object keyed off the section name.
|
|
6612
|
-
*
|
|
6613
|
-
* @param section - Section of the configuraion. Can be `null` or `undefined`.
|
|
6614
|
-
* @param overrides - Overrides that has to be applied while fetching
|
|
6615
|
-
*
|
|
6658
|
+
* Show user-suggestions.
|
|
6616
6659
|
*/
|
|
6617
|
-
|
|
6618
|
-
getValue<T>(section: string): T;
|
|
6619
|
-
getValue<T>(overrides: IConfigurationOverrides): T;
|
|
6620
|
-
getValue<T>(section: string, overrides: IConfigurationOverrides): T;
|
|
6660
|
+
showUsers?: boolean;
|
|
6621
6661
|
/**
|
|
6622
|
-
*
|
|
6623
|
-
*
|
|
6624
|
-
* Use `target` to update the configuration in a specific `ConfigurationTarget`.
|
|
6625
|
-
*
|
|
6626
|
-
* Use `overrides` to update the configuration for a resource or for override identifiers or both.
|
|
6627
|
-
*
|
|
6628
|
-
* Passing a resource through overrides will update the configuration in the workspace folder containing that resource.
|
|
6629
|
-
*
|
|
6630
|
-
* *Note 1:* Updating configuraiton to a default value will remove the configuration from the requested target. If not target is passed, it will be removed from all writeable targets.
|
|
6631
|
-
*
|
|
6632
|
-
* *Note 2:* Use `undefined` value to remove the configuration from the given target. If not target is passed, it will be removed from all writeable targets.
|
|
6633
|
-
*
|
|
6634
|
-
* Use `donotNotifyError` and set it to `true` to surpresss errors.
|
|
6635
|
-
*
|
|
6636
|
-
* @param key setting to be updated
|
|
6637
|
-
* @param value The new value
|
|
6662
|
+
* Show snippet-suggestions.
|
|
6638
6663
|
*/
|
|
6639
|
-
|
|
6640
|
-
updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
|
|
6641
|
-
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides): Promise<void>;
|
|
6642
|
-
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides, target: ConfigurationTarget, donotNotifyError?: boolean): Promise<void>;
|
|
6643
|
-
inspect<T>(key: string, overrides?: IConfigurationOverrides): IConfigurationValue<Readonly<T>>;
|
|
6644
|
-
reloadConfiguration(target?: ConfigurationTarget | IWorkspaceFolder): Promise<void>;
|
|
6645
|
-
keys(): {
|
|
6646
|
-
default: string[];
|
|
6647
|
-
user: string[];
|
|
6648
|
-
workspace: string[];
|
|
6649
|
-
workspaceFolder: string[];
|
|
6650
|
-
memory?: string[];
|
|
6651
|
-
};
|
|
6652
|
-
}
|
|
6653
|
-
interface IConfigurationModel {
|
|
6654
|
-
contents: any;
|
|
6655
|
-
keys: string[];
|
|
6656
|
-
overrides: IOverrides[];
|
|
6657
|
-
}
|
|
6658
|
-
interface IOverrides {
|
|
6659
|
-
keys: string[];
|
|
6660
|
-
contents: any;
|
|
6661
|
-
identifiers: string[];
|
|
6664
|
+
showSnippets?: boolean;
|
|
6662
6665
|
}
|
|
6663
|
-
interface
|
|
6664
|
-
|
|
6665
|
-
user: IConfigurationModel;
|
|
6666
|
-
workspace: IConfigurationModel;
|
|
6667
|
-
folders: [UriComponents, IConfigurationModel][];
|
|
6666
|
+
interface ISmartSelectOptions {
|
|
6667
|
+
selectLeadingAndTrailingWhitespace?: boolean;
|
|
6668
6668
|
}
|
|
6669
6669
|
|
|
6670
6670
|
interface ILanguageSelection {
|
|
@@ -15023,8 +15023,6 @@ interface Workspace {
|
|
|
15023
15023
|
workspaceFolders?: typeof vscode.workspace.workspaceFolders;
|
|
15024
15024
|
updateWorkspaceFolders?: typeof vscode.workspace.updateWorkspaceFolders;
|
|
15025
15025
|
onDidChangeWorkspaceFolders?: typeof vscode.workspace.onDidChangeWorkspaceFolders;
|
|
15026
|
-
getConfiguration?: typeof vscode.workspace.getConfiguration;
|
|
15027
|
-
onDidChangeConfiguration?: vscode.Event<vscode.ConfigurationChangeEvent>;
|
|
15028
15026
|
onWillSaveTextDocument?: vscode.Event<vscode.TextDocumentWillSaveEvent>;
|
|
15029
15027
|
onDidSaveTextDocument?: vscode.Event<vscode.TextDocument>;
|
|
15030
15028
|
createFileSystemWatcher?: typeof vscode.workspace.createFileSystemWatcher;
|
|
@@ -15040,4 +15038,4 @@ declare namespace Services {
|
|
|
15040
15038
|
function install(_services: Services): vscode.Disposable;
|
|
15041
15039
|
}
|
|
15042
15040
|
|
|
15043
|
-
export { IBulkEditService, IClipboardService, ICodeEditorService, ICommandService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ITelemetryService, ITextFileService, ITextModelService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, Window, Workspace };
|
|
15041
|
+
export { IBulkEditService, IClipboardService, ICodeEditorService, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ITelemetryService, ITextFileService, ITextModelService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, Window, Workspace };
|