Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap decoration of EventEmitter within a try...catch #2196

Closed
DonJayamanne opened this issue Jul 19, 2018 · 0 comments · Fixed by #2220
Closed

Wrap decoration of EventEmitter within a try...catch #2196

DonJayamanne opened this issue Jul 19, 2018 · 0 comments · Fixed by #2220
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

If other extensions end up with code such as the following:

decorate(injectable(), EventEmitter);

Src - src/client/ioc/container.ts

Then the extension that loads second will crash.
Solution:

try {
	decorate(injectable(), EventEmitter);
} catch {}
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug needs PR labels Jul 19, 2018
DonJayamanne added a commit that referenced this issue Aug 1, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants