This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -418,20 +418,21 @@ class RustLanguageClient extends AutoLanguageClient {
418
418
. then ( ( ) => checkRls ( this . busySignalService ) )
419
419
. then ( ( ) => this . _restartLanguageServers ( `Switched Rls toolchain to \`${ newValue } \`` ) )
420
420
. then ( ( ) => this . _promptToUpdateToolchain ( ) )
421
+ . catch ( e => e && console . warn ( e ) )
421
422
} , 1000 )
422
423
) )
423
424
424
425
// watch config toolchain updates -> check for updates if enabling
425
426
this . disposables . add ( atom . config . onDidChange ( 'ide-rust.checkForToolchainUpdates' ,
426
427
( { newValue : enabled } ) => {
427
- if ( enabled ) this . _promptToUpdateToolchain ( )
428
+ if ( enabled ) this . _promptToUpdateToolchain ( ) . catch ( e => e && console . warn ( e ) )
428
429
}
429
430
) )
430
431
431
432
// check for updates (if enabled) every so often
432
433
let periodicUpdateTimeoutId
433
- const periodicUpdate = ( ) => {
434
- this . _promptToUpdateToolchain ( )
434
+ const periodicUpdate = async ( ) => {
435
+ await this . _promptToUpdateToolchain ( ) . catch ( e => e && console . warn ( e ) )
435
436
periodicUpdateTimeoutId = setTimeout ( periodicUpdate , PERIODIC_UPDATE_CHECK_MILLIS )
436
437
}
437
438
this . disposables . add ( new Disposable ( ( ) => {
You can’t perform that action at this time.
0 commit comments