120
// below accesses the stack-property which triggers the code above
121
errors.setUnexpectedErrorHandler(err => {
123
>
if (!errors.PendingMigrationError.is(err)) {
124
>
logService.error(err);
125
>
}
126
>
127
>
const errorData = errors.transformErrorForSerialization(err);
128
>
129
>
let extension: ExtensionIdentifier | undefined;
130
>
if (err instanceof ExtensionError) {
131
extension = err.extension;
133
>
const stackData = extensionErrors.get(err);
134
>
extension = stackData?.extensionIdentifier;
135
>
}
136
>
137
>
if (!extension) {
138
return;
139
}
141
>
if (errors.PendingMigrationError.is(err)) {
142
// report pending migration via the API deprecation service which (1) informs the extensions author during
143
// dev-time and (2) collects telemetry so that we can reach out too