1211
1212
export function fromWithOsConfig(this: void, external: IConfigurationProperties & { [key: string]: unknown }, context: IParseContext): TaskConfigurationValueWithErrors<ProblemMatcher[]> {
1214
>
const osExternal = external as unknown as { windows?: { problemMatcher?: ProblemMatcherConfig.ProblemMatcherType }; osx?: { problemMatcher?: ProblemMatcherConfig.ProblemMatcherType }; linux?: { problemMatcher?: ProblemMatcherConfig.ProblemMatcherType } };
1215
>
if (osExternal.windows?.problemMatcher && context.platform === Platform.Windows) {
1216
result = from(osExternal.windows.problemMatcher, context);
1217
>
} else if (osExternal.osx?.problemMatcher && context.platform === Platform.Mac) {
taskConfiguration.ts
1218
result = from(osExternal.osx.problemMatcher, context);
1219
>
} else if (osExternal.linux?.problemMatcher && context.platform === Platform.Linux) {
taskConfiguration.ts
1220
result = from(osExternal.linux.problemMatcher, context);
1222
result = from(external.problemMatcher, context);
1223
}
1225
>
}
1226
1227
export function from(this: void, config: ProblemMatcherConfig.ProblemMatcherType | undefined, context: IParseContext): TaskConfigurationValueWithErrors<ProblemMatcher[]> {