mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 21:04:18 +00:00
Fixing linting issues, but also hides failures. Has to be a better approach to error handling.
This commit is contained in:
parent
8e63644d66
commit
e6df4c424a
1 changed files with 3 additions and 3 deletions
|
|
@ -31,14 +31,14 @@ export function load() {
|
||||||
const themeName = vscode.workspace.getConfiguration('workbench').get('colorTheme')
|
const themeName = vscode.workspace.getConfiguration('workbench').get('colorTheme')
|
||||||
|
|
||||||
if (typeof themeName !== 'string') {
|
if (typeof themeName !== 'string') {
|
||||||
console.warn('workbench.colorTheme is', themeName)
|
// console.warn('workbench.colorTheme is', themeName)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Try to load colors from that theme
|
// Try to load colors from that theme
|
||||||
try {
|
try {
|
||||||
loadThemeNamed(themeName)
|
loadThemeNamed(themeName)
|
||||||
} catch (e) {
|
} 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()) {
|
if (stats && stats.isFile()) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.warn('no such file', filePath)
|
// console.warn('no such file', filePath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue