提交 d8c58630 编写于 作者: B Benjamin Pasero

more logging (for #59752)

上级 ee321dcd
...@@ -833,15 +833,15 @@ export class EditorPart extends Part implements EditorGroupsServiceImpl, IEditor ...@@ -833,15 +833,15 @@ export class EditorPart extends Part implements EditorGroupsServiceImpl, IEditor
// Ensure last active group has focus // Ensure last active group has focus
this._activeGroup.focus(); this._activeGroup.focus();
} catch (error) { } catch (error) {
this.handleGridRestoreError(error); this.handleGridRestoreError(error, uiState);
} }
} }
} }
private handleGridRestoreError(error: Error): void { private handleGridRestoreError(error: Error, state: IEditorPartUIState): void {
// Log error // 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 // Clear any state we have from the failing restore
if (this.gridWidget) { if (this.gridWidget) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册