message: test(language-service): Add test to expose bug caused by source file change
  This commit adds a test to expose the bug caused by source file change in
  between typecheck programs.
  PR Close
diff: @@ -103,6 +103,7 @@ export class Project {
  // Mark the project as dirty because the act of opening a file may result in the version
  // changing since TypeScript will `switchToScriptVersionCache` when a file is opened.
  // Note that this emulates what we have to do in the server/extension as well.
  + // TODO: remove this once PR #41475 lands
  this.tsProject.markAsDirty();
  scriptInfo = this.tsProject.getScriptInfo(fileName);
  