MCPcopy Create free account
hub / github.com/Snapchat/Valdi / applyNodeDefaults

Function applyNodeDefaults

valdi/vscode_debugger/src/configuration.ts:939–950  ·  view source on GitHub ↗
(config: ResolvingNodeConfiguration)

Source from the content-addressed store, hash-verified

937}
938
939export function applyNodeDefaults(config: ResolvingNodeConfiguration): AnyNodeConfiguration {
940 const filled =
941 config.request === 'attach'
942 ? { ...nodeAttachConfigDefaults, ...config }
943 : { ...nodeLaunchConfigDefaults, ...config };
944
945 if (!config.sourceMapPathOverrides && config.cwd) {
946 filled.sourceMapPathOverrides = defaultSourceMapPathOverrides(config.cwd);
947 }
948
949 return filled;
950}
951
952export function applyValdiDefaults(config: ResolvingValdiConfiguration): AnyValdiConfiguration {
953 if (config.request !== 'attach') {

Callers 2

applyDefaultsFunction · 0.85

Calls 1

Tested by

no test coverage detected