Open sanglnv opened 8 years ago
The TextEditor constructor is no longer public.
TextEditor
To construct a text editor, use atom.workspace.buildTextEditor(). To check if an object is a text editor, use atom.workspace.isTextEditor(object).
atom.workspace.buildTextEditor()
atom.workspace.isTextEditor(object)
Object.TextEditor (/Applications/Atom.app/Contents/Resources/app.asar/exports/atom.js:47:14) Object.<anonymous> (/Users/sanglnv/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:4:84) Object.<anonymous> (/Users/sanglnv/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:330:4) Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30) Object..coffee (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21) Module.load (module.js:357:32)
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, useatom.workspace.isTextEditor(object)
.