first cut of WorkspaceConfiguration#inspect

This commit is contained in:
Johannes Rieken
2016-11-07 10:07:43 +01:00
parent 697c06f216
commit b95c77c34c
2 changed files with 26 additions and 0 deletions

View File

@@ -60,6 +60,17 @@ export class ExtHostConfiguration extends ExtHostConfigurationShape {
} else {
return this._proxy.$removeConfigurationOption(target, key);
}
},
inspect(key: string) {
let result = ExtHostConfiguration._lookUp(key, <WorkspaceConfigurationNode>config);
if (isConfigurationValue(result)) {
return {
key: section ? `${section}.${key}` : key,
defaultValue: result.default,
globalValue: result.user,
workspaceValue: result.workspace
};
}
}
};