"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "extensions/microsoft-authentication/src/extension.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.

extension.ts  (vscode-1.50.0):extension.ts  (vscode-1.50.1)
skipping to change at line 17 skipping to change at line 17
import { AzureActiveDirectoryService, onDidChangeSessions } from './AADHelper'; import { AzureActiveDirectoryService, onDidChangeSessions } from './AADHelper';
import TelemetryReporter from 'vscode-extension-telemetry'; import TelemetryReporter from 'vscode-extension-telemetry';
export const DEFAULT_SCOPES = 'https://management.core.windows.net/.default offl ine_access'; export const DEFAULT_SCOPES = 'https://management.core.windows.net/.default offl ine_access';
export async function activate(context: vscode.ExtensionContext) { export async function activate(context: vscode.ExtensionContext) {
const { name, version, aiKey } = require('../package.json') as { name: st ring, version: string, aiKey: string }; const { name, version, aiKey } = require('../package.json') as { name: st ring, version: string, aiKey: string };
const telemetryReporter = new TelemetryReporter(name, version, aiKey); const telemetryReporter = new TelemetryReporter(name, version, aiKey);
const loginService = new AzureActiveDirectoryService(); const loginService = new AzureActiveDirectoryService();
context.subscriptions.push(loginService);
await loginService.initialize(); await loginService.initialize();
context.subscriptions.push(vscode.authentication.registerAuthenticationPr ovider({ context.subscriptions.push(vscode.authentication.registerAuthenticationPr ovider({
id: 'microsoft', id: 'microsoft',
label: 'Microsoft', label: 'Microsoft',
supportsMultipleAccounts: true, supportsMultipleAccounts: true,
onDidChangeSessions: onDidChangeSessions.event, onDidChangeSessions: onDidChangeSessions.event,
getSessions: () => Promise.resolve(loginService.sessions), getSessions: () => Promise.resolve(loginService.sessions),
login: async (scopes: string[]) => { login: async (scopes: string[]) => {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

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