onDidChangePassword -> onDidChange in secrets API

This commit is contained in:
Rachel Macfarlane
2021-01-04 22:19:55 -08:00
parent 1bb2ae0e36
commit 998e5e2ea6
4 changed files with 6 additions and 6 deletions

View File

@@ -14,15 +14,15 @@ export class ExtensionSecrets implements vscode.SecretState {
protected readonly _id: string;
protected readonly _secretState: ExtHostSecretState;
private _onDidChangePassword = new Emitter<void>();
readonly onDidChangePassword: Event<void> = this._onDidChangePassword.event;
private _onDidChange = new Emitter<void>();
readonly onDidChange: Event<void> = this._onDidChange.event;
constructor(extensionDescription: IExtensionDescription, secretState: ExtHostSecretState) {
this._id = ExtensionIdentifier.toKey(extensionDescription.identifier);
this._secretState = secretState;
this._secretState.onDidChangePassword(_ => this._onDidChangePassword.fire());
this._secretState.onDidChangePassword(_ => this._onDidChange.fire());
}
get(key: string): Promise<string | undefined> {