exit edit mode on cmd+shift+enter

This commit is contained in:
Nate 2025-01-10 22:41:31 -08:00
parent e494122d2f
commit 97a3d26bb5

View file

@ -268,6 +268,10 @@ async function processDiff(
numDiffs: 0,
});
}
if (action === "accept") {
await sidebar.webviewProtocol.request("exitEditMode", undefined);
}
}
function waitForSidebarReady(
@ -742,8 +746,8 @@ const getCommandsMap: (
return;
}
// Clear the sidebar to prevent overwriting changes made in fullscreen
vscode.commands.executeCommand("continue.newSession")
// Clear the sidebar to prevent overwriting changes made in fullscreen
vscode.commands.executeCommand("continue.newSession");
// Full screen not open - open it
captureCommandTelemetry("openFullScreen");
@ -777,7 +781,7 @@ const getCommandsMap: (
sessionId,
);
}
sessionLoader.dispose()
sessionLoader.dispose();
});
// When panel closes, reset the webview and focus