Skip to content

Commit 29b0b06

Browse files
authored
Fix debug configuration selection cancellation. (#7763)
1 parent 2a9afe8 commit 29b0b06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Extension/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
### Bug Fixes
2121
* Fix code folding causing `} else if` lines to be hidden. [#5521](https://github.com/microsoft/vscode-cpptools/issues/5521)
22+
* Fix empty `launch.json` being created when debug configuration selection is canceled. [#7517](https://github.com/microsoft/vscode-cpptools/issues/7517)
2223
* Fix Find All References on a global variable giving incorrect references to local variables. [#7702](https://github.com/microsoft/vscode-cpptools/issues/7702)
2324
* Fix `vcFormat` not working near the end of the file with UTF-8 characters > 1 byte. [#7704](https://github.com/microsoft/vscode-cpptools/issues/7704)
2425
* Fix configuration squiggle on a recursively resolved `forcedInclude`. [PR #7722](https://github.com/microsoft/vscode-cpptools/pull/7722)

Extension/src/Debugger/configurationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class QuickPickConfigurationProvider implements vscode.DebugConfiguration
7171

7272
const selection: MenuItem | undefined = await vscode.window.showQuickPick(items, {placeHolder: localize("select.configuration", "Select a configuration")});
7373
if (!selection) {
74-
return []; // User canceled it.
74+
throw Error(localize("debug.configuration.selection.canceled", "Debug configuration selection canceled")); // User canceled it.
7575
}
7676
if (selection.label.startsWith("cl.exe")) {
7777
if (!process.env.DevEnvDir) {

0 commit comments

Comments
 (0)