Skip to content

Commit

Permalink
feat: Add compile command to handle Compile code lens (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Aug 16, 2023
1 parent 0185ff4 commit c88a397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function getLspCommand(uri: Uri) {

let INTERNAL_COMMANDS = [
{ type: "nargo", command: "test", group: TaskGroup.Test },
{ type: "nargo", command: "compile", group: TaskGroup.Build },
];

function registerCommands(uri: Uri) {
Expand Down Expand Up @@ -181,7 +182,7 @@ function registerCommands(uri: Uri) {
// However, we still want to show the terminal when you run a test
task.presentationOptions = {
reveal: TaskRevealKind.Always,
panel: TaskPanelKind.Dedicated,
panel: TaskPanelKind.New,
clear: true,
};

Expand Down

0 comments on commit c88a397

Please sign in to comment.