MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / caseNormalizeConfigProps

Function caseNormalizeConfigProps

Extension/src/SSH/sshHosts.ts:226–240  ·  view source on GitHub ↗
(config: Configuration)

Source from the content-addressed store, hash-verified

224 ['localforward', 'LocalForward']
225]);
226function caseNormalizeConfigProps(config: Configuration): Configuration {
227 const caseNormalizeDirective: (entry: { param: string }) => void =
228 (entry: { param: string }) => entry.param = CASE_NORMALIZED_PROPS.get(entry.param.toLowerCase()) || entry.param;
229
230 config.filter(isDirective).forEach(entry => {
231 caseNormalizeDirective(entry);
232
233 // Only two levels deep
234 if (isHostDirective(entry)) {
235 entry.config.filter(isDirective).forEach(caseNormalizeDirective);
236 }
237 });
238
239 return config;
240}
241
242function extractHosts(parsedConfig: Configuration): string[] {
243 const hosts: Set<string> = new Set<string>();

Callers 1

getSshConfigurationFunction · 0.85

Calls 4

caseNormalizeDirectiveFunction · 0.85
isHostDirectiveFunction · 0.85
forEachMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected