Skip to content

Commit

Permalink
Fix calls to core SF extensions pack that switched from sfdx to sf co…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
nvuillam committed Apr 23, 2024
1 parent 71ca54e commit bf067b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [2.8.0] 2024-23-04

- Fix calls to core SF extensions pack that switched from sfdx to sf commands

## [2.7.1] 2024-10-04

- Do not add --skipauth or --websocket if a launched command contains **&&**
Expand Down
12 changes: 6 additions & 6 deletions src/hardis-debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ export class HardisDebugger {
await this.manageDebugLogsActivation();
}
if (requiresCheckpointUpload === true) {
await this.runSfdxExtensionCommand("sfdx.create.checkpoints");
await this.runSfdxExtensionCommand("sf.create.checkpoints");
}
},
);
this.disposables.push(breakpointsHandler);
}

private async activateDebugger() {
await this.runSfdxExtensionCommand("sfdx.start.apex.debug.logging");
await this.runSfdxExtensionCommand("sf.start.apex.debug.logging");
this.isDebugLogsActive = true;
}

private async deactivateDebugger() {
await this.runSfdxExtensionCommand("sfdx.stop.apex.debug.logging");
await this.runSfdxExtensionCommand("sf.stop.apex.debug.logging");
this.isDebugLogsActive = false;
}

private async toggleCheckpoint() {
await this.runSfdxExtensionCommand("sfdx.toggle.checkpoint");
await this.runSfdxExtensionCommand("sf.toggle.checkpoint");
}

private async manageDebugLogsActivation() {
Expand All @@ -94,7 +94,7 @@ export class HardisDebugger {
}

private async launchDebugger() {
await this.runSfdxExtensionCommand("sfdx.force.apex.log.get");
await this.runSfdxExtensionCommand("sf.apex.log.get");
let launched = false;
// Wait for user to select a log
const listener = vscode.window.onDidChangeActiveTextEditor((textEditor) => {
Expand Down Expand Up @@ -159,7 +159,7 @@ export class HardisDebugger {
}

private debugLogFile(uri: vscode.Uri) {
vscode.commands.executeCommand("sfdx.launch.replay.debugger.logfile", uri);
vscode.commands.executeCommand("sf.launch.replay.debugger.last.logfile", uri);
}

private async runSfdxExtensionCommand(command: string) {
Expand Down

0 comments on commit bf067b3

Please sign in to comment.