mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-09 21:09:54 +00:00
catch decorator attach/detach errors
This commit is contained in:
parent
4c659b80fd
commit
82e3348122
@ -184,7 +184,11 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||||||
this.configure()
|
this.configure()
|
||||||
|
|
||||||
this.config.enabledServices(this.decorators).forEach((decorator) => {
|
this.config.enabledServices(this.decorators).forEach((decorator) => {
|
||||||
decorator.attach(this)
|
try {
|
||||||
|
decorator.attach(this)
|
||||||
|
} catch (e) {
|
||||||
|
this.logger.warn('Decorator attach() throws', e)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -377,7 +381,11 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||||||
this.frontend.detach(this.content.nativeElement)
|
this.frontend.detach(this.content.nativeElement)
|
||||||
this.detachTermContainerHandlers()
|
this.detachTermContainerHandlers()
|
||||||
this.config.enabledServices(this.decorators).forEach(decorator => {
|
this.config.enabledServices(this.decorators).forEach(decorator => {
|
||||||
decorator.detach(this)
|
try {
|
||||||
|
decorator.detach(this)
|
||||||
|
} catch (e) {
|
||||||
|
this.logger.warn('Decorator attach() throws', e)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.hotkeysSubscription.unsubscribe()
|
this.hotkeysSubscription.unsubscribe()
|
||||||
if (this.sessionCloseSubscription) {
|
if (this.sessionCloseSubscription) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user