Skip to content

Commit 7bc88a9

Browse files
dont continue if esc is hit
1 parent 646fc7c commit 7bc88a9

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/extension/debugger/configuration/providers/djangoLaunch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function buildDjangoLaunchDebugConfiguration(
4242
if (selectedProgram) {
4343
manuallyEnteredAValue = true;
4444
config.program = selectedProgram;
45+
} else {
46+
return;
4547
}
4648
}
4749

src/extension/debugger/configuration/providers/fastapiLaunch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export async function buildFastAPILaunchDebugConfiguration(
4444
if (selectedPath) {
4545
manuallyEnteredAValue = true;
4646
config.args = [`${path.basename(selectedPath, '.py').replace('/', '.')}:app`, '--reload'];
47+
} else {
48+
return;
4749
}
4850
}
4951

src/extension/debugger/configuration/providers/flaskLaunch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export async function buildFlaskLaunchDebugConfiguration(
4949
if (selectedApp) {
5050
manuallyEnteredAValue = true;
5151
config.env!.FLASK_APP = selectedApp;
52+
} else {
53+
return;
5254
}
5355
}
5456

src/extension/debugger/configuration/providers/moduleLaunch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export async function buildModuleLaunchConfiguration(
3434
if (selectedModule) {
3535
manuallyEnteredAValue = true;
3636
config.module = selectedModule;
37+
} else {
38+
return;
3739
}
3840

3941
sendTelemetryEvent(EventName.DEBUGGER_CONFIGURATION_PROMPTS, undefined, {

src/extension/debugger/configuration/providers/pyramidLaunch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export async function buildPyramidLaunchConfiguration(
4848
if (selectedIniPath) {
4949
manuallyEnteredAValue = true;
5050
config.args = [selectedIniPath];
51+
} else {
52+
return;
5153
}
5254
}
5355

src/extension/debugger/configuration/providers/remoteAttach.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export async function buildRemoteAttachConfiguration(
4949
});
5050
if (!connect.host) {
5151
connect.host = defaultHost;
52+
} else {
53+
return;
5254
}
5355

5456
sendTelemetryEvent(EventName.DEBUGGER_CONFIGURATION_PROMPTS, undefined, {

0 commit comments

Comments
 (0)