From 776af27f3628a0bea33dfbe4b6c29a1ae21b2036 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Tue, 23 Apr 2024 09:48:45 +0200 Subject: [PATCH] Fix calls to core SF extensions pack that switched from sfdx to sf commands --- CHANGELOG.md | 4 ++++ src/hardis-debugger.ts | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c3ff55..df002ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 **&&** diff --git a/src/hardis-debugger.ts b/src/hardis-debugger.ts index 0b7ca46..0cab6ec 100644 --- a/src/hardis-debugger.ts +++ b/src/hardis-debugger.ts @@ -65,7 +65,7 @@ export class HardisDebugger { await this.manageDebugLogsActivation(); } if (requiresCheckpointUpload === true) { - await this.runSfdxExtensionCommand("sfdx.create.checkpoints"); + await this.runSfdxExtensionCommand("sf.create.checkpoints"); } }, ); @@ -73,17 +73,17 @@ export class HardisDebugger { } 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() { @@ -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) => { @@ -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.apex.replay.debugger.with.current.file", uri); } private async runSfdxExtensionCommand(command: string) {