File tree Expand file tree Collapse file tree
platform/credentials/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import { ICredentialsService } from 'vs/platform/credentials/common/credentials' ;
77import { IdleValue } from 'vs/base/common/async' ;
8- import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
98
109type KeytarModule = typeof import ( 'keytar' ) ;
1110export class KeytarCredentialsService implements ICredentialsService {
@@ -39,5 +38,3 @@ export class KeytarCredentialsService implements ICredentialsService {
3938 return keytar . findCredentials ( service ) ;
4039 }
4140}
42-
43- registerSingleton ( ICredentialsService , KeytarCredentialsService , true ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ import 'vs/workbench/services/extensionManagement/node/extensionManagementServic
4646import 'vs/workbench/services/accessibility/node/accessibilityService' ;
4747import 'vs/workbench/services/remote/node/tunnelService' ;
4848import 'vs/workbench/services/backup/node/backupFileService' ;
49- import 'vs/platform/credentials/node/credentialsService' ;
5049import 'vs/workbench/services/url/electron-browser/urlService' ;
5150import 'vs/workbench/services/workspaces/electron-browser/workspacesService' ;
5251import 'vs/workbench/services/workspaces/electron-browser/workspaceEditingService' ;
@@ -63,6 +62,11 @@ import 'vs/workbench/services/update/electron-browser/updateService';
6362import 'vs/workbench/services/issue/electron-browser/issueService' ;
6463import 'vs/workbench/services/menubar/electron-browser/menubarService' ;
6564
65+ import { ICredentialsService } from 'vs/platform/credentials/common/credentials' ;
66+ import { KeytarCredentialsService } from 'vs/platform/credentials/node/credentialsService' ;
67+
68+ registerSingleton ( ICredentialsService , KeytarCredentialsService , true ) ;
69+
6670//#endregion
6771
6872
@@ -133,5 +137,6 @@ import 'vs/workbench/contrib/welcome/gettingStarted/electron-browser/openWebsite
133137
134138// Configuration Exporter
135139import 'vs/workbench/contrib/configExporter/node/configurationExportHelper.contribution' ;
140+ import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
136141
137142//#endregion
You can’t perform that action at this time.
0 commit comments