Skip to content

Commit 51b939c

Browse files
Update consoleName before sent it to debugpy
1 parent a85a623 commit 51b939c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/extension/debugger/configuration/resolvers/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export abstract class BaseConfigurationResolver<T extends DebugConfiguration>
4141
if (debugConfiguration.clientOS === undefined) {
4242
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
4343
}
44+
if (debugConfiguration.consoleName) {
45+
debugConfiguration.consoleTitle = debugConfiguration.consoleName;
46+
delete debugConfiguration.consoleName;
47+
}
4448
return debugConfiguration as T;
4549
}
4650

src/extension/debugger/configuration/resolvers/launch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
3939
if (debugConfiguration.clientOS === undefined) {
4040
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
4141
}
42+
if (debugConfiguration.consoleName) {
43+
debugConfiguration.consoleTitle = debugConfiguration.consoleName;
44+
delete debugConfiguration.consoleName;
45+
}
4246
return debugConfiguration;
4347
}
4448

0 commit comments

Comments
 (0)