Add getPassword, setPassword, and deletePassword APIs, #95475

Co-authored-by: SteVen Batten <sbatten@microsoft.com>
This commit is contained in:
Rachel Macfarlane
2020-10-06 14:57:16 -07:00
committed by GitHub
parent 1a9e0af641
commit dafce599a6
19 changed files with 279 additions and 40 deletions

View File

@@ -225,6 +225,15 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
get onDidChangeSessions(): Event<vscode.AuthenticationSessionsChangeEvent> {
return extHostAuthentication.onDidChangeSessions;
},
getPassword(key: string): Thenable<string | undefined> {
return extHostAuthentication.getPassword(extension, key);
},
setPassword(key: string, value: string): Thenable<void> {
return extHostAuthentication.setPassword(extension, key, value);
},
deletePassword(key: string): Thenable<void> {
return extHostAuthentication.deletePassword(extension, key);
}
};
// namespace: commands