Skip to content

Commit 378bfd7

Browse files
authored
Respect 'type' or 'config.type' for debug config resolver (microsoft#172553)
Fix microsoft#172550
1 parent e72968a commit 378bfd7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@ export class ConfigurationManager implements IConfigurationManager {
133133
return config;
134134
};
135135

136+
let resolvedType = config.type ?? type;
136137
let result: IConfig | null | undefined = config;
137-
for (let seen = new Set(); result && !seen.has(result.type);) {
138-
seen.add(result?.type);
139-
result = await resolveDebugConfigurationForType(result.type, result);
138+
for (let seen = new Set(); result && !seen.has(resolvedType);) {
139+
seen.add(resolvedType);
140+
result = await resolveDebugConfigurationForType(resolvedType, result);
140141
result = await resolveDebugConfigurationForType('*', result);
142+
resolvedType = result?.type ?? type!;
141143
}
142144

143145
return result;

0 commit comments

Comments
 (0)