fix secrets api issue (#15300)

This commit is contained in:
Alan Ren
2021-04-30 13:27:42 -07:00
committed by GitHub
parent 4ec3779be4
commit 5e39b1c7ed
2 changed files with 6 additions and 7 deletions

View File

@@ -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 {