-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the FixUp retry instruction text #1615
Changes from 5 commits
0219c64
29b68d0
c7556cd
13dd974
5abe2b9
4eef256
c18a76a
c4ccbb3
c82d218
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,8 @@ export class FixupController | |
source?: ChatEventSource | ||
): FixupTask { | ||
const fixupFile = this.files.forUri(documentUri) | ||
const task = new FixupTask(fixupFile, instruction, selectionRange, insertMode, source) | ||
const fixupInstruction = instruction.replace(/^\/edit/, '').trim() | ||
const task = new FixupTask(fixupFile, fixupInstruction, selectionRange, insertMode, source) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @deepak2431 Can we do this in the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @umpox Yeah, that will be even better. Let me make those changes. |
||
this.tasks.set(task.id, task) | ||
this.setTaskState(task, CodyTaskState.working) | ||
return task | ||
|
@@ -881,7 +882,7 @@ export class FixupController | |
const document = await vscode.workspace.openTextDocument(task.fixupFile.uri) | ||
|
||
// Prompt the user for a new instruction, and create a new fixup | ||
const instruction = (await this.typingUI.getInstructionFromQuickPick({ value: previousInstruction })).trim() | ||
const instruction = await this.typingUI.getInstructionFromQuickPick({ value: previousInstruction }) | ||
|
||
// Revert and remove the previous task | ||
await this.undoTask(task) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still showing up in the old version 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it now. My bad 😅