"Fossies" - the Fresh Open Source Software Archive  

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

mainThreadAuthentication.ts  (vscode-1.50.0):mainThreadAuthentication.ts  (vscode-1.50.1)
skipping to change at line 22 skipping to change at line 22
import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import { IDialogService } from 'vs/platform/dialogs/common/dialogs';
import { IStorageService, StorageScope } from 'vs/platform/storage/common/storag e'; import { IStorageService, StorageScope } from 'vs/platform/storage/common/storag e';
import Severity from 'vs/base/common/severity'; import Severity from 'vs/base/common/severity';
import { IQuickInputService } from 'vs/platform/quickinput/common/quickInput'; import { IQuickInputService } from 'vs/platform/quickinput/common/quickInput';
import { INotificationService } from 'vs/platform/notification/common/notificati on'; import { INotificationService } from 'vs/platform/notification/common/notificati on';
import { IStorageKeysSyncRegistryService } from 'vs/platform/userDataSync/common /storageKeys'; import { IStorageKeysSyncRegistryService } from 'vs/platform/userDataSync/common /storageKeys';
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteA gentService'; import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteA gentService';
import { fromNow } from 'vs/base/common/date'; import { fromNow } from 'vs/base/common/date';
import { ActivationKind, IExtensionService } from 'vs/workbench/services/extensi ons/common/extensions'; import { ActivationKind, IExtensionService } from 'vs/workbench/services/extensi ons/common/extensions';
import { isWeb } from 'vs/base/common/platform'; import { isWeb } from 'vs/base/common/platform';
import { ICredentialsService } from 'vs/workbench/services/credentials/common/cr edentials';
const VSO_ALLOWED_EXTENSIONS = ['github.vscode-pull-request-github', 'github.vsc ode-pull-request-github-insiders', 'vscode.git', 'ms-vsonline.vsonline', 'vscode .github-browser', 'ms-vscode.github-browser']; const VSO_ALLOWED_EXTENSIONS = ['github.vscode-pull-request-github', 'github.vsc ode-pull-request-github-insiders', 'vscode.git', 'ms-vsonline.vsonline', 'vscode .github-browser', 'ms-vscode.github-browser'];
interface IAccountUsage { interface IAccountUsage {
extensionId: string; extensionId: string;
extensionName: string; extensionName: string;
lastUsed: number; lastUsed: number;
} }
function readAccountUsages(storageService: IStorageService, providerId: string, accountName: string,): IAccountUsage[] { function readAccountUsages(storageService: IStorageService, providerId: string, accountName: string,): IAccountUsage[] {
skipping to change at line 223 skipping to change at line 224
constructor( constructor(
extHostContext: IExtHostContext, extHostContext: IExtHostContext,
@IAuthenticationService private readonly authenticationService: I AuthenticationService, @IAuthenticationService private readonly authenticationService: I AuthenticationService,
@IDialogService private readonly dialogService: IDialogService, @IDialogService private readonly dialogService: IDialogService,
@IStorageService private readonly storageService: IStorageService , @IStorageService private readonly storageService: IStorageService ,
@INotificationService private readonly notificationService: INoti ficationService, @INotificationService private readonly notificationService: INoti ficationService,
@IStorageKeysSyncRegistryService private readonly storageKeysSync RegistryService: IStorageKeysSyncRegistryService, @IStorageKeysSyncRegistryService private readonly storageKeysSync RegistryService: IStorageKeysSyncRegistryService,
@IRemoteAgentService private readonly remoteAgentService: IRemote AgentService, @IRemoteAgentService private readonly remoteAgentService: IRemote AgentService,
@IQuickInputService private readonly quickInputService: IQuickInp utService, @IQuickInputService private readonly quickInputService: IQuickInp utService,
@IExtensionService private readonly extensionService: IExtensionS @IExtensionService private readonly extensionService: IExtensionS
ervice ervice,
@ICredentialsService private readonly credentialsService: ICreden
tialsService
) { ) {
super(); super();
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostAuthe ntication); this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostAuthe ntication);
this._register(this.authenticationService.onDidChangeSessions(e = > { this._register(this.authenticationService.onDidChangeSessions(e = > {
this._proxy.$onDidChangeAuthenticationSessions(e.provider Id, e.label, e.event); this._proxy.$onDidChangeAuthenticationSessions(e.provider Id, e.label, e.event);
})); }));
this._register(this.authenticationService.onDidRegisterAuthentica tionProvider(info => { this._register(this.authenticationService.onDidRegisterAuthentica tionProvider(info => {
this._proxy.$onDidChangeAuthenticationProviders([info], [ ]); this._proxy.$onDidChangeAuthenticationProviders([info], [ ]);
skipping to change at line 245 skipping to change at line 247
this._register(this.authenticationService.onDidUnregisterAuthenti cationProvider(info => { this._register(this.authenticationService.onDidUnregisterAuthenti cationProvider(info => {
this._proxy.$onDidChangeAuthenticationProviders([], [info ]); this._proxy.$onDidChangeAuthenticationProviders([], [info ]);
})); }));
this._proxy.$setProviders(this.authenticationService.declaredProv iders); this._proxy.$setProviders(this.authenticationService.declaredProv iders);
this._register(this.authenticationService.onDidChangeDeclaredProv iders(e => { this._register(this.authenticationService.onDidChangeDeclaredProv iders(e => {
this._proxy.$setProviders(e); this._proxy.$setProviders(e);
})); }));
this._register(this.credentialsService.onDidChangePassword(_ => {
this._proxy.$onDidChangePassword();
}));
} }
$getProviderIds(): Promise<string[]> { $getProviderIds(): Promise<string[]> {
return Promise.resolve(this.authenticationService.getProviderIds( )); return Promise.resolve(this.authenticationService.getProviderIds( ));
} }
async $registerAuthenticationProvider(id: string, label: string, supports MultipleAccounts: boolean): Promise<void> { async $registerAuthenticationProvider(id: string, label: string, supports MultipleAccounts: boolean): Promise<void> {
const provider = new MainThreadAuthenticationProvider(this._proxy , id, label, supportsMultipleAccounts, this.notificationService, this.storageKey sSyncRegistryService, this.storageService, this.quickInputService, this.dialogSe rvice); const provider = new MainThreadAuthenticationProvider(this._proxy , id, label, supportsMultipleAccounts, this.notificationService, this.storageKey sSyncRegistryService, this.storageService, this.quickInputService, this.dialogSe rvice);
await provider.initialize(); await provider.initialize();
this.authenticationService.registerAuthenticationProvider(id, pro vider); this.authenticationService.registerAuthenticationProvider(id, pro vider);
 End of changes. 3 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)