patch, don't delete non-active steps with cmd+back

This commit is contained in:
Nate Sesti 2023-07-12 09:42:25 -07:00
parent 5593c72720
commit 856d450c72
3 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.0.152",
"version": "0.0.153",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.0.152",
"version": "0.0.153",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
"version": "0.0.152",
"version": "0.0.153",
"publisher": "Continue",
"engines": {
"vscode": "^1.67.0"

View file

@ -147,7 +147,8 @@ function GUI(props: GUIProps) {
} else if (
e.key === "Backspace" &&
e.metaKey &&
typeof history?.current_index !== "undefined"
typeof history?.current_index !== "undefined" &&
history.timeline[history.current_index]?.active
) {
client?.deleteAtIndex(history.current_index);
}