Skip to main content

ResolveNLSPlaceholders

Function ResolveNLSPlaceholders 

Source
fn ResolveNLSPlaceholders(Value: &mut Value, NLS: &Map<String, Value>)
Expand description

Recursively walks a JSON Value tree and replaces every string of the form %key% with the corresponding NLS entry. Mirrors VS Code’s replaceNLStrings in src/vs/platform/extensionManagement/common/ extensionNls.ts. Unknown keys are left untouched so UIs at least show the key rather than nothing.