mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
feat: Add flow to allow modifying edits during edit tool call (#808)
This commit is contained in:
parent
584286cfd9
commit
9efca40dae
14 changed files with 520 additions and 6 deletions
|
|
@ -1440,7 +1440,7 @@ export interface TextBuffer {
|
|||
key: Record<string, boolean>,
|
||||
) => boolean;
|
||||
/**
|
||||
* Opens the current buffer contents in the user’s preferred terminal text
|
||||
* Opens the current buffer contents in the user's preferred terminal text
|
||||
* editor ($VISUAL or $EDITOR, falling back to "vi"). The method blocks
|
||||
* until the editor exits, then reloads the file and replaces the in‑memory
|
||||
* buffer with whatever the user saved.
|
||||
|
|
@ -1451,7 +1451,7 @@ export interface TextBuffer {
|
|||
*
|
||||
* Note: We purposefully rely on the *synchronous* spawn API so that the
|
||||
* calling process genuinely waits for the editor to close before
|
||||
* continuing. This mirrors Git’s behaviour and simplifies downstream
|
||||
* continuing. This mirrors Git's behaviour and simplifies downstream
|
||||
* control‑flow (callers can simply `await` the Promise).
|
||||
*/
|
||||
openInExternalEditor: (opts?: { editor?: string }) => Promise<void>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue