fix: unblock extension activation issue for air-gapped instances
Created by: abeatrix
Close: https://github.com/sourcegraph/sourcegraph/issues/33286
Sourcegraph extensions do not run on instances with HTTP connections because the Crypto.subtle
feature we are using in our hashCode function is only available in secure contexts (HTTPS), which would cause the whole activation process to fail when trying to log the event:
The PR adds error handling for the event logging step so that failing to log the event would not stop the extension from activating:
Test plan
Added error handling