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

Function resolveWorkspaceInConfig

valdi/vscode_debugger/src/configuration.ts:1057–1070  ·  view source on GitHub ↗
(config: T)

Source from the content-addressed store, hash-verified

1055}
1056
1057export function resolveWorkspaceInConfig<T extends AnyLaunchConfiguration>(config: T): T {
1058 if (!config.__workspaceFolder) {
1059 config = removeOptionalWorkspaceFolderUsages(config);
1060 }
1061
1062 config = resolveVariableInConfig(config, 'workspaceFolder', config.__workspaceFolder);
1063 config = resolveVariableInConfig(
1064 config,
1065 'webRoot',
1066 'webRoot' in config ? (config as AnyChromiumConfiguration).webRoot : config.__workspaceFolder,
1067 );
1068
1069 return config;
1070}
1071
1072export function resolveVariableInConfig<T>(
1073 config: T,

Callers 2

commonResolutionFunction · 0.90
applyDefaultsFunction · 0.85

Calls 2

resolveVariableInConfigFunction · 0.85

Tested by

no test coverage detected