Skip to content

Commit

Permalink
Fix default config resolver
Browse files Browse the repository at this point in the history
This aligns the code of
`extension.GdbConfigurationProvider.resolveDebugConfiguration` with
`extension.GdbConfigurationProvider.provideDebugConfigurations`, so
that the debugger can be launched directly in workspaces that lack a
`launch.json`.
  • Loading branch information
nberth committed Apr 8, 2024
1 parent 8bce5ed commit dd2a466
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {
if (config.request === undefined) {
config.request = "launch";
}
if (config.preLaunchTask === undefined) {
config.preLaunchTask = "SuperBOL: build (debug)";
}
if (config.target === undefined) {
config.target = "${file}";
}
Expand Down

0 comments on commit dd2a466

Please sign in to comment.