feat: focus on chat input after apply

This commit is contained in:
uinstinct 2025-08-25 21:02:37 +05:30
parent f5a880252d
commit c7cfc717a1
2 changed files with 11 additions and 1 deletions

View file

@ -335,6 +335,7 @@ class DiffStreamHandler(
private fun setClosed() {
sendUpdate(ApplyStateStatus.CLOSED)
project.service<ContinuePluginService>().sendToWebview("focusContinueInputWithoutClear", Nil)
resetState()
}
}

View file

@ -141,7 +141,16 @@ export class VerticalDiffManager {
this.disableDocumentChangeListener();
vscode.commands.executeCommand("setContext", "continue.diffVisible", false);
void vscode.commands.executeCommand(
"setContext",
"continue.diffVisible",
false,
);
void this.webviewProtocol.request(
"focusContinueInputWithoutClear",
undefined,
);
}
async acceptRejectVerticalDiffBlock(