message: Fix First try current rootFile on editor change
diff: @@ -148,6 +148,7 @@ export class Manager {
  this.findWorkspace()
  this.localRootFile = undefined
  const findMethods = [
  + () => this.findRootFromCurrentRoot(),
  () => this.findRootFromMagic(),
  () => this.findRootFromActive(),
  () => this.findRootInWorkspace()
  @@ -173,6 +174,16 @@ export class Manager {
  return undefined
  }
  + private findRootFromCurrentRoot(): string | undefined {
  + if (!vscode.window.activeTextEditor || this.rootFile === undefined) {
  + return undefined
  + }
  + if (this.getIncludedTeX().includes(vscode.window.activeTextEditor.document.fileName)) {
  + return this.rootFile
  + }
  + return undefined
  + }
  +
  private findRootFromMagic(): string | undefined {
  if (!vscode.window.activeTextEditor) {
  return undefined
  