You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tsmaeder As far as I understand the different ES versions, ES5 classes work quite differently from classes in newer ES versions. That's why the @es5Compatibility annotation is needed, so that extensions compiled with es5 can still use them without issues.
That however introduces a problem related to the TypeScript compiler which tries to emit newer ES2017 instanceof calls for classes compiled to ES5, which just don't work. The prototype chain seems to be completely different, as Object.getProtoTypeOf(iconPath) === ThemeIcon.prototype returns false as well, even when the debugger shows the prototype of iconPath to be ThemeIcon.
Bug Description:
See title. I assume this regression was introduced by #9436 as the
instanceof
check fails here:theia/packages/plugin-ext/src/plugin/tree/tree-views.ts
Line 372 in 7442150
Steps to Reproduce:
Additional Information
a7d63a0
The text was updated successfully, but these errors were encountered: