Skip to content

Commit

Permalink
Start debug session when receiving nargo.debug.dap command
Browse files Browse the repository at this point in the history
  • Loading branch information
anaPerezGhiglia committed Jul 10, 2024
1 parent 5799664 commit cc25217
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ function registerCommands(uri: Uri) {
editorLineDecorationManager.hideDecorations();
});
commands$.push(hideProfileInformationCommand$);
const debugCommand$ = commands.registerCommand('nargo.debug.dap', async (..._args) => {
return commands.executeCommand('workbench.action.debug.start');
});
commands$.push(debugCommand$);

const selectNargoPathCommand$ = commands.registerCommand('nargo.config.path.select', async (..._args) => {
const homeDir = os.homedir();
Expand Down

0 comments on commit cc25217

Please sign in to comment.