mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 19:18:32 -05:00
fix secrets api issue (#15300)
This commit is contained in:
@@ -8,11 +8,11 @@ import { IProductService } from 'vs/platform/product/common/productService';
|
||||
import { extHostNamedCustomer } from 'vs/workbench/api/common/extHostCustomers';
|
||||
import { ICredentialsService } from 'vs/workbench/services/credentials/common/credentials';
|
||||
import { IEncryptionService } from 'vs/workbench/services/encryption/common/encryptionService';
|
||||
import { IExtHostContext, MainContext, MainThreadSecretStateShape } from '../common/extHost.protocol';
|
||||
import { ExtHostContext, ExtHostSecretStateShape, IExtHostContext, MainContext, MainThreadSecretStateShape } from '../common/extHost.protocol';
|
||||
|
||||
@extHostNamedCustomer(MainContext.MainThreadSecretState)
|
||||
export class MainThreadSecretState extends Disposable implements MainThreadSecretStateShape {
|
||||
// private readonly _proxy: ExtHostSecretStateShape;
|
||||
private readonly _proxy: ExtHostSecretStateShape;
|
||||
|
||||
constructor(
|
||||
extHostContext: IExtHostContext,
|
||||
@@ -21,13 +21,12 @@ export class MainThreadSecretState extends Disposable implements MainThreadSecre
|
||||
@IProductService private readonly productService: IProductService
|
||||
) {
|
||||
super();
|
||||
// this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostSecretState);
|
||||
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostSecretState);
|
||||
|
||||
// {{SQL CARBON EDIT}} - throws null
|
||||
/* this._register(this.credentialsService.onDidChangePassword(e => {
|
||||
this._register(this.credentialsService.onDidChangePassword(e => {
|
||||
const extensionId = e.service.substring(this.productService.urlProtocol.length);
|
||||
this._proxy.$onDidChangePassword({ extensionId, key: e.account });
|
||||
})); */
|
||||
}));
|
||||
}
|
||||
|
||||
private getFullKey(extensionId: string): string {
|
||||
|
||||
Reference in New Issue
Block a user