mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 03:20:12 +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[] = []
|
let themes: ITerminalColorScheme[] = []
|
||||||
|
|
||||||
plugins.forEach(plugin => {
|
plugins.forEach(plugin => {
|
||||||
|
try {
|
||||||
let module = (global as any).require(path.join(pluginsPath, plugin))
|
let module = (global as any).require(path.join(pluginsPath, plugin))
|
||||||
if (module.decorateConfig) {
|
if (module.decorateConfig) {
|
||||||
let config = 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
|
return themes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user