Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"type": "git",
"url": "https://github.com/salesforce/salesforcedx-vscode-mobile"
},
"enableO11y": "true",
"o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
"productFeatureId": "aJCEE0000000mGf4AI",
"license": "SEE LICENSE IN LICENSE.txt",
"icon": "images/package-icon.png",
"galleryBanner": {
Expand Down
9 changes: 2 additions & 7 deletions src/services/CoreExtensionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,10 @@ export class CoreExtensionService {
if (!telemetryService) {
throw new Error(TELEMETRY_SERVICE_NOT_FOUND);
}
const { aiKey, name, version } = context.extension.packageJSON;
const { name } = context.extension.packageJSON;
CoreExtensionService.telemetryService =
telemetryService.getInstance(name);
CoreExtensionService.telemetryService.initializeService(
context,
name,
aiKey,
version
);
CoreExtensionService.telemetryService.initializeService(context);
}

private static isAboveMinimumRequiredVersion(
Expand Down
7 changes: 1 addition & 6 deletions src/types/TelemetryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ export interface TelemetryService {
isTelemetryEnabled(): Promise<boolean>;
getInstance(extensionName: string): TelemetryService;
getReporters(): TelemetryReporter[];
initializeService(
extensionContext: ExtensionContext,
extensionName: string,
aiKey: string,
version: string
): Promise<void>;
initializeService(extensionContext: ExtensionContext): Promise<void>;
sendExtensionActivationEvent(hrstart: [number, number]): void;
sendExtensionDeactivationEvent(): void;
sendCommandEvent(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
export const MINIMUM_REQUIRED_VERSION_CORE_EXTENSION = '58.4.1';
export const MINIMUM_REQUIRED_VERSION_CORE_EXTENSION = '66.0.3';
export const CORE_EXTENSION_ID = 'salesforce.salesforcedx-vscode-core';
export const SFDX_PROJECT_FILE = 'sfdx-project.json';
export const PACKAGE_JSON = 'package.json';
Expand Down