Currently I'm using the following lines to detect if a user opens a file:
vscode.workspace.onDidOpenTextDocument((file) => {
//
})
However, this is also called for stuff like the tsconfig.json or .git files that are opened "in the background".
It there a way / hook / event to only listen to "active editors" files changes?