Readable dictionary that backs this configuration.
Return a value from this configuration.
Configuration name, supports dotted names.
The value section denotes or undefined.
Check if this configuration has a certain value.
Configuration name, supports dotted names.
true if the section doesn't resolve to undefined.
Retrieve all information about a configuration setting. A configuration value often consists of a default value, a global or installation-wide value, a workspace-specific value, folder-specific value and language-specific values (if WorkspaceConfiguration is scoped to a language).
Also provides all language ids under which the given configuration setting is defined.
Note: The configuration name must denote a leaf in the configuration tree
(editor.fontSize vs editor) otherwise no result is returned.
Configuration name, supports dotted names.
Information about a configuration setting or undefined.
OptionaldefaultLanguageValue?: TLanguage specific default value when this configuration value is created for a language scope.
OptionaldefaultValue?: TThe default value which is used when no other value is defined
OptionalglobalLanguageValue?: TLanguage specific global value when this configuration value is created for a language scope.
OptionalglobalValue?: TThe global or installation-wide value.
The fully qualified key of the configuration value
OptionallanguageIds?: string[]All language identifiers for which this configuration is defined.
OptionalworkspaceFolderLanguageValue?: TLanguage specific workspace-folder value when this configuration value is created for a language scope.
OptionalworkspaceFolderValue?: TThe workspace-folder-specific value.
OptionalworkspaceLanguageValue?: TLanguage specific workspace value when this configuration value is created for a language scope.
OptionalworkspaceValue?: TThe workspace-specific value.
Update a configuration value. The updated configuration values are persisted.
A value can be changed in
Note: To remove a configuration value use undefined, like so: config.update('somekey', undefined)
Configuration name, supports dotted names.
The new value.
OptionalconfigurationTarget: boolean | ConfigurationTarget | nullThe configuration target or a boolean value.
- If true updates Global settings.
- If false updates Workspace settings.
- If undefined or null updates to Workspace folder settings if configuration is resource specific,
otherwise to Workspace settings.
OptionaloverrideInLanguage: booleanWhether to update the value in the scope of requested languageId or not.
- If true updates the value under the requested languageId.
- If undefined updates the value under the requested languageId only if the configuration is defined for the language.
error while updating - configuration which is not registered. - window configuration to workspace folder - configuration to workspace or workspace folder when no workspace is opened. - configuration to workspace folder when there is no workspace folder settings. - configuration to workspace folder when WorkspaceConfiguration is not scoped to a resource.
Represents the configuration. It is a merged view of
The effective value (returned by
get) is computed by overriding or merging the values in the following order:defaultValue(if defined inpackage.jsonotherwise derived from the value's type)globalValue(if defined)workspaceValue(if defined)workspaceFolderValue(if defined)defaultLanguageValue(if defined)globalLanguageValue(if defined)workspaceLanguageValue(if defined)workspaceFolderLanguageValue(if defined)Note: Only
objectvalue types are merged and all other value types are overridden.Example 1: Overriding
Example 2: Language Values
Example 3: Object Values
Note: Workspace and Workspace Folder configurations contains
launchandtaskssettings. Their basename will be part of the section identifier. The following snippets shows how to retrieve all configurations fromlaunch.json:Refer to Settings for more information.