Deprecate editor:will-be-removed

This commit is contained in:
Kevin Sawicki
2014-09-17 17:36:38 -07:00
parent 31dd109343
commit 6d2719c783

View File

@@ -176,6 +176,8 @@ class WorkspaceView extends View
switch eventName
when 'cursor:moved'
deprecate('Use Editor::onDidChangeCursorPosition instead')
when 'editor:will-be-removed'
deprecate('Use Editor::onDidDestroy instead')
when 'pane:active-item-changed'
deprecate('Use Pane::onDidChangeActiveItem instead')
when 'pane:active-item-modified-status-changed'
@@ -210,6 +212,8 @@ class WorkspaceView extends View
switch eventName
when 'cursor:moved'
deprecate('Use Editor::onDidChangeCursorPosition instead')
when 'editor:will-be-removed'
deprecate('Use Editor::onDidDestroy instead')
when 'selection:changed'
deprecate('Use Editor::onDidChangeSelectionRange instead')
originalEditorViewOn.apply(this, arguments)
@@ -219,6 +223,8 @@ class WorkspaceView extends View
switch eventName
when 'cursor:moved'
deprecate('Use Editor::onDidChangeCursorPosition instead')
when 'editor:will-be-removed'
deprecate('Use Editor::onDidDestroy instead')
when 'pane:active-item-changed'
deprecate('Use Pane::onDidChangeActiveItem instead')
when 'pane:active-item-modified-status-changed'