Skip to content

Commit 6cd6188

Browse files
GordonSmithCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3b6372a commit 6cd6188

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ export function activate(context: vscode.ExtensionContext) {
457457
try {
458458
await vscode.commands.executeCommand("vscode.open", saveUri);
459459
} catch {
460-
// As a fallback just leave it saved and inform the user; they can use Open With... Hex Editor
460+
} catch (openError) {
461+
vscode.window.showWarningMessage(
462+
`Core wasm was extracted and saved to ${saveUri.fsPath}, but could not be opened automatically. You can open it manually (e.g., with "Open With... Hex Editor").`
463+
);
461464
}
462465
} catch (error) {
463466
console.error("extractCoreWasm failed:", error);

0 commit comments

Comments
 (0)