Skip to content

Commit 6e41ef5

Browse files
committed
Merge pull request #1382 from microsoft/fix/config-provider-types
fix: dynamic debug configs sometimes having the wrong type
1 parent 88b15b6 commit 6e41ef5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui/configuration/baseConfigurationProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export abstract class BaseConfigurationProvider<T extends AnyLaunchConfiguration
4444
const preferredType = preferredDebugTypes.get(this.type);
4545
if (preferredType) {
4646
for (const config of configs) {
47-
config.type = preferredType as T['type'];
47+
if (config.type === this.type) {
48+
config.type = preferredType as T['type'];
49+
}
4850
}
4951
}
5052

0 commit comments

Comments
 (0)