mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
debug: conditiaonl breakpoint focus fix
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user