@codingame/monaco-vscode-api 1.67.14 → 1.67.17
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 +36 -3
- package/dist/api.js +1279 -97
- package/dist/async-c7fd4178.js +212 -0
- package/dist/configuration.d.ts +292 -0
- package/dist/configuration.js +2178 -0
- package/dist/messages.d.ts +3 -3
- package/dist/messages.js +14 -6
- package/dist/{missing-services-0f9c8f22.js → missing-services-597951f0.js} +357 -31
- package/dist/modelEditor.d.ts +1 -3
- package/dist/modelEditor.js +25 -20
- package/dist/monaco.d.ts +2683 -0
- package/dist/monaco.js +149 -0
- package/dist/position-291dfe99.js +3 -0
- package/dist/{services-621e567e.js → services-9299c4ca.js} +264 -21
- package/dist/services.d.ts +327 -331
- package/dist/services.js +4 -2
- package/dist/tslib.es6-16b40665.js +21 -0
- package/dist/types-371cc315.js +27 -0
- package/package.json +15 -1
- package/dist/async-9ffe4d42.js +0 -46
package/dist/services.d.ts
CHANGED
|
@@ -1227,6 +1227,287 @@ interface INotificationService {
|
|
|
1227
1227
|
setFilter(filter: NotificationsFilter): void;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
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;
|
|
1246
|
+
/**
|
|
1247
|
+
* An event which fires on workbench state changes.
|
|
1248
|
+
*/
|
|
1249
|
+
readonly onDidChangeWorkbenchState: Event<WorkbenchState>;
|
|
1250
|
+
/**
|
|
1251
|
+
* An event which fires on workspace name changes.
|
|
1252
|
+
*/
|
|
1253
|
+
readonly onDidChangeWorkspaceName: Event<void>;
|
|
1254
|
+
/**
|
|
1255
|
+
* An event which fires before workspace folders change.
|
|
1256
|
+
*/
|
|
1257
|
+
readonly onWillChangeWorkspaceFolders: Event<IWorkspaceFoldersWillChangeEvent>;
|
|
1258
|
+
/**
|
|
1259
|
+
* An event which fires on workspace folders change.
|
|
1260
|
+
*/
|
|
1261
|
+
readonly onDidChangeWorkspaceFolders: Event<IWorkspaceFoldersChangeEvent>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Provides access to the complete workspace object.
|
|
1264
|
+
*/
|
|
1265
|
+
getCompleteWorkspace(): Promise<IWorkspace>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Provides access to the workspace object the window is running with.
|
|
1268
|
+
* Use `getCompleteWorkspace` to get complete workspace object.
|
|
1269
|
+
*/
|
|
1270
|
+
getWorkspace(): IWorkspace;
|
|
1271
|
+
/**
|
|
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
|
|
1277
|
+
*/
|
|
1278
|
+
getWorkbenchState(): WorkbenchState;
|
|
1279
|
+
/**
|
|
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.
|
|
1282
|
+
*/
|
|
1283
|
+
getWorkspaceFolder(resource: URI): IWorkspaceFolder | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Return `true` if the current workspace has the given identifier or root URI otherwise `false`.
|
|
1286
|
+
*/
|
|
1287
|
+
isCurrentWorkspace(workspaceIdOrFolder: IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | URI): boolean;
|
|
1288
|
+
/**
|
|
1289
|
+
* Returns if the provided resource is inside the workspace or not.
|
|
1290
|
+
*/
|
|
1291
|
+
isInsideWorkspace(resource: URI): boolean;
|
|
1292
|
+
}
|
|
1293
|
+
interface IBaseWorkspaceIdentifier {
|
|
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
|
|
1298
|
+
*/
|
|
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 {
|
|
1305
|
+
/**
|
|
1306
|
+
* Folder path as `URI`.
|
|
1307
|
+
*/
|
|
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 {
|
|
1314
|
+
/**
|
|
1315
|
+
* Workspace config file path as `URI`.
|
|
1316
|
+
*/
|
|
1317
|
+
configPath: URI;
|
|
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 {
|
|
1338
|
+
/**
|
|
1339
|
+
* the unique identifier of the workspace.
|
|
1340
|
+
*/
|
|
1341
|
+
readonly id: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* Folders in the workspace.
|
|
1344
|
+
*/
|
|
1345
|
+
readonly folders: IWorkspaceFolder[];
|
|
1346
|
+
/**
|
|
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.
|
|
1350
|
+
*/
|
|
1351
|
+
readonly transient?: boolean;
|
|
1352
|
+
/**
|
|
1353
|
+
* the location of the workspace configuration
|
|
1354
|
+
*/
|
|
1355
|
+
readonly configuration?: URI | null;
|
|
1356
|
+
}
|
|
1357
|
+
interface IWorkspaceFolderData {
|
|
1358
|
+
/**
|
|
1359
|
+
* The associated URI for this workspace folder.
|
|
1360
|
+
*/
|
|
1361
|
+
readonly uri: URI;
|
|
1362
|
+
/**
|
|
1363
|
+
* The name of this workspace folder. Defaults to
|
|
1364
|
+
* the basename of its [uri-path](#Uri.path)
|
|
1365
|
+
*/
|
|
1366
|
+
readonly name: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* The ordinal number of this workspace folder.
|
|
1369
|
+
*/
|
|
1370
|
+
readonly index: number;
|
|
1371
|
+
}
|
|
1372
|
+
interface IWorkspaceFolder extends IWorkspaceFolderData {
|
|
1373
|
+
/**
|
|
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
|
+
|
|
1230
1511
|
declare class RGBA {
|
|
1231
1512
|
_rgbaBrand: void;
|
|
1232
1513
|
/**
|
|
@@ -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 {
|
|
@@ -8402,9 +8402,7 @@ interface ILanguageFeaturesService {
|
|
|
8402
8402
|
setNotebookTypeResolver(resolver: NotebooTypeResolver | undefined): void;
|
|
8403
8403
|
}
|
|
8404
8404
|
|
|
8405
|
-
|
|
8406
|
-
[index: string]: any;
|
|
8407
|
-
}
|
|
8405
|
+
type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
|
|
8408
8406
|
/**
|
|
8409
8407
|
* We don't want to eagerly instantiate services because embedders get a one time chance
|
|
8410
8408
|
* to override services when they create the first editor.
|
|
@@ -15023,8 +15021,6 @@ interface Workspace {
|
|
|
15023
15021
|
workspaceFolders?: typeof vscode.workspace.workspaceFolders;
|
|
15024
15022
|
updateWorkspaceFolders?: typeof vscode.workspace.updateWorkspaceFolders;
|
|
15025
15023
|
onDidChangeWorkspaceFolders?: typeof vscode.workspace.onDidChangeWorkspaceFolders;
|
|
15026
|
-
getConfiguration?: typeof vscode.workspace.getConfiguration;
|
|
15027
|
-
onDidChangeConfiguration?: vscode.Event<vscode.ConfigurationChangeEvent>;
|
|
15028
15024
|
onWillSaveTextDocument?: vscode.Event<vscode.TextDocumentWillSaveEvent>;
|
|
15029
15025
|
onDidSaveTextDocument?: vscode.Event<vscode.TextDocument>;
|
|
15030
15026
|
createFileSystemWatcher?: typeof vscode.workspace.createFileSystemWatcher;
|
|
@@ -15040,4 +15036,4 @@ declare namespace Services {
|
|
|
15040
15036
|
function install(_services: Services): vscode.Disposable;
|
|
15041
15037
|
}
|
|
15042
15038
|
|
|
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 };
|
|
15039
|
+
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 };
|