second new prompt file
This commit is contained in:
parent
d2fa937d3b
commit
ed284d3a39
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue