Skip to content

Debug error steals keyboard focus from other windows #978

@bobbythehuman

Description

@bobbythehuman

Behaviour

If your in a different OS window when an error occurs in a VSCode window 1, when trying to edit VSCode window 2, any changes you try and make occur in VSCode window 1.

This affects

  • typing and deleting
  • selecting use shift + arrow keys

It doesnt affect:

  • selecting with mouse
  • CTRL + C and CTRL + V

Steps to reproduce:

  1. In VSCode have 2 windows open, and another window open on the desktop (paint)
  2. In VSCode window 1 start the program in debug mode
  3. Click over to paint
  4. Wait until an error occurs
  5. Click over to VSCode window 2
  6. Try and type, anything that happens occurs in VSCode window 1

Video of issue

2026-03-12.16-22-11.mp4

Extension Versions

Python - V2026.2.0
Python Debugger - V2025.18.0

VSCode Versions

Version: 1.111.0 (user setup)
Commit: ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
Date: 2026-03-06T23:06:10Z
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions