Skip to content

Removes dependency on deprecated TextEditor constructor in 1.8.0-beta3 #47

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

RichardSlater
Copy link

When preview-plus is installed in Atom 1.8.0-beta3 the following warning is logged by Deprecation Cop:

The TextEditor constructor is no longer public: To construct a text editor, use atom.workspace.buildTextEditor(). To check if an object is a text editor, use atom.workspace.isTextEditor(object).

I have borrowed the build-text-editor.coffee from the Find and Replace package so that we can support legacy implementations if they still exist.

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.

1 participant