Python Environment + Terminal focus not working when key binding is used for workbench.action.terminal.new
See original GitHub issueEnvironment data
- VS Code version: 1.45.1
- Extension version (available under the Extensions sidebar): 2020.5.86398
- OS and version: Linux x64 5.6.2-050602-generic (MINT)
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
- Relevant/affected Python packages and their versions:
- Relevant/affected Python-related VS Code extensions and their versions:
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): - Value of the
python.languageServer
setting:
"python.jediEnabled": false,
Expected behaviour
Once the virtual environment is activated focus should be on terminal
Actual behaviour
Right now if I create a new terminal using key binding(ctrl+alt+insert
) it creates a new terminal and active my virtual environment but I lose the focus. BTW, this happens sometimes(maybe 65%) which makes it more irritating.
Steps to reproduce:
- Use keybinding for new terminal:
{
"key": "ctrl+alt+insert",
"command": "workbench.action.terminal.new"
},
- (In my case I already have other terminals running and terminal is open but the focus is on editor)
- Keep the focus on the editor (writing code)
- Hit the key bound to create new terminal (
ctrl+alt+insert
) - Try to type (Sometimes terminal got focus sometime don’t) 🤷♂️
Youtube Video (Listen for key-strokes to understand better)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Integrated Terminal in Visual Studio Code
Use the Ctrl+Shift+` keyboard shortcut to create a new terminal. Use the View > Terminal or Terminal > New Terminal menu commands.
Read more >vscode key binding !terminalFocus not working after update?
By default, keybindings are dispatched to the workbench instead of the terminal as specified in terminal.integrated.commandsToSkipShell .
Read more >User and Workspace Settings - vscode-docs1 - Read the Docs
showCommands) ) with Preferences: Open User Settings and Preferences: Open Workspace Settings or use the keyboard shortcut ( kb(workbench.action.
Read more >Integrated Terminal - 《Visual Studio Code v1.46 Document》
Why is VS Code shortcut X not working when the terminal has focus? ... panel or by triggering the kb(workbench.action.terminal.new) command.
Read more >Bring Your Vim/Tmux Navigation Reflexes to VS Code
After installing the Vim extension, a few choice keybindings can help VS Code play even nicer with your terminal muscle memory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your reply! Seems like
"workbench.action.terminal.new"
andpython.createTerminal
don’t behave the same, so I’ve taken the conversation back to VS Code’s repo. I’ll close this issue for now so that we don’t have to keep an eye on 2 different issues, but I’ll reopen it if necessary.Hi, @kimadeline Thanks for reviewing it.
Yes
Nope I done around 15 tests and all of them got focus on terminal
Thanks for that screencast I didn’t known about that. 👍