Skip to content

Commit

Permalink
feat: add secret storage service
Browse files Browse the repository at this point in the history
This service is used by some extensions in VSCode
  • Loading branch information
CompuIves committed Apr 5, 2024
1 parent 7b84fb7 commit b809239
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/service-override/secretStorage.ts
Original file line number Diff line number Diff line change
@@ -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)
}
}

0 comments on commit b809239

Please sign in to comment.