Multiple callbacks per event


#1

How can I register multiple callbacks for the same event?

As an example, in different points of my code I would have:

editor.onDidChangeCursorPosition => A() and editor.onDidChangeCursorPosition => B().


#2

You can use what you typed. All events support having multiple callbacks.