Look up extensions in the new index when reporting extension events (#9879)

This PR fixes a bug that was causing extension telemetry events to not
be reported.

We need to look up the extensions in the new index, as the extensions to
load won't be found in the old index.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers authored and GitHub committed 2024-03-27 13:45:19 -04:00
1 parent 44fb15ceb9
commit fdb088b5cf
1 file changed
+1 -1
+1 -1
View File
@@ -761,7 +761,7 @@ impl ExtensionStore {
if let Some(telemetry) = &self.telemetry {
for extension_id in &extensions_to_load {
if let Some(extension) = self.extension_index.extensions.get(extension_id) {
if let Some(extension) = new_index.extensions.get(extension_id) {
telemetry.report_extension_event(
extension_id.clone(),
extension.manifest.version.clone(),