(config: T)
| 1055 | } |
| 1056 | |
| 1057 | export 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 | |
| 1072 | export function resolveVariableInConfig<T>( |
| 1073 | config: T, |
no test coverage detected