From d8c58630a672fa5b608b47b0f233fe6272893010 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 2 Oct 2018 09:36:54 +0200 Subject: [PATCH] more logging (for #59752) --- src/vs/workbench/browser/parts/editor/editorPart.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/browser/parts/editor/editorPart.ts b/src/vs/workbench/browser/parts/editor/editorPart.ts index 7baf658b051..9152d2db48e 100644 --- a/src/vs/workbench/browser/parts/editor/editorPart.ts +++ b/src/vs/workbench/browser/parts/editor/editorPart.ts @@ -833,15 +833,15 @@ export class EditorPart extends Part implements EditorGroupsServiceImpl, IEditor // Ensure last active group has focus this._activeGroup.focus(); } catch (error) { - this.handleGridRestoreError(error); + this.handleGridRestoreError(error, uiState); } } } - private handleGridRestoreError(error: Error): void { + private handleGridRestoreError(error: Error, state: IEditorPartUIState): void { // Log error - onUnexpectedError(error); + onUnexpectedError(new Error(`Error restoring editor grid widget: ${error} (with state: ${JSON.stringify(state)})`)); // Clear any state we have from the failing restore if (this.gridWidget) { -- GitLab