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

fix onDidChangeActiveTextEditor/onSave callback this is undefined error #106

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Conversation

zeaphoo
Copy link
Contributor

@zeaphoo zeaphoo commented Jun 12, 2020

In javascript and typescript, it's not safe to not bound this in callback. It will cause undefined error when function callbacked. Here is some references: Typescript Types and .bind

@mshr-h mshr-h merged commit a723ccd into mshr-h:master Jun 27, 2020
@mshr-h
Copy link
Owner

mshr-h commented Jun 27, 2020

Ok. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants