mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 05:21:08 +01:00
update auth extensions to use packageJSON property instead
This commit is contained in:
@@ -10,7 +10,7 @@ import TelemetryReporter from 'vscode-extension-telemetry';
|
||||
export const DEFAULT_SCOPES = 'https://management.core.windows.net/.default offline_access';
|
||||
|
||||
export async function activate(context: vscode.ExtensionContext) {
|
||||
const { name, version, aiKey } = require('../package.json') as { name: string, version: string, aiKey: string };
|
||||
const { name, version, aiKey } = context.extension.packageJSON as { name: string, version: string, aiKey: string };
|
||||
const telemetryReporter = new TelemetryReporter(name, version, aiKey);
|
||||
|
||||
const loginService = new AzureActiveDirectoryService(context);
|
||||
|
||||
Reference in New Issue
Block a user