From 86029f4c6dffbebfe1cf27dcc74bd90a987736e2 Mon Sep 17 00:00:00 2001 From: apeltop Date: Mon, 28 Feb 2022 02:51:38 +0900 Subject: [PATCH] chore: hasfocus -> hasFocus --- .../workbench/contrib/debug/browser/debugEditorContribution.ts | 2 +- src/vs/workbench/contrib/debug/browser/exceptionWidget.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }