mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Deprecate custom events on EditorView
This commit is contained in:
parent
291b989ff0
commit
1b25ea8a8d
@ -198,6 +198,16 @@ class WorkspaceView extends View
|
||||
deprecate('Use Workspace::onDidOpen instead')
|
||||
originalOn.apply(this, arguments)
|
||||
|
||||
EditorView = require './editor-view'
|
||||
originalEditorOn = EditorView::on
|
||||
EditorView::on = (eventName) ->
|
||||
switch eventName
|
||||
when 'cursor:moved'
|
||||
deprecate('Use Editor::onDidChangeCursorPosition instead')
|
||||
when 'selection:changed'
|
||||
deprecate('Use Editor::onDidChangeSelectionRange instead')
|
||||
originalEditorOn.apply(this, arguments)
|
||||
|
||||
###
|
||||
Section: Accessing the Workspace Model
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user