How to subscribe to cursor creation


#1

Currently, this code

editor?.onDidChangeCursorPosition =>
  console.log 'cursor moved'

only allows me to react to, obviously, cursor movements, but it doesn’t get called in the event a cursor is created… Are there any APIs supporting this?


#2

Nevermind, just discovered the observeCursors and observeSelections APIs! :smiley: