Merge pull request #5925 from xtermjs/cursor/fix-onwillopen-error-logging-7e14

Log onWillOpen handler errors instead of swallowing them
This commit is contained in:
Daniel Imms
2026-05-27 09:00:33 -07:00
committed by GitHub
+2 -1
View File
@@ -563,8 +563,9 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
try {
this._onWillOpen.fire(this.element);
} catch (e) {
this._logService.error('onWillOpen handler threw an exception', e);
}
catch { /* fails to load addon for some reason */ }
if (!this._renderService.hasRenderer()) {
this._renderService.setRenderer(this._createRenderer());
}