expose update in vscode.d.ts, #1396

This commit is contained in:
Johannes Rieken
2016-08-25 15:27:55 +02:00
parent 328c6eb5e0
commit 72157e3b6b
+12 -1
View File
@@ -2641,11 +2641,22 @@ declare namespace vscode {
/**
* Check if this configuration has a certain value.
*
* @param section configuration name, supports _dotted_ names.
* @param section Configuration name, supports _dotted_ names.
* @return `true` iff the section doesn't resolve to `undefined`.
*/
has(section: string): boolean;
/**
* Update a configuration value. A value can be changed for the current
* [workspace](#workspace.rootPath) only or globally for all instances of the
* editor. The updated configuration values are persisted.
*
* @param section Configuration name, supports _dotted_ names.
* @param value The new value.
* @param global When `true` changes the configuration value for all instances of the editor.
*/
update(section: string, value: any, global: boolean): Thenable<void>;
/**
* Readable dictionary that backs this configuration.
* @readonly