Change:
Type: <bBug</bThis was working in the previous version, now when running lines of code from the editor with "key": "ctrl+enter", "command": "" The cursor automatically snaps to the terminal which is extremely annoying. Please fix this ASAP. VS Code version: Code 1.75.0 (, 2023-02-01T15:23:45.584Z) OS version: Windows_NT x64 10.0. Modes: Sandboxed: No Remote OS version: Linux x64 5.15.0-1031-azure <details<summaryExtensions (25)</summaryExtensionVersion ------ better-cpp-syntax1.17.2 jupyter-keymap1.0.0 vscode-ai-remote0.22.0 remote-containers0.275.0 remote-ssh0.96.0 remote-ssh-edit0.84.0 remote-wsl0.75.1 vscode-remote-extensionpack0.23.0 remote-explorer0.2.0 material-icon-theme4.23.1 vscode-kdb-q-forked1.2.2 unique-lines1.0.0 gitlens13.2.0 json-tools1.0.2 isort2022.8.0 python2023.2.0 vscode-pylance2023.2.10 jupyter2023.1. jupyter-keymap1.0.0 jupyter-renderers1.0.14 vscode-ai0.24.0 vscode-jupyter-cell-tags0.1.6 vscode-jupyter-slideshow0.1.5 azure-account0.11.3 code-spell-checker2.16.0 (2 theme extensions excluded) </details<!-- generated by issue reporter --
Temporary work around is to use to refocus on editor 1, however that's not really effective for long periods of time.
in order to run text in the terminal, we need to focus it. this is working as designed
this wasn't the case on the previous version. You could execute lines of code from the editor with e.g. ctrl+enter without shifting focus to the terminal. Here is a very simple example from the previous version I have on another machine: <img width="467" alt="image" src="https://user-"<img width="838" alt="image" src="https://user-"All 3 lines are executed with ctrl+enter, and focus does not shift to the terminal so I can e.g. move up/down and execute lines, type lines to execute on the fly. Please advise further as this was definately the behaviour in 1.74.3 and now broken in 1.75.0
ran into the same issue as you. Suspect you've already done this, but a quick fix is to add a new keybinding in with the multi-command extension installed:
Thank you so much for this workaround! If anyone else needs this, the extension is
This was caused by where it changed from just revealing to focusing
Thanks !
Hi, pls do we know when will be new release with this fix publicly available?
it will come in 1.76 which should get releases in about 3 weeks time.

Discussion:
text = editor.getModel().getValueInRange(selection, endOfLinePreference); } instance.sendText(text, true, true); <del> await focusActiveTerminal(instance, terminalEditorService, terminalGroupService); </del> <ins> await revealActiveTerminal(instance, terminalEditorService, terminalGroupService); </ins> } }); registerAction2(class extends Action2 {

if (instance?.xterm?.isStdinDisabled || instance?.shellLaunchConfig.type === 'Task') { instance = await terminalService.createTerminal(); terminalService.setActiveInstance(instance); <del> await focusActiveTerminal(instance, terminalEditorService, terminalGroupService); </del> <ins> await revealActiveTerminal(instance, terminalEditorService, terminalGroupService); </ins> } const isRemote = instance ? instance.isRemote : (workbenchEnvironmentService.remoteAuthority ? true : false);

await terminalGroupService.showPanel(true); } } <ins> async function revealActiveTerminal(instance: ITerminalInstance, terminalEditorService: ITerminalEditorService, terminalGroupService: ITerminalGroupService): Promise<void> { if (instance.target === TerminalLocation.Editor) { await terminalEditorService.revealActiveEditor(); } else { await terminalGroupService.showPanel(); } } </ins>