File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/vs/platform/credentials Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export abstract class BaseCredentialsMainService extends Disposable implements I
101
101
return ;
102
102
} catch ( e ) {
103
103
error = e ;
104
- this . logService . warn ( 'Error attempting to set a password: ' , e ) ;
104
+ this . logService . warn ( 'Error attempting to set a password: ' , e ?. message ?? e ) ;
105
105
attempts ++ ;
106
106
await new Promise ( resolve => setTimeout ( resolve , 200 ) ) ;
107
107
}
Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ export class CredentialsNativeMainService extends BaseCredentialsMainService {
36
36
return this . _keytarCache ;
37
37
}
38
38
39
- this . _keytarCache = await import ( 'keytar' ) ;
39
+ const keytarCache = await import ( 'keytar' ) ;
40
40
// Try using keytar to see if it throws or not.
41
- await this . _keytarCache . findCredentials ( 'test-keytar-loads' ) ;
41
+ await keytarCache . findCredentials ( 'test-keytar-loads' ) ;
42
+ this . _keytarCache = keytarCache ;
42
43
return this . _keytarCache ;
43
44
}
44
45
You can’t perform that action at this time.
0 commit comments