"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/vs/workbench/services/credentials/electron-sandbox/credentialsService.ts" between
vscode-1.50.0.tar.gz and vscode-1.50.1.tar.gz

About: Visual Studio Code is a source code editor (available for Windows, macOS and Linux). It comes with built-in support for JavaScript, TypeScript and Node.js and has extensions for other languages (such as C++, C#, Java, Python, PHP, Go). Source code.

credentialsService.ts  (vscode-1.50.0):credentialsService.ts  (vscode-1.50.1)
/*------------------------------------------------------------------------------ --------------- /*------------------------------------------------------------------------------ ---------------
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for lice nse information. * Licensed under the MIT License. See License.txt in the project root for lice nse information.
*------------------------------------------------------------------------------ --------------*/ *------------------------------------------------------------------------------ --------------*/
import { ICredentialsService } from 'vs/workbench/services/credentials/common/cr edentials'; import { ICredentialsService } from 'vs/workbench/services/credentials/common/cr edentials';
import { INativeHostService } from 'vs/platform/native/electron-sandbox/native'; import { INativeHostService } from 'vs/platform/native/electron-sandbox/native';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { Emitter } from 'vs/base/common/event';
export class KeytarCredentialsService implements ICredentialsService { export class KeytarCredentialsService implements ICredentialsService {
declare readonly _serviceBrand: undefined; declare readonly _serviceBrand: undefined;
constructor(@INativeHostService private readonly nativeHostService: INati private _onDidChangePassword: Emitter<void> = new Emitter();
veHostService) { } onDidChangePassword = this._onDidChangePassword.event;
constructor(@INativeHostService private readonly nativeHostService: INati
veHostService) {
this.nativeHostService.onDidChangePassword(event => this._onDidCh
angePassword.fire(event));
}
getPassword(service: string, account: string): Promise<string | null> { getPassword(service: string, account: string): Promise<string | null> {
return this.nativeHostService.getPassword(service, account); return this.nativeHostService.getPassword(service, account);
} }
setPassword(service: string, account: string, password: string): Promise< void> { setPassword(service: string, account: string, password: string): Promise< void> {
return this.nativeHostService.setPassword(service, account, passw ord); return this.nativeHostService.setPassword(service, account, passw ord);
} }
deletePassword(service: string, account: string): Promise<boolean> { deletePassword(service: string, account: string): Promise<boolean> {
 End of changes. 2 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)