Fixing linting issues, but also hides failures. Has to be a better approach to error handling.

This commit is contained in:
Seivan Heidari 2019-10-24 17:59:55 +02:00
parent 8e63644d66
commit e6df4c424a

View file

@ -31,14 +31,14 @@ export function load() {
const themeName = vscode.workspace.getConfiguration('workbench').get('colorTheme')
if (typeof themeName !== 'string') {
console.warn('workbench.colorTheme is', themeName)
// console.warn('workbench.colorTheme is', themeName)
return
}
// Try to load colors from that theme
try {
loadThemeNamed(themeName)
} catch (e) {
console.warn('failed to load theme', themeName, e)
// console.warn('failed to load theme', themeName, e)
}
}
@ -130,7 +130,7 @@ function checkFileExists(filePath: string): boolean {
if (stats && stats.isFile()) {
return true;
} else {
console.warn('no such file', filePath)
// console.warn('no such file', filePath)
return false;
}