Merge pull request #2440 from continuedev/tomasz/improve-navigation

Add chat shortcut to quick picks
This commit is contained in:
Nate Sesti 2024-10-01 21:51:54 -07:00 • committed by GitHub
commit f0a8c50629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -641,6 +641,12 @@ const commandsMap: (
: StatusBarStatus.Disabled;
}
quickPick.items = [
{
label: "$(comment) Open chat (Cmd+L)",
},
{
label: "$(screen-full) Open full screen chat (Cmd+K Cmd+M)",
},
{
label: quickPickStatusText(targetStatus),
},
@ -685,6 +691,13 @@ const commandsMap: (
configHandler.reloadConfig();
} else if (selectedOption === "$(feedback) Give feedback") {
vscode.commands.executeCommand("continue.giveAutocompleteFeedback");
} else if (selectedOption === "$(comment) Open chat (Cmd+L)") {
vscode.commands.executeCommand("continue.focusContinueInput");
} else if (
selectedOption ===
"$(screen-full) Open full screen chat (Cmd+K Cmd+M)"
) {
vscode.commands.executeCommand("continue.toggleFullScreen");
}
quickPick.dispose();
});