[Fix]: P2E base path is always the project directory, P2E when completed stays in your current file (#7091)
* fix: fixes for p2e * fix: yep tsc fixes * fix: fixing reject workflow and navigate
This commit is contained in:
@ -415,6 +415,7 @@ export async function promptToEditFlow({
|
||||
token,
|
||||
artifactGraph,
|
||||
projectName,
|
||||
filePath,
|
||||
}: {
|
||||
prompt: string
|
||||
selections: Selections
|
||||
@ -422,6 +423,7 @@ export async function promptToEditFlow({
|
||||
token?: string
|
||||
artifactGraph: ArtifactGraph
|
||||
projectName: string
|
||||
filePath: string | undefined
|
||||
}) {
|
||||
const result = await doPromptEdit({
|
||||
prompt,
|
||||
@ -498,6 +500,7 @@ export async function promptToEditFlow({
|
||||
await writeOverFilesAndExecute({
|
||||
requestedFiles,
|
||||
projectName,
|
||||
filePath,
|
||||
})
|
||||
} else {
|
||||
const newCode = result.outputs['main.kcl']
|
||||
|
Reference in New Issue
Block a user