mirror of
https://github.com/fluencelabs/aqua-vscode
synced 2025-04-24 16:12:14 +00:00
suppress error from updateimports
(#67)
This commit is contained in:
parent
e11ec1bd5b
commit
60bd5335b5
@ -127,8 +127,13 @@ export class SettingsManager {
|
||||
|
||||
if (info.isImportsUpdateNeeded(this.cliCallDelay)) {
|
||||
const path = URI.parse(uri).fsPath;
|
||||
const imports = await this.cli.imports(path);
|
||||
info.updateImports(imports);
|
||||
try {
|
||||
const imports = await this.cli.imports(path);
|
||||
info.updateImports(imports);
|
||||
} catch (e) {
|
||||
// try-catch is needed, because server will crash if there will be no Fluence CLI installed
|
||||
console.error('Cannot update imports: ', e);
|
||||
}
|
||||
}
|
||||
|
||||
this.documents.set(uri, info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user