MCPcopy
hub / github.com/microsoft/vscode-js-debug / applyEdgeDefaults

Function applyEdgeDefaults

src/configuration.ts:1094–1101  ·  view source on GitHub ↗
(
  config: ResolvingEdgeConfiguration,
  browserLocation: 'workspace' | 'ui',
)

Source from the content-addressed store, hash-verified

1092}
1093
1094export function applyEdgeDefaults(
1095 config: ResolvingEdgeConfiguration,
1096 browserLocation: 'workspace' | 'ui',
1097): AnyEdgeConfiguration {
1098 return config.request === 'attach'
1099 ? { ...edgeAttachConfigDefaults, browserAttachLocation: browserLocation, ...config }
1100 : { ...edgeLaunchConfigDefaults, browserLaunchLocation: browserLocation, ...config };
1101}
1102
1103export function applyEditorBrowserDefaults(
1104 config: ResolvingEditorBrowserConfiguration,

Callers 1

applyDefaultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected