diff --git a/src/vs/platform/credentials/node/credentialsService.ts b/src/vs/platform/credentials/node/credentialsService.ts index 8c876d5b759..bc8d8d75914 100644 --- a/src/vs/platform/credentials/node/credentialsService.ts +++ b/src/vs/platform/credentials/node/credentialsService.ts @@ -5,7 +5,6 @@ import { ICredentialsService } from 'vs/platform/credentials/common/credentials'; import { IdleValue } from 'vs/base/common/async'; -import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; type KeytarModule = typeof import('keytar'); export class KeytarCredentialsService implements ICredentialsService { @@ -39,5 +38,3 @@ export class KeytarCredentialsService implements ICredentialsService { return keytar.findCredentials(service); } } - -registerSingleton(ICredentialsService, KeytarCredentialsService, true); diff --git a/src/vs/workbench/workbench.desktop.main.ts b/src/vs/workbench/workbench.desktop.main.ts index d89f16cc5a4..89d92b243ec 100644 --- a/src/vs/workbench/workbench.desktop.main.ts +++ b/src/vs/workbench/workbench.desktop.main.ts @@ -46,7 +46,6 @@ import 'vs/workbench/services/extensionManagement/node/extensionManagementServic import 'vs/workbench/services/accessibility/node/accessibilityService'; import 'vs/workbench/services/remote/node/tunnelService'; import 'vs/workbench/services/backup/node/backupFileService'; -import 'vs/platform/credentials/node/credentialsService'; import 'vs/workbench/services/url/electron-browser/urlService'; import 'vs/workbench/services/workspaces/electron-browser/workspacesService'; import 'vs/workbench/services/workspaces/electron-browser/workspaceEditingService'; @@ -63,6 +62,11 @@ import 'vs/workbench/services/update/electron-browser/updateService'; import 'vs/workbench/services/issue/electron-browser/issueService'; import 'vs/workbench/services/menubar/electron-browser/menubarService'; +import { ICredentialsService } from 'vs/platform/credentials/common/credentials'; +import { KeytarCredentialsService } from 'vs/platform/credentials/node/credentialsService'; + +registerSingleton(ICredentialsService, KeytarCredentialsService, true); + //#endregion @@ -133,5 +137,6 @@ import 'vs/workbench/contrib/welcome/gettingStarted/electron-browser/openWebsite // Configuration Exporter import 'vs/workbench/contrib/configExporter/node/configurationExportHelper.contribution'; +import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; //#endregion