Log full stack trace for editor opened errors (#14932)

* Log full stack trace for editor opened errors

* space

* Actually print name
This commit is contained in:
Charles Gagnon
2021-03-31 13:13:41 -07:00
committed by GitHub
parent 6ab9844909
commit 5151f337bc

View File

@@ -1071,6 +1071,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
message: localize('editorOpenError', "Unable to open '{0}': {1}.", editor.getName(), toErrorMessage(error)),
actions
});
console.log(`Unable to open '${editor.getName()}': `, error); // {{SQL CARBON EDIT}} Print full stack trace to console
Event.once(handle.onDidClose)(() => actions.primary && dispose(actions.primary));
}