From 06060163c34fb5f2b7c25299a47b699f01866c01 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 2 Oct 2025 16:20:00 +0200 Subject: [PATCH] improvement: Additional way of defining ENABLE_BSP_ALL_PROJECTS Seems that the environment variables are not always picked up, so instead a more reliable solution would be to create file for yourself that can track it instead. --- .gitignore | 3 +++ project/Build.scala | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aa5ce1d5baa0..186984f1f390 100644 --- a/.gitignore +++ b/.gitignore @@ -100,3 +100,6 @@ docs/_spec/.jekyll-metadata # scaladoc related scaladoc/output/ + +# only used in local development +.enable_bsp_all_projects \ No newline at end of file diff --git a/project/Build.scala b/project/Build.scala index daaf62e720e2..9c4fbafbb330 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -459,7 +459,10 @@ object Build { ) ++ extMap } - val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse(false) + val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse{ + val enableBspAllProjectsFile = file(".enable_bsp_all_projects") + enableBspAllProjectsFile.exists() + } // Settings used when compiling dotty with a non-bootstrapped dotty lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(