diff --git a/package.json b/package.json index df5c889..18d4f41 100644 --- a/package.json +++ b/package.json @@ -272,7 +272,7 @@ "name": "Electron: C++ (Windows)", "type": "cppvsdbg", "request": "launch", - "program": "${command:electron-build-tools.show.exe}", + "program": "${command:electron-build-tools.show.exec}", "args": [], "stopAtEntry": false, "cwd": "${command:electron-build-tools.show.root}\\src", @@ -304,7 +304,7 @@ { "type": "cppdbg", "request": "launch", - "program": "${command:electron-build-tools.show.exe}", + "program": "${command:electron-build-tools.show.exec}", "args": [], "stopAtEntry": false, "cwd": "${command:electron-build-tools.show.root}/src", diff --git a/src/extension.ts b/src/extension.ts index 095999f..fde9da1 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -124,6 +124,12 @@ function registerElectronBuildToolsCommands( }); return stdout.trim(); }), + vscode.commands.registerCommand(`${commandPrefix}.show.exec`, async () => { + const { stdout } = await exec(`${buildToolsExecutable} show exec`, { + encoding: "utf8", + }); + return stdout.trim(); + }), vscode.commands.registerCommand( `${commandPrefix}.show.out.path`, async () => { diff --git a/src/tests.ts b/src/tests.ts index d88017e..c570ee6 100644 --- a/src/tests.ts +++ b/src/tests.ts @@ -407,7 +407,7 @@ async function getElectronTests( await setupSpecRunner(electronRoot.fsPath); const electronExe = await vscode.commands.executeCommand( - `${commandPrefix}.show.exe`, + `${commandPrefix}.show.exec`, ); const scriptName = context.asAbsolutePath("out/electron/listMochaTests.js"); const tsNodeCompiler = context.asAbsolutePath(