When the user clicks on tabs what events are dispatched in the VSCode extension api?
Asked
Active
Viewed 229 times
1 Answers
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