(config: ResolvingNodeConfiguration)
| 937 | } |
| 938 | |
| 939 | export 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 | |
| 952 | export function applyValdiDefaults(config: ResolvingValdiConfiguration): AnyValdiConfiguration { |
| 953 | if (config.request !== 'attach') { |
no test coverage detected