Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 4 additions & 1 deletion packages/vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export async function activate(context: ExtensionContext) {
}

migrateOldConfiguration();
getTelemetryReporter().sendTelemetryEvent(`extension:activated:${getEditorType()}`);

getTelemetryReporter().sendTelemetryEvent(`extension:activated`, {
editorType: getEditorType(),
});

commands.executeCommand("setContext", "RNIDE.sidePanelIsClosed", false);

Expand Down
1 change: 1 addition & 0 deletions packages/vscode-extension/src/project/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export class IDE implements Disposable {
devicesStateManager,
...deviceProviders
);

// register disposable with context
extensionContext.subscriptions.push(this);
}
Expand Down
9 changes: 9 additions & 0 deletions packages/vscode-extension/src/project/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,11 @@ export class Project implements Disposable, ProjectInterface, DeviceSessionsMana
status: LicenseStatus.Inactive,
featuresAvailability: DefaultFeaturesAvailability,
});

this.telemetry.sendTelemetry("license:detected", {
licenseStatus: LicenseStatus.Inactive,
});

return;
}

Expand All @@ -492,6 +497,10 @@ export class Project implements Disposable, ProjectInterface, DeviceSessionsMana
}

this.licenseStateManager.updateState(newState);

this.telemetry.sendTelemetry("license:detected", {
licenseStatus: newState.status,
});
};

// #endregion License
Expand Down
Loading