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

Function applyValdiDefaults

valdi/vscode_debugger/src/configuration.ts:952–963  ·  view source on GitHub ↗
(config: ResolvingValdiConfiguration)

Source from the content-addressed store, hash-verified

950}
951
952export function applyValdiDefaults(config: ResolvingValdiConfiguration): AnyValdiConfiguration {
953 if (config.request !== 'attach') {
954 throw new Error('Valdi targets only support \'attach\'');
955 }
956 const filled = { ...valdiAttachConfigDefaults, ...config };
957
958 if (!config.sourceMapPathOverrides && config.cwd) {
959 filled.sourceMapPathOverrides = defaultSourceMapPathOverrides(config.cwd);
960 }
961
962 return filled;
963}
964
965export function applyChromeDefaults(config: ResolvingChromeConfiguration): AnyChromeConfiguration {
966 return config.request === 'attach'

Callers 2

applyDefaultsFunction · 0.85

Calls 1

Tested by

no test coverage detected