getConfiguration
fun getConfiguration(section: String = definedExternally, scope: ConfigurationScope? = definedExternally): WorkspaceConfiguration(source)
Get a workspace configuration object.
When a section-identifier is provided only that part of the configuration is returned. Dots in the section-identifier are interpreted as child-access, like { myExt: { setting: { doIt: true }}}
and getConfiguration('myExt.setting').get('doIt') === true
.
When a scope is provided configuration confined to that scope is returned. Scope can be a resource or a language identifier or both.
Parameters
section
A dot-separated identifier.
scope
A scope for which the configuration is asked for.