File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Sources/BuildSystemIntegration Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,18 @@ actor ExternalBuildSystemAdapter {
94
94
private var lastRestart : Date ?
95
95
96
96
static package func projectRoot( for workspaceFolder: AbsolutePath , options: SourceKitLSPOptions ) -> AbsolutePath ? {
97
- guard localFileSystem. isFile ( workspaceFolder. appending ( component: " buildServer.json " ) ) else {
98
- return nil
97
+ let buildServerConfigLocations = [
98
+ workspaceFolder. appending ( component: " buildServer.json " ) ,
99
+ workspaceFolder. appending ( components: [ " .bsp " , " buildServer.json " ] )
100
+ ]
101
+
102
+ for buildServerConfigLocation in buildServerConfigLocations {
103
+ if localFileSystem. isFile ( buildServerConfigLocation) {
104
+ return workspaceFolder
105
+ }
99
106
}
100
- return workspaceFolder
107
+
108
+ return nil
101
109
}
102
110
103
111
init (
You can’t perform that action at this time.
0 commit comments