mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 10:59:54 +00:00
handle Hyper plugin crashes (fixes #71)
This commit is contained in:
parent
1b2236eb90
commit
4d2be9ec89
@ -13,6 +13,7 @@ export class HyperColorSchemes extends TerminalColorSchemeProvider {
|
||||
let themes: ITerminalColorScheme[] = []
|
||||
|
||||
plugins.forEach(plugin => {
|
||||
try {
|
||||
let module = (global as any).require(path.join(pluginsPath, plugin))
|
||||
if (module.decorateConfig) {
|
||||
let config = module.decorateConfig({})
|
||||
@ -43,6 +44,9 @@ export class HyperColorSchemes extends TerminalColorSchemeProvider {
|
||||
})
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.debug('Skipping Hyper plugin', plugin, err)
|
||||
}
|
||||
})
|
||||
|
||||
return themes
|
||||
|
Loading…
x
Reference in New Issue
Block a user