diff --git a/src/service-override/secretStorage.ts b/src/service-override/secretStorage.ts new file mode 100644 index 00000000..27a848ba --- /dev/null +++ b/src/service-override/secretStorage.ts @@ -0,0 +1,13 @@ +import { IEditorOverrideServices } from 'vs/editor/standalone/browser/standaloneServices' +import { IEncryptionService } from 'vs/platform/encryption/common/encryptionService' +import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors' +import { ISecretStorageService } from 'vs/platform/secrets/common/secrets' +import { EncryptionService } from 'vs/workbench/services/encryption/browser/encryptionService' +import { BrowserSecretStorageService } from 'vs/workbench/services/secrets/browser/secretStorageService' + +export default function getServiceOverride (): IEditorOverrideServices { + return { + [ISecretStorageService.toString()]: new SyncDescriptor(BrowserSecretStorageService, [], true), + [IEncryptionService.toString()]: new SyncDescriptor(EncryptionService, [], true) + } +}