Skip to content

Commit

Permalink
Make the preLaunchTask optional in launch configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Jul 26, 2024
1 parent 3e61d84 commit 07ab8b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {
if (config.request === undefined) {
config.request = "launch";
}
if (config.preLaunchTask === undefined) {
config.preLaunchTask = "SuperBOL: build (debug)";
}
if (config.preLaunchTask === undefined) {
config.preLaunchTask = "SuperBOL: build (debug)";
} else if (config.preLaunchTask === "none" ||
config.preLaunchTask === "") {
delete config.preLaunchTask;
}
if (config.target === undefined) {
config.target = "${file}";
}
Expand Down

0 comments on commit 07ab8b4

Please sign in to comment.