For example when we alter a document vscode.workspace.onDidChangeTextDocument gets triggered or when we go from one file to another vscode.window.onDidChangeActiveTextEditor gets triggered. Is there any command that gets triggered or any way to figure out whether the branch has been changed?