Skip to content

Commit 9a9df99

Browse files
committed
Removed some notifications when installing the required files
1 parent dfcd1af commit 9a9df99

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

extension.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -192,46 +192,41 @@ async function setupEnvironment(isManualSetup = false) {
192192
// Download missing tools
193193
let downloadSuccess = true;
194194

195+
// Show a single notification for all downloads
196+
vscode.window.showInformationMessage('Downloading required files...');
197+
195198
if (!gccExists) {
196-
vscode.window.showInformationMessage('Downloading GCC for PlayStation 1...');
197199
const success = await downloadAndExtractTool('gcc');
198200
if (success) {
199201
config.tools.gcc.installed = true;
200-
vscode.window.showInformationMessage('GCC for PlayStation 1 downloaded successfully!');
201202
} else {
202203
downloadSuccess = false;
203204
}
204205
}
205206

206207
if (!ps1SdkExists && downloadSuccess) {
207-
vscode.window.showInformationMessage('Downloading PSn00bSDK for PlayStation 1...');
208208
const success = await downloadAndExtractTool('psn00b_sdk');
209209
if (success) {
210210
config.tools.ps1sdk.installed = true;
211-
vscode.window.showInformationMessage('PSn00bSDK for PlayStation 1 downloaded successfully!');
212211
} else {
213212
downloadSuccess = false;
214213
}
215214
}
216215

217216
if (!emulatorExists && downloadSuccess) {
218-
vscode.window.showInformationMessage('Downloading PlayStation 1 emulator...');
219217
const success = await downloadAndExtractTool('emulator');
220218
if (success) {
221219
config.tools.emulator.installed = true;
222-
vscode.window.showInformationMessage('PlayStation 1 emulator downloaded successfully!');
223220
} else {
224221
// Emulator is optional, so don't fail if it can't be downloaded
225222
vscode.window.showWarningMessage('Failed to download PlayStation 1 emulator, but it is optional.');
226223
}
227224
}
228225

229226
if (!gdbExists && downloadSuccess) {
230-
vscode.window.showInformationMessage('Downloading GDB Multiarch debugger...');
231227
const success = await downloadAndExtractTool('gdb_multiarch_win');
232228
if (success) {
233229
config.tools.gdb = { installed: true };
234-
vscode.window.showInformationMessage('GDB Multiarch debugger downloaded successfully!');
235230
} else {
236231
// GDB is optional for basic usage, so don't fail if it can't be downloaded
237232
vscode.window.showWarningMessage('Failed to download GDB Multiarch debugger, but it is optional for basic usage.');
@@ -523,12 +518,9 @@ async function downloadAndExtractTool(toolName) {
523518
}
524519

525520
// Download the tool
526-
vscode.window.showInformationMessage(`Downloading ${toolName}...`);
527521
const response = await axios.get(url, { responseType: 'arraybuffer' });
528522

529523
// Extract the tool
530-
vscode.window.showInformationMessage(`Extracting ${toolName}...`);
531-
532524
// Check if the file is a DMG (macOS disk image)
533525
if (url.endsWith('.dmg')) {
534526
// Save the DMG file
@@ -647,10 +639,8 @@ async function downloadAndExtractTool(toolName) {
647639
});
648640
}
649641

650-
vscode.window.showInformationMessage(`${toolName} installed successfully.`);
651642
return true;
652643
} catch (error) {
653-
vscode.window.showErrorMessage(`Failed to download and extract ${toolName}: ${error.message}`);
654644
console.error(error);
655645
return false;
656646
}

templates/hello-world/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CFLAGS = -Wa,--strip-local-absolute \
4242
-mgpopt \
4343
-mno-extern-sdata \
4444
-msoft-float \
45-
-O3
45+
-g
4646

4747
# C++ compiler flags
4848
CPPFLAGS = $(CFLAGS) -fno-exceptions \

0 commit comments

Comments
 (0)