"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/vs/workbench/api/common/extHostAuthentication.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.

extHostAuthentication.ts  (vscode-1.50.0):extHostAuthentication.ts  (vscode-1.50.1)
skipping to change at line 27 skipping to change at line 27
private _providerIds: string[] = []; private _providerIds: string[] = [];
private _providers: vscode.AuthenticationProviderInformation[] = []; private _providers: vscode.AuthenticationProviderInformation[] = [];
private _onDidChangeAuthenticationProviders = new Emitter<vscode.Authenti cationProvidersChangeEvent>(); private _onDidChangeAuthenticationProviders = new Emitter<vscode.Authenti cationProvidersChangeEvent>();
readonly onDidChangeAuthenticationProviders: Event<vscode.AuthenticationP rovidersChangeEvent> = this._onDidChangeAuthenticationProviders.event; readonly onDidChangeAuthenticationProviders: Event<vscode.AuthenticationP rovidersChangeEvent> = this._onDidChangeAuthenticationProviders.event;
private _onDidChangeSessions = new Emitter<vscode.AuthenticationSessionsC hangeEvent>(); private _onDidChangeSessions = new Emitter<vscode.AuthenticationSessionsC hangeEvent>();
readonly onDidChangeSessions: Event<vscode.AuthenticationSessionsChangeEv ent> = this._onDidChangeSessions.event; readonly onDidChangeSessions: Event<vscode.AuthenticationSessionsChangeEv ent> = this._onDidChangeSessions.event;
private _onDidChangePassword = new Emitter<void>();
readonly onDidChangePassword: Event<void> = this._onDidChangePassword.eve
nt;
constructor(mainContext: IMainContext) { constructor(mainContext: IMainContext) {
this._proxy = mainContext.getProxy(MainContext.MainThreadAuthenti cation); this._proxy = mainContext.getProxy(MainContext.MainThreadAuthenti cation);
} }
$setProviders(providers: vscode.AuthenticationProviderInformation[]): Pro mise<void> { $setProviders(providers: vscode.AuthenticationProviderInformation[]): Pro mise<void> {
this._providers = providers; this._providers = providers;
return Promise.resolve(); return Promise.resolve();
} }
getProviderIds(): Promise<ReadonlyArray<string>> { getProviderIds(): Promise<ReadonlyArray<string>> {
skipping to change at line 206 skipping to change at line 209
removed.forEach(p => { removed.forEach(p => {
const index = this._providers.findIndex(provider => provi der.id === p.id); const index = this._providers.findIndex(provider => provi der.id === p.id);
if (index > -1) { if (index > -1) {
this._providers.splice(index); this._providers.splice(index);
} }
}); });
this._onDidChangeAuthenticationProviders.fire({ added, removed }) ; this._onDidChangeAuthenticationProviders.fire({ added, removed }) ;
return Promise.resolve(); return Promise.resolve();
} }
async $onDidChangePassword(): Promise<void> {
this._onDidChangePassword.fire();
}
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

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