From 8b2ad883e4ff4b86b158636c17a5188449646709 Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Thu, 6 Jan 2022 21:13:38 -0500 Subject: [PATCH] Add save file warning for detailed ram usage --- src/Terminal/commands/mem.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Terminal/commands/mem.ts b/src/Terminal/commands/mem.ts index 0a12230a9..3d60772c0 100644 --- a/src/Terminal/commands/mem.ts +++ b/src/Terminal/commands/mem.ts @@ -43,6 +43,11 @@ export function mem( for (const entry of verboseEntries) { terminal.print(`${numeralWrapper.formatRAM(entry.cost * numThreads).padStart(8)} | ${entry.name} (${entry.type})`); } + + if (ramUsage > 0 && verboseEntries.length === 0) { + // Let's warn the user that he might need to save his script again to generate the detailed entries + terminal.warn('You might have to open & save this script to see the detailed RAM usage information.'); + } } catch (e) { terminal.error(e + ""); }