forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IDE: Find and add workspace root if there are none
When the IDE is opened without a workspace (no folder is open), and then a Scala source is opened, we will now search for the closest possible workspace root (the closest parent directory that contains a `build.sbt`). If no such directory can be found, the parent directory of the file that has been opened is chosen. This folder is then added as a workspace folder. Adding a new workspace folder triggers a reloading of the extension. The code of the extension will be executed in an environment where a workspace root is set, and Dotty IDE will be able to start correctly. Fixes scala#5281
- Loading branch information
Showing
1 changed file
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters