diff --git a/src/vs/workbench/parts/debug/browser/breakpointWidget.ts b/src/vs/workbench/parts/debug/browser/breakpointWidget.ts index fa262f6dc83..0d3169785b1 100644 --- a/src/vs/workbench/parts/debug/browser/breakpointWidget.ts +++ b/src/vs/workbench/parts/debug/browser/breakpointWidget.ts @@ -40,8 +40,8 @@ export class BreakpointWidget extends ZoneWidget { }); dom.addClass(this.inputBox.inputElement, platform.isWindows ? 'windows' : platform.isMacintosh ? 'mac' : 'linux'); this.inputBox.value = (breakpoint && breakpoint.condition) ? breakpoint.condition : ''; - // TODO@Isidor check with Alex why does the editor steal focus - setTimeout(() => this.inputBox.focus(), 150); + // Due to an electron bug we have to do the timeout, otherwise we do not get focus + setTimeout(() => this.inputBox.focus(), 0); let disposed = false; const toDispose: [lifecycle.IDisposable] = [this.inputBox, this];