Skip to content

Commit a2733c4

Browse files
committed
Add better licensing for rust projects + name validation + remove debugger selection
Signed-off-by: paulober <[email protected]>
1 parent 9d75c80 commit a2733c4

File tree

5 files changed

+398
-74
lines changed

5 files changed

+398
-74
lines changed

src/commands/compileProject.mts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ export default class CompileProjectCommand extends CommandWithResult<boolean> {
1616
}
1717

1818
async execute(): Promise<boolean> {
19+
const isRustProject = State.getInstance().isRustProject;
20+
1921
// Get the task with the specified name
2022
const task = (await tasks.fetchTasks()).find(
21-
task => task.name === "Compile Project"
23+
task =>
24+
task.name ===
25+
(isRustProject ? "Build + Generate SBOM (release)" : "Compile Project")
2226
);
23-
/*const isRustProject = await commands.executeCommand(
24-
"getContext",
25-
ContextKeys.isRustProject
26-
);*/
27-
const isRustProject = State.getInstance().isRustProject;
2827

2928
const settings = Settings.getInstance();
3029
if (

0 commit comments

Comments
 (0)