From 947fd802bae5e998fe1e73d8249252f55bda7f43 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Sun, 27 Aug 2017 22:22:42 -0700 Subject: [PATCH] Temp fix build for old Page.configureOverlay method --- src/chromeDebugAdapter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chromeDebugAdapter.ts b/src/chromeDebugAdapter.ts index 027c5160..81d2b80c 100644 --- a/src/chromeDebugAdapter.ts +++ b/src/chromeDebugAdapter.ts @@ -134,7 +134,8 @@ export class ChromeDebugAdapter extends CoreDebugAdapter { } protected onPaused(notification: Crdp.Debugger.PausedEvent, expectingStopReason?: stoppedEvent.ReasonType): void { - this._overlayHelper.doAndCancel(() => this.chrome.Page.configureOverlay({ message: ChromeDebugAdapter.PAGE_PAUSE_MESSAGE }).catch(() => { })); + // TODO - https://github.com/Microsoft/vscode-chrome-debug/issues/486 + this._overlayHelper.doAndCancel(() => (this.chrome).Page.configureOverlay({ message: ChromeDebugAdapter.PAGE_PAUSE_MESSAGE }).catch(() => { })); super.onPaused(notification, expectingStopReason); } @@ -143,7 +144,7 @@ export class ChromeDebugAdapter extends CoreDebugAdapter { } protected onResumed(): void { - this._overlayHelper.wait(() => this.chrome.Page.configureOverlay({ }).catch(() => { })); + this._overlayHelper.wait(() => (this.chrome).Page.configureOverlay({ }).catch(() => { })); super.onResumed(); }