From 1ea3155abe5af8b92f42afbfefe8e4deb50c7583 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 2 Oct 2025 16:20:00 +0200 Subject: [PATCH 1/2] 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 e4947b9bfebb..428eab3a2152 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,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 eb9f7084127b..7a624e1e89d1 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -413,7 +413,10 @@ object Build { "scala2-library-tasty" ) - 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( From 2620ff88618b23837778f830192fa4cd0a7c17ca Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Wed, 5 Nov 2025 13:53:25 +0100 Subject: [PATCH 2/2] 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. [Cherry-picked 06060163c34fb5f2b7c25299a47b699f01866c01][modified]