Merge branch 'main' into package-python [skip ci]
This commit is contained in:
commit
01ea5e221d
3 changed files with 34 additions and 0 deletions
|
|
@ -111,6 +111,16 @@
|
|||
"command": "continue.viewLogs",
|
||||
"category": "Continue",
|
||||
"title": "View Logs"
|
||||
},
|
||||
{
|
||||
"command": "continue.toggleAuxiliaryBar",
|
||||
"category": "Continue",
|
||||
"title": "Toggle Auxiliary Bar"
|
||||
},
|
||||
{
|
||||
"command": "continue.focusContinueInputWithEdit",
|
||||
"category": "Continue",
|
||||
"title": "Focus Continue Input With Edit"
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
|
|
@ -119,6 +129,11 @@
|
|||
"mac": "cmd+m",
|
||||
"key": "ctrl+m"
|
||||
},
|
||||
{
|
||||
"command": "continue.focusContinueInputWithEdit",
|
||||
"mac": "cmd+shift+m",
|
||||
"key": "ctrl+shift+m"
|
||||
},
|
||||
{
|
||||
"command": "continue.suggestionDown",
|
||||
"mac": "shift+ctrl+down",
|
||||
|
|
@ -148,6 +163,11 @@
|
|||
"command": "continue.quickTextEntry",
|
||||
"mac": "cmd+shift+l",
|
||||
"key": "ctrl+shift+l"
|
||||
},
|
||||
{
|
||||
"command": "continue.toggleAuxiliaryBar",
|
||||
"mac": "alt+cmd+m",
|
||||
"key": "alt+ctrl+m"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
|
|
|
|||
|
|
@ -255,6 +255,10 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
const handler = (event: any) => {
|
||||
if (event.data.type === "focusContinueInput") {
|
||||
inputRef.current!.focus();
|
||||
} else if (event.data.type === "focusContinueInputWithEdit") {
|
||||
inputRef.current!.focus();
|
||||
|
||||
downshiftProps.setInputValue("/edit ");
|
||||
}
|
||||
};
|
||||
window.addEventListener("message", handler);
|
||||
|
|
|
|||
|
|
@ -52,6 +52,16 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
|
|||
}
|
||||
focusedOnContinueInput = !focusedOnContinueInput;
|
||||
},
|
||||
"continue.focusContinueInputWithEdit": async () => {
|
||||
vscode.commands.executeCommand("continue.continueGUIView.focus");
|
||||
debugPanelWebview?.postMessage({
|
||||
type: "focusContinueInputWithEdit",
|
||||
});
|
||||
focusedOnContinueInput = true;
|
||||
},
|
||||
"continue.toggleAuxiliaryBar": () => {
|
||||
vscode.commands.executeCommand("workbench.action.toggleAuxiliaryBar");
|
||||
},
|
||||
"continue.quickTextEntry": async () => {
|
||||
const text = await vscode.window.showInputBox({
|
||||
placeHolder:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue