Skip to content

Commit 9c22009

Browse files
authored
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
1 parent 044b516 commit 9c22009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/extension/src/extension_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ impl ExtensionStore {
761761

762762
if let Some(telemetry) = &self.telemetry {
763763
for extension_id in &extensions_to_load {
764-
if let Some(extension) = self.extension_index.extensions.get(extension_id) {
764+
if let Some(extension) = new_index.extensions.get(extension_id) {
765765
telemetry.report_extension_event(
766766
extension_id.clone(),
767767
extension.manifest.version.clone(),

0 commit comments

Comments
 (0)