second new prompt file

This commit is contained in:
Nate 2024-11-12 09:11:11 -08:00
parent d2fa937d3b
commit ed284d3a39

View file

@ -66,11 +66,14 @@ export async function createNewPromptFileV2(
counter++;
} while (await ide.fileExists(promptFilePath));
const globalContext = new GlobalContext();
const PROMPT_FILE =
new GlobalContext().get("hasAlreadyCreatedAPromptFile") === true
globalContext.get("hasAlreadyCreatedAPromptFile") === true
? DEFAULT_PROMPT_FILE
: FIRST_TIME_DEFAULT_PROMPT_FILE;
globalContext.update("hasAlreadyCreatedAPromptFile", true);
await ide.writeFile(promptFilePath, PROMPT_FILE);
await ide.openFile(promptFilePath);
}