Skip to content

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

Open
RichardSlater wants to merge 4 commits intoskandasoft:masterfrom
RichardSlater:master
Open

Removes dependency on deprecated TextEditor constructor in 1.8.0-beta3#47
RichardSlater wants to merge 4 commits intoskandasoft:masterfrom
RichardSlater:master

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