diff --git a/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts b/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts index 42d88028864..49f89c54f46 100644 --- a/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts +++ b/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts @@ -506,7 +506,7 @@ export class DebugEditorContribution implements IDebugEditorContribution { closeExceptionWidget(): void { if (this.exceptionWidget) { - const shouldFocusEditor = this.exceptionWidget.hasfocus(); + const shouldFocusEditor = this.exceptionWidget.hasFocus(); this.exceptionWidget.dispose(); this.exceptionWidget = undefined; this.exceptionWidgetVisible.set(false); diff --git a/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts b/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts index 34d3b84ec38..ad2b8e97293 100644 --- a/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts +++ b/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts @@ -121,7 +121,7 @@ export class ExceptionWidget extends ZoneWidget { this.container?.focus(); } - hasfocus(): boolean { + hasFocus(): boolean { return dom.isAncestor(document.activeElement, this.container); } }