From f8087289b95ced3eecbcdfa1f41658aac14011dd Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 15 Oct 2024 17:59:05 -0700 Subject: [PATCH] Update load.ts --- core/config/load.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/config/load.ts b/core/config/load.ts index 433d92cc0..71d7d649e 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -551,7 +551,7 @@ async function promptEsbuildInstallation(ide: IDE): Promise { /** * The download logic is adapted from here: https://esbuild.github.io/getting-started/#download-a-build */ -async function downloadAndInstallEsbuild() { +async function downloadAndInstallEsbuild(ide: IDE) { const esbuildPath = getEsbuildBinaryPath(); const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "esbuild-")); @@ -606,6 +606,11 @@ async function downloadAndInstallEsbuild() { // Clean up fs.unlinkSync(tgzPath); fs.rmSync(tempDir, { recursive: true }); + + await ide.showToast( + "info", + `'esbuild' successfully installed to ${esbuildPath}`, + ); } catch (error) { console.error("Error downloading or saving esbuild binary:", error); throw error;