message: Improve update when switching editor
diff: @@ -226,9 +226,15 @@ export async function activate(context: vscode.ExtensionContext) {
  }
  if (e && extension.manager.hasTexId(e.document.languageId)) {
  - extension.manager.findRoot()
  + const previousRoot = extension.manager.rootFile
  + extension.manager.findRoot().then(rootFile => {
  + if (rootFile === undefined || rootFile === previousRoot) {
  + extension.logger.addLogMessage('OnChangeActiveEditor: Root file remains unchanged.')
  + return
  + }
  extension.structureProvider.refresh()
  extension.structureProvider.update()
  + })
  extension.linter.lintActiveFileIfEnabled()
  } else {
  isLaTeXActive = false
  