In my extension I group settings like:
focus.behavior.folders
focus.behavior.folders.external
focus.behavior.folders.explore
Where:
folders → default folder behavior
folders.external → behavior for external folders
folders.explore → behavior for explored folders
This works correctly in settings.json IntelliSense, but in Settings UI and runtime extended entries reads as undefined instead of the configured default value.
Reproduction
"contributes": {
"configuration": [
{
"title": "Repro",
"properties": {
"repro.test": {
"type": "string",
"enum": ["a", "b"],
"default": "b",
"description": "Works correctly"
},
"repro.test.extra": {
"type": "string",
"enum": ["a", "b"],
"default": "b",
"description": "Works in settings.json IntelliSense but shows undefined in UI"
}
}
}
]
}
Works in settings.json:
Issue in Settings UI:
Repo:
git clone https://github.com/n-gist/vscode.settings-ui-undefined-repro.git
Expected
Settings UI should display the correct default value.
In my extension I group settings like:
focus.behavior.foldersfocus.behavior.folders.externalfocus.behavior.folders.exploreWhere:
folders→ default folder behaviorfolders.external→ behavior for external foldersfolders.explore→ behavior for explored foldersThis works correctly in
settings.jsonIntelliSense, but in Settings UI and runtime extended entries reads asundefinedinstead of the configured default value.Reproduction
Works in
settings.json:Issue in Settings UI:
Repo:
Expected
Settings UI should display the correct default value.