mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Add deprecation warning for Workspace::getActiveEditor
This commit is contained in:
@@ -538,8 +538,9 @@ class Workspace extends Model
|
||||
activeItem = @getActivePaneItem()
|
||||
activeItem if activeItem instanceof TextEditor
|
||||
|
||||
# Deprecated:
|
||||
# Deprecated
|
||||
getActiveEditor: ->
|
||||
Grim.deprecate "Call ::getActiveTextEditor instead"
|
||||
@getActivePane()?.getActiveEditor()
|
||||
|
||||
# Save all pane items.
|
||||
|
||||
Reference in New Issue
Block a user