0

When the user clicks on tabs what events are dispatched in the VSCode extension api?

Micah
  • 479
  • 1
  • 7
  • 17

1 Answers1

3

Assuming by "tabs" you're referring to text editor windows, the window.onDidChangeActiveTextEditor event is probably what you're looking for. From the linked documentation:

onDidChangeActiveTextEditor: Event<TextEditor | undefined>

An Event which fires when the active editor has changed. Note that the event also fires when the active editor changes to undefined.

esqew
  • 42,425
  • 27
  • 92
  • 132