Fix handleError for example
- Previously the error wasn't being logged and we would just randomly reload
- Now we use a
console.error
andalert
- We don't reload so that the developer can easily view the error.
Screenshots
Patch to throw an error
diff --git a/packages/vscode-bootstrap/src/start.ts b/packages/vscode-bootstrap/src/start.ts
index d6f2e8b..2f6a83f 100644
--- a/packages/vscode-bootstrap/src/start.ts
+++ b/packages/vscode-bootstrap/src/start.ts
@@ -52,6 +52,7 @@ const startWorkbench = (
let skipCloseHandling = false;
try {
+ throw new Error('BLOW UP!');
const { dispose } = create(document.body, {
...BASE_OPTIONS,
...options,
Edited by Paul Slaughter