Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
15 changes: 9 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,10 @@ export class HardisDebugger {
}

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

private async runSfdxExtensionCommand(command: string) {
Expand Down